Hi!
I have labels and detections that I am using with YOLO. Once I load all of the annotations for groundtruth and detections to the GUI and click "Run", the program crashes.
My issue might be related to the .txt files that I am using, this is an example of one of my .txt files for one of my images:
Example from a .txt file in the groundtruth folder(generated from LabelImg tool):
2 0.771250 0.220000 0.350000 0.335000
Example from a .txt file in the detection folder(generated from darknet detector):
1 0.2522 0.1515 0.2163 0.3143
0 0.6483 0.6727 0.8530 0.4814
I have a classes.txt file that I have also loaded
This is the output from terminal:
Traceback (most recent call last):
File "/Users/zaraadamou/review_object_detection_metrics/src/ui/run_ui.py", line 312, in btn_run_clicked
det_annotations, passed = self.load_annotations_det()
File "/Users/zaraadamou/review_object_detection_metrics/src/ui/run_ui.py", line 154, in load_annotations_det
ret = converter.text2bb(self.dir_dets,
File "/Users/zaraadamou/review_object_detection_metrics/src/utils/converter.py", line 257, in text2bb
if bb_type == BBType.DETECTED and not validations.is_relative_text_format(
File "/Users/zaraadamou/review_object_detection_metrics/src/utils/validations.py", line 369, in is_relative_text_format
if not is_empty_file(file_path):
File "/Users/zaraadamou/review_object_detection_metrics/src/utils/validations.py", line 542, in is_empty_file
for line in f:
File "/Users/zaraadamou/opt/anaconda3/envs/objmetrics/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 99: invalid continuation byte
zsh: abort python run.py
-Zara