remove debugging code
Browse files
cdip-annotations-formnet.py
CHANGED
|
@@ -79,11 +79,11 @@ class CDIPAnnotations(datasets.GeneratorBasedBuilder):
|
|
| 79 |
logger.info("⏳ Generating examples from = %s", annot_root)
|
| 80 |
|
| 81 |
cnt = 0
|
| 82 |
-
for subfolder in sorted(list(os.listdir(annot_root)))
|
| 83 |
subfolder_path = os.path.join(annot_root, subfolder)
|
| 84 |
logger.info(f"{subfolder = }")
|
| 85 |
|
| 86 |
-
for json_folder in os.listdir(subfolder_path)
|
| 87 |
json_folder_path = os.path.join(subfolder_path, json_folder)
|
| 88 |
json_paths = list(Path(json_folder_path).glob("**/*.json"))
|
| 89 |
logger.info(f"{json_folder, len(json_paths) = }")
|
|
|
|
| 79 |
logger.info("⏳ Generating examples from = %s", annot_root)
|
| 80 |
|
| 81 |
cnt = 0
|
| 82 |
+
for subfolder in sorted(list(os.listdir(annot_root))): # b.a, b.b
|
| 83 |
subfolder_path = os.path.join(annot_root, subfolder)
|
| 84 |
logger.info(f"{subfolder = }")
|
| 85 |
|
| 86 |
+
for json_folder in os.listdir(subfolder_path): # b.a.p, b.a.c
|
| 87 |
json_folder_path = os.path.join(subfolder_path, json_folder)
|
| 88 |
json_paths = list(Path(json_folder_path).glob("**/*.json"))
|
| 89 |
logger.info(f"{json_folder, len(json_paths) = }")
|