You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 186, in
main()
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 182, in main
node.run()
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 99, in run
results = self._model.detect([np_image], verbose=0)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/model.py", line 2333, in detect
molded_images, image_metas, windows = self.mold_inputs(images)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/model.py", line 2236, in mold_inputs
padding=self.config.IMAGE_PADDING)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/utils.py", line 402, in resize_image
image, (round(h * scale), round(w * scale)))
File "/home/giga/.local/lib/python2.7/site-packages/scipy/misc/pilutil.py", line 490, in imresize
imnew = im.resize(size, resample=func[interp])
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1538, in resize
return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 186, in
main()
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 182, in main
node.run()
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 99, in run
results = self._model.detect([np_image], verbose=0)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/model.py", line 2333, in detect
molded_images, image_metas, windows = self.mold_inputs(images)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/model.py", line 2236, in mold_inputs
padding=self.config.IMAGE_PADDING)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/utils.py", line 402, in resize_image
image, (round(h * scale), round(w * scale)))
File "/home/giga/.local/lib/python2.7/site-packages/scipy/misc/pilutil.py", line 490, in imresize
imnew = im.resize(size, resample=func[interp])
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1538, in resize
return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
@punnpkin, in your file "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/utils.py" change scale = max_dim / image_max to scale = (max_dim*1.0) / image_max
Traceback (most recent call last):
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 186, in
main()
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 182, in main
node.run()
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/mask_rcnn_node", line 99, in run
results = self._model.detect([np_image], verbose=0)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/model.py", line 2333, in detect
molded_images, image_metas, windows = self.mold_inputs(images)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/model.py", line 2236, in mold_inputs
padding=self.config.IMAGE_PADDING)
File "/home/giga/catkin_ws/src/mask_rcnn_ros/nodes/utils.py", line 402, in resize_image
image, (round(h * scale), round(w * scale)))
File "/home/giga/.local/lib/python2.7/site-packages/scipy/misc/pilutil.py", line 490, in imresize
imnew = im.resize(size, resample=func[interp])
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1538, in resize
return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
The text was updated successfully, but these errors were encountered: