When I run python test.py
then
Input image filename:'yolo4.png'
I get tis error:
\Traceback (most recent call last):
File "test.py", line 158, in
result = yolo4_model.detect_image(image, model_image_size=model_image_size)
File "test.py", line 80, in detect_image
boxed_image = letterbox_image(image, tuple(reversed(model_image_size)))
File "/home/muhammadmubeen/keras-yolo4/yolo4/utils.py", line 28, in letterbox_image
image = image.resize((nw,nh), Image.BICUBIC)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1883, in resize
im = im.resize(size, resample, box)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1888, in resize
return self._new(self.im.resize(size, resample, box))
ValueError: height and width must be > 0
When I run python test.py then Input image filename:'yolo4.png'
I get tis error: \Traceback (most recent call last): File "test.py", line 158, in
result = yolo4_model.detect_image(image, model_image_size=model_image_size)
File "test.py", line 80, in detect_image
boxed_image = letterbox_image(image, tuple(reversed(model_image_size)))
File "/home/muhammadmubeen/keras-yolo4/yolo4/utils.py", line 28, in letterbox_image
image = image.resize((nw,nh), Image.BICUBIC)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1883, in resize
im = im.resize(size, resample, box)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1888, in resize
return self._new(self.im.resize(size, resample, box))
ValueError: height and width must be > 0