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

ValueError: invalid literal for int() with base 10: '0--Parade/0_Parade_Parade_0_630.jpg\n' #60

Open
yanjj16 opened this issue Jul 17, 2019 · 2 comments

Comments

@yanjj16
Copy link

yanjj16 commented Jul 17, 2019

I run the demo.py correctly,but when i try to train the module,it happened to rising this error message

@mukundhan3
Copy link

Hi. Did you find a solution to this problem?

Thank you

@NguyenVanThanhHust
Copy link

NguyenVanThanhHust commented Mar 24, 2020

It is based on format Wider dataset. If you find this line in wider_face_split/wider_face_train_bbx_gt.txt, you will see something like this:

0--Parade/0_Parade_Parade_0_1040.jpg
1
494 251 75 110 0 0 0 0 2 0
0--Parade/0_Parade_Parade_0_452.jpg
0
0 0 0 0 0 0 0 0 0 0
0--Parade/0_Parade_Parade_0_630.jpg

you can notice the pattern:
name_folder/name_img
number of bounding box
coordinate of each bounding box

if you don't have any bounding box, it will be:
0--Parade/0_Parade_Parade_0_452.jpg
0
0 0 0 0 0 0 0 0 0 0

this will cause error in next line,
In source code, you can check if number of bounding box ==0, increase index and continue
Else, you can remove those 0 0 0 0 0 0 0 0 0 0 in wider_face_train_bbx_gt.txt

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

3 participants