Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

YoloReader never receives a 3rd positional argument (line 1560 of lab… #1024

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion labelImg.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def __init__(self, default_filename=None, default_prefdef_class_file=None, defau

# Load predefined classes to the list
self.load_predefined_classes(default_prefdef_class_file)
self.default_prefdef_class_file = default_prefdef_class_file

if self.label_hist:
self.default_label = self.label_hist[0]
Expand Down Expand Up @@ -1636,7 +1637,7 @@ def load_yolo_txt_by_filename(self, txt_path):
return

self.set_format(FORMAT_YOLO)
t_yolo_parse_reader = YoloReader(txt_path, self.image)
t_yolo_parse_reader = YoloReader(txt_path, self.image, self.default_prefdef_class_file)
shapes = t_yolo_parse_reader.get_shapes()
print(shapes)
self.load_labels(shapes)
Expand Down