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
Describe the bug
YoloV5 label txt files do not always use a single space as a delimiter. Some tools generate yolo-compatible labels with tab as a delimiter. However, parsing these labels in globox leads to an error since the default separator must be a single space character. Globox would be more robust if it allowed any whitespace character as delimiters for yolo label files.
To Reproduce
Change any yolo label file so that it has one non-space delimiter such as tab and try to parse in the label files with AnnotationSet.from_yolo_v5
Expected behavior
File parsing error occurs, e.g.
File "/home/lonrix/miniconda3/envs/training_data_processing/lib/python3.11/site-packages/globox/annotation.py", line 136, in from_txt
raise FileParsingError(path, e.reason)
globox.errors.FileParsingError: Error while reading file '/home/lonrix/train/faults_v4_taurangacc_2023/val/labels/1187B1R1-ROW-00159.txt': Syntax error in txt annotation file.
Environment (please complete the following information):
Python 3.11, latest version of globox.
The text was updated successfully, but these errors were encountered:
Describe the bug
YoloV5 label txt files do not always use a single space as a delimiter. Some tools generate yolo-compatible labels with tab as a delimiter. However, parsing these labels in globox leads to an error since the default separator must be a single space character. Globox would be more robust if it allowed any whitespace character as delimiters for yolo label files.
To Reproduce
Change any yolo label file so that it has one non-space delimiter such as tab and try to parse in the label files with AnnotationSet.from_yolo_v5
Expected behavior
File parsing error occurs, e.g.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: