Python: small images.
Opened this issue · 0 comments
siamezzze commented
PyCUDA implementation fails on both 1x1 and 5x5 images from my test data.
mariaglukhova@mafy-gpgpu-server:~/GPGPU-LUT$ python ColorHistograms-python/color_histogram.py data/plasma0001.png
Traceback (most recent call last):
File "ColorHistograms-python/color_histogram.py", line 4, in <module>
print histogram(sys.argv[1], 16)
File "/media/storage/students/mariaglukhova/GPGPU-LUT/ColorHistograms-python/color_histogram_cuda.py", line 13, in histogram
(w, h, c) = image.shape
ValueError: need more than 2 values to unpack
mariaglukhova@mafy-gpgpu-server:~/GPGPU-LUT$ python ColorHistograms-python/color_histogram.py data/plasma0005.png
Traceback (most recent call last):
File "ColorHistograms-python/color_histogram.py", line 4, in <module>
print histogram(sys.argv[1], 16)
File "/media/storage/students/mariaglukhova/GPGPU-LUT/ColorHistograms-python/color_histogram_cuda.py", line 16, in histogram
image = image.view(numpy.uint32)
ValueError: new type not compatible with array.