jinho8345 commited on
Commit
ab97400
·
1 Parent(s): 9078e85

remove debugging code

Browse files
Files changed (1) hide show
  1. cdip-annotations-formnet.py +2 -2
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)))[:1]: # 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)[:2]: # 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) = }")
 
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) = }")