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
{{ message }}
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
When using label-studio-converter==0.0.54rc0, with a YOLO TXT dataset with polygon masks and two classes, I get the following error trace:
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "...label-studio-converter.exe\__main__.py", line 7, in <module>
File "...\label_studio_converter\main.py", line 189, in main
imports(args)
File "...\label_studio_converter\main.py", line 160, in imports
import_yolo.convert_yolo_to_ls(
File "...\label_studio_converter\imports\yolo.py", line 113, in convert_yolo_to_ls
label_id, x, y, width, height = line.split()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 5)
Command used for conversion: label-studio-converter import yolo -i <dataset_root> -o <dataset_name>.json
The codebase suggests that it expects only detection scenario with bounding boxes. It is unclear if segmentation masks are supported as the examples in the documentation only mention detection cases.
Another member asked a similar question (#208 (comment)) but there was yet to be an answer about this.
Please consider supporting polygons for segmentation masks if not already supported.
The text was updated successfully, but these errors were encountered:
Same for "label-studio-converter==0.0.58" (while importing a dataset with polygons, not boxes)
Traceback (most recent call last):
File ".../label-studio-converter", line 8, in <module>
sys.exit(main())
File ".../label_studio_converter/main.py", line 189, in main
imports(args)
File ".../label_studio_converter/main.py", line 160, in imports
import_yolo.convert_yolo_to_ls(
File ".../label_studio_converter/imports/yolo.py", line 113, in convert_yolo_to_ls
label_id, x, y, width, height = line.split()
ValueError: too many values to unpack (expected 5)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using label-studio-converter==0.0.54rc0, with a YOLO TXT dataset with polygon masks and two classes, I get the following error trace:
Command used for conversion:
label-studio-converter import yolo -i <dataset_root> -o <dataset_name>.json
The codebase suggests that it expects only detection scenario with bounding boxes. It is unclear if segmentation masks are supported as the examples in the documentation only mention detection cases.
Another member asked a similar question (#208 (comment)) but there was yet to be an answer about this.
Please consider supporting polygons for segmentation masks if not already supported.
The text was updated successfully, but these errors were encountered: