Ssd.pytorch: AttributeError: 'NoneType' object has no attribute 'shape'

Created on 13 Sep 2018  路  4Comments  路  Source: amdegroot/ssd.pytorch

I DON'T KNOW WHY AND HOW TO FIX IT.

Most helpful comment

You have to make sure that your images are in the directory structure as VOC.
Check voc0712.py in VOCDetection
self._imgpath = osp.join('%s', 'JPEGImages', '%s.jpg')
You can also change this as per need.

All 4 comments

I have the same error.

I have the same error, too. I have spent two days solving it. Maybe the format of your dataset is wrong. My dataset has 9 images whose format is .JPG while others are .jpg, so I correct them to .jpg, and then I overcome this error.

I have the same error, too. I have spent two days solving it. Maybe the format of your dataset is wrong. My dataset has 9 images whose format is .JPG while others are .jpg, so I correct them to .jpg, and then I overcome this error.

Thanks. I'll give it a try. Best regards.

You have to make sure that your images are in the directory structure as VOC.
Check voc0712.py in VOCDetection
self._imgpath = osp.join('%s', 'JPEGImages', '%s.jpg')
You can also change this as per need.

Was this page helpful?
0 / 5 - 0 ratings