Consistent all_labels reading
This commit is contained in:
+3
-1
@@ -319,7 +319,9 @@ if __name__ == "__main__":
|
||||
files_to_process = sorted(cutleft_dir.glob("*.jpg"))
|
||||
|
||||
try:
|
||||
all_labels = list(filter(None, (base_dir / "labels").read_text().splitlines()))
|
||||
all_labels = sorted(list(filter(None,
|
||||
(base_dir / "labels").read_text().splitlines())),
|
||||
key = natural_key)
|
||||
except FileNotFoundError:
|
||||
all_labels = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user