CenterNet
CenterNet copied to clipboard
AttributeError: ‘NoneType‘ object has no attribute ‘shape‘
这个问题简单来讲其实不是个问题:在各种修改和操作了一番之后,发现coco数据的格式图似乎不太明确,val2017,train2017和test2017这几个存放图片的文件夹应该和 annotations是同一级目录,然后就没有报错了。
This is because the path to images in your dataset, then cv2
could not read them.
You should:
- Check path to the image folder in your
<dataset name>.py
. - Check all file names in your
json
files.
这个问题简单来讲其实不是个问题:在各种修改和操作了一番之后,发现coco数据的格式图似乎不太明确,val2017,train2017和test2017这几个存放图片的文件夹应该和 annotations是同一级目录,然后就没有报错了。
遇到这个问题两天了,多谢解答