You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jaeminSon
changed the title
extracting info['bounding_box'] in prepare_dataset.py
[BUG] extracting info['bounding_box'] in prepare_dataset.py
May 19, 2023
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']).
The text was updated successfully, but these errors were encountered: