When I run the detect code, the problem of no instance is detected will appear, and an error will be reported when a certain image is detected:
Image id: 52
data/real/test/scene_1/0054
data/gts/real_test/results_real_test_scene_1_0054.pkl
predict result:
0.96875 0.96875 0.96875
Traceback (most recent call last):
File "detect_eval.py", line 249, in <module>
detect_result = model.detect([image], verbose=0)
File "/rootCS/model.py", line 4394, in detect
image.shape, windows[i])
File "/rootCS/model.py", line 4335, in unmold_detections
full_mask = utils.unmold_mask(masks[i], boxes[i], image_shape)
File "/rootCS/utils.py", line 1222, in unmold_mask
mask, (y2 - y1, x2 - x1), interp='bilinear').astype(np.float32) / 255.0
File "/root/anaconda3/envs/py356/lib/python3.5/site-packages/numpy/lib/utils.py", line 101, in newfunc
return func(*args, **kwds)
File "/root/anaconda3/envs/py356/lib/python3.5/site-packages/scipy/misc/pilutil.py", line 565, in imresize
imnew = im.resize(size, resample=func[interp])
File "/root/anaconda3/envs/py356/lib/python3.5/site-packages/PIL/Image.py", line 1929, in resize
return self._new(self.im.resize(size, resample, box))
ValueError: height and width must be > 0
I checked that the input of the image is correct. I want to know what the problem is. Is it because my environment is configured incorrectly?
When I run the detect code, the problem of no instance is detected will appear, and an error will be reported when a certain image is detected: Image id: 52 data/real/test/scene_1/0054 data/gts/real_test/results_real_test_scene_1_0054.pkl predict result: 0.96875 0.96875 0.96875 Traceback (most recent call last): File "detect_eval.py", line 249, in <module> detect_result = model.detect([image], verbose=0) File "/rootCS/model.py", line 4394, in detect image.shape, windows[i]) File "/rootCS/model.py", line 4335, in unmold_detections full_mask = utils.unmold_mask(masks[i], boxes[i], image_shape) File "/rootCS/utils.py", line 1222, in unmold_mask mask, (y2 - y1, x2 - x1), interp='bilinear').astype(np.float32) / 255.0 File "/root/anaconda3/envs/py356/lib/python3.5/site-packages/numpy/lib/utils.py", line 101, in newfunc return func(*args, **kwds) File "/root/anaconda3/envs/py356/lib/python3.5/site-packages/scipy/misc/pilutil.py", line 565, in imresize imnew = im.resize(size, resample=func[interp]) File "/root/anaconda3/envs/py356/lib/python3.5/site-packages/PIL/Image.py", line 1929, in resize return self._new(self.im.resize(size, resample, box)) ValueError: height and width must be > 0 I checked that the input of the image is correct. I want to know what the problem is. Is it because my environment is configured incorrectly?