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] extracting info['bounding_box'] in prepare_dataset.py #32

Open
jaeminSon opened this issue May 19, 2023 · 3 comments · May be fixed by #33
Open

[BUG] extracting info['bounding_box'] in prepare_dataset.py #32

jaeminSon opened this issue May 19, 2023 · 3 comments · May be fixed by #33

Comments

@jaeminSon
Copy link

Encountered an error when running prepare_dataset.py with the following command.

python prepare_dataset.py

mainly due to the following error.

TypeError: crop_minAreaRect() takes 6 positional arguments but 33 were given.

This has to do with the format of imageur5k_annotations_train.json where "bounding_box" data is stored in a string format.

This can be fixed by replacing *info['bounding_box'] with *eval(info['bounding_box']).

@jaeminSon jaeminSon changed the title extracting info['bounding_box'] in prepare_dataset.py [BUG] extracting info['bounding_box'] in prepare_dataset.py May 19, 2023
@nmdwgll
Copy link

nmdwgll commented Jun 2, 2023

This seems cause another problem:
SyntaxError: unexpected EOF while parsing

@jaeminSon
Copy link
Author

That error has to do with the format of imgur5k_annotations.json

refer to this facebookresearch/IMGUR5K-Handwriting-Dataset#14

@nmdwgll
Copy link

nmdwgll commented Jun 2, 2023

That error has to do with the format of imgur5k_annotations.json

refer to this facebookresearch/IMGUR5K-Handwriting-Dataset#14

Thanks bro, you are my savior!

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

Successfully merging a pull request may close this issue.

2 participants