mask rcnn训练自己的数据集
发布于 10月前 作者 二毛钱 来自其他
当我设计好数据集训练时遇到了如下的错误,哪位大神帮我看一下谢谢
ERROR:root:Error processing image {'source': 'shapes', 'yaml_path': '/Users/madesheng/Jobs/Codes/Python/TensorFlow/CNN/ImageInstanceSegmentation/OwnMaskRCNN/own_dataset/labelme_json/1_json/info.yaml', 'width': 500, 'path': '/Users/madesheng/Jobs/Codes/Python/TensorFlow/CNN/ImageInstanceSegmentation/OwnMaskRCNN/own_dataset/pic/1.jpg', 'mask_path': '/Users/madesheng/Jobs/Codes/Python/TensorFlow/CNN/ImageInstanceSegmentation/OwnMaskRCNN/own_dataset/cv2_mask/1.png', 'id': 5, 'height': 330}
Traceback (most recent call last):
  File "/Users/madesheng/Jobs/Codes/Python/TensorFlow/CNN/ImageInstanceSegmentation/OwnMaskRCNN/own_dataset/mrcnn/model.py", line 1710, in data_generator
    use_mini_mask=config.USE_MINI_MASK)
  File "/Users/madesheng/Jobs/Codes/Python/TensorFlow/CNN/ImageInstanceSegmentation/OwnMaskRCNN/own_dataset/mrcnn/model.py", line 1220, in load_image_gt
    mode=config.IMAGE_RESIZE_MODE)
  File "/Users/madesheng/Jobs/Codes/Python/TensorFlow/CNN/ImageInstanceSegmentation/OwnMaskRCNN/own_dataset/mrcnn/utils.py", line 445, in resize_image
    preserve_range=True)
  File "/Users/madesheng/Jobs/Codes/Python/TensorFlow/CNN/ImageInstanceSegmentation/OwnMaskRCNN/own_dataset/mrcnn/utils.py", line 889, in resize
    preserve_range=preserve_range)
  File "/Users/madesheng/anaconda2/lib/python2.7/site-packages/skimage/transform/_warps.py", line 90, in resize
    row_scale = float(orig_rows) / rows
ZeroDivisionError: float division by ze
1回复

虽然不懂在干啥,但是读一读这个error的话,我猜这个报错是说一个floating的数不能除以0?上一行写着:在你的一个叫做resize的函数里,row_scale = float(orig_rows) / rows。检查一下rows是不是0?如果是的话,好像就破案了。。

回到顶部