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

Code fails when there are no faces in the image #4

Open
jaarac opened this issue May 7, 2020 · 2 comments
Open

Code fails when there are no faces in the image #4

jaarac opened this issue May 7, 2020 · 2 comments

Comments

@jaarac
Copy link

jaarac commented May 7, 2020

0_Parade_Parade_0_452.jpg => ./WIDER_train_annotations/0_Parade_Parade_0_452.xml
Traceback (most recent call last):
File "convert.py", line 86, in
convertWFAnnotations(ARGS['annotations_path'], ARGS['target_path'], ARGS['images_path'])
File "convert.py", line 55, in convertWFAnnotations
folder, basename, path, width, height = parseImFilename(imFilename, imPath)
File "convert.py", line 41, in parseImFilename
im = Image.open(os.path.join(imPath, imFilename))
File "/home/cp2016/cp201613/epp/venv/lib/python3.8/site-packages/PIL/Image.py", line 2843, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: './WIDER_train/images/0 0 0 0 0 0 0 0 0 0'

@pl-ang
Copy link

pl-ang commented Jun 11, 2020

replace this while i < int(nbBndboxes) or i == 0: in line 60

@lowlevel-1989
Copy link

fix: #7

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