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

Bug in code #1

Open
jhaggle opened this issue May 11, 2020 · 2 comments
Open

Bug in code #1

jhaggle opened this issue May 11, 2020 · 2 comments

Comments

@jhaggle
Copy link

jhaggle commented May 11, 2020

When running the code, row 333 in object_detection_2d_data_generator.py casues the following error:
ValueError: invalid literal for int() with base 10: '1.png'

@Ezzysci
Copy link

Ezzysci commented Oct 24, 2020

the y_pred_decoded consistently returns an empty array.

@wild10
Copy link

wild10 commented Mar 29, 2021

When running the code, row 333 in object_detection_2d_data_generator.py casues the following error:
ValueError: invalid literal for int() with base 10: '1.png'

this is because convert json_to_pascal function is saving the data in different order, you must change it like :class_id fname xmax xmin ymax ymin or i changed the order saving in the function like :

for j in range(len(i['labels'])):
pascal_list.append({'class_id': int(i['labels'][j]),'fname': i['filename']
,'xmax': int(i['left'][j]+i['width'][j]), 'xmin': int(i['left'][j])
,'ymax': int(i['top'][j]+i['height'][j]),'ymin': int(i['top'][j])
})

and it worked for me :)

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