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

custom data polygon transform using Polygon-Tutorial2.ipynb #18

Closed
apanand14 opened this issue Feb 21, 2022 · 2 comments
Closed

custom data polygon transform using Polygon-Tutorial2.ipynb #18

apanand14 opened this issue Feb 21, 2022 · 2 comments

Comments

@apanand14
Copy link

apanand14 commented Feb 21, 2022

hello @XinzeLee ,

I'm using my custom dataset and having json file in COCO format. I'm trying to use Polygon-Tutorial2.ipynb for it. But somehow it throws an error. Can you please help me how to run and get rotated bounding boxes from polygon annoations. Thank you in advance.

This is the error I'm getting:
Traceback (most recent call last):
File "C:/yolo/tranform.py", line 173, in
main()
File "C:/yolo/tranform.py", line 170, in main
seg2poly(r'C:\Users\exp', plot=True)
File "C:/yolo/tranform.py", line 62, in seg2poly
img_dir = img_dir / prefix
UnboundLocalError: local variable 'prefix' referenced before assignment

@yvonnetanyien98
Copy link

Hi, may I ask how to settle this issue? Thank you very much

@Tracy-git
Copy link

if you use coco format datasets, you are supposed to organize folder like coco20 ,then run Polygon-Tutorial2.ipynb

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