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

YOLO, COCO export error #222

Open
reloadggg opened this issue Jun 3, 2023 · 0 comments
Open

YOLO, COCO export error #222

reloadggg opened this issue Jun 3, 2023 · 0 comments

Comments

@reloadggg
Copy link

reloadggg commented Jun 3, 2023

An error occurred when exporting the data after I finished annotating. Here is the log:
Traceback (most recent call last): File "/home/feng/anaconda3/envs/label/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/home/feng/anaconda3/envs/label/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper return bound_method(*args, **kwargs) File "/home/feng/anaconda3/envs/label/lib/python3.9/site-packages/label_studio/data_export/api.py", line 183, in get export_stream, content_type, filename = DataExport.generate_export_file( File "/home/feng/anaconda3/envs/label/lib/python3.9/site-packages/label_studio/data_export/models.py", line 161, in generate_export_file converter.convert(input_json, tmp_dir, output_format, is_dir=False) File "/home/feng/anaconda3/envs/label/lib/python3.9/site-packages/label_studio_converter/converter.py", line 215, in convert self.convert_to_yolo( File "/home/feng/anaconda3/envs/label/lib/python3.9/site-packages/label_studio_converter/converter.py", line 871, in convert_to_yolo x, y, w, h = self.rotated_rectangle(label) File "/home/feng/anaconda3/envs/label/lib/python3.9/site-packages/label_studio_converter/converter.py", line 916, in rotated_rectangle label["x"], KeyError: 'x'
I can export data in JSON, CSV, and TSV formats without any issues, but I encounter an error when exporting in formats like YOLO and VOC.

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

1 participant