Windows compatibility
This commit is contained in:
@@ -8,6 +8,8 @@ import shutil
|
||||
from pathlib import Path
|
||||
from collections import defaultdict
|
||||
|
||||
from utils import read_all_labels
|
||||
|
||||
carreau = 1000 // 38
|
||||
|
||||
|
||||
@@ -208,6 +210,8 @@ if __name__ == "__main__":
|
||||
print(f"Error: {input_arg} is not a valid file or directory.")
|
||||
sys.exit(1)
|
||||
|
||||
read_all_labels(base_dir)
|
||||
|
||||
for pdf_path in pdf_files:
|
||||
json_path = pdf_path.with_suffix(".json")
|
||||
# print("Debug :", json_path)
|
||||
|
||||
Reference in New Issue
Block a user