使用ImageAi训练自定义数据时出错

时间:2020-10-31 15:36:19

标签: python-3.x yolo imageai

在generateAnchors(train_annotation_folder,train_image_folder,train_cache_file,model_labels)中的

/usr/local/lib/python3.6/dist-packages/imageai/Detection/Custom/gen_anchors.py 88 图片['object']中的obj为89: ---> 90 relative_w =(float(obj ['xmax'])-float(obj ['xmin']))/ image ['width'] 91 relatice_h =(float(obj [“ ymax”])-float(obj ['ymin']))/ image ['height'] 92 Annotation_dims.append(tuple(map(float,(relative_w,relatice_h)))

ZeroDivisionError:浮点数被零除

我收到上述错误,为什么会显示错误提示?

0 个答案:

没有答案