Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'shape' #109

Open
NickosKal opened this issue Jun 9, 2021 · 3 comments
Open

AttributeError: 'NoneType' object has no attribute 'shape' #109

NickosKal opened this issue Jun 9, 2021 · 3 comments

Comments

@NickosKal
Copy link

Hello when I run the train_frcnn.py as follows python train_frcnn.py -o simple -p images_train/train.txt the img = cv2.imread(filename) in simple_parser.py is empty and I get the error that the tittle says here is my train.txt file:
train.txt
and the txt file is in the same folder with the images and their annotation what am I doing wrong?
Thanks in advance!

@medhinisourya
Copy link

Same issue, even after giving paths right...any inputs please

@h-arslan
Copy link

You need to delete the first line of your txt file, for the first line it reads the filename as "filename" then it gives error.

@tanmay-18
Copy link

tanmay-18 commented Dec 22, 2022

In my case, It was a fault in annotation.txt file. cv2.imread() may not read the image because of a false image path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants