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

HRSC转COCO #11

Open
ctgu123 opened this issue Mar 30, 2022 · 2 comments
Open

HRSC转COCO #11

ctgu123 opened this issue Mar 30, 2022 · 2 comments

Comments

@ctgu123
Copy link

ctgu123 commented Mar 30, 2022

缺乏命名:
E:\Anaconda\python.exe "G:/CV projects/toolbox/converter/toCOCO/HRSC2COCO.py"
HRSC2COCOTrain: 0%| | 0/436 [00:00<?, ?it/s]
Traceback (most recent call last):
File "G:/CV projects/toolbox/converter/toCOCO/HRSC2COCO.py", line 183, in
HRSC2COCOTrain(r'C:\Users\admin\Downloads\HRSC2016_dataset\HRSC2016\HRSC2016',
File "G:/CV projects/toolbox/converter/toCOCO/HRSC2COCO.py", line 66, in HRSC2COCOTrain
objects = parse_voc_poly(os.path.join(labelparent, filename+'.xml'))
File "G:/CV projects/toolbox/converter/toCOCO/HRSC2COCO.py", line 159, in parse_voc_poly
gtpoly = shgeo.Polygon(object_struct['poly'])
NameError: name 'shgeo' is not defined

Process finished with exit code 1

@Luxiangxiang21
Copy link

Have you solved this problem, please?

@shenhaibb
Copy link

import shapely.geometry as shgeo

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