Shaltiel commited on
Commit
26a080d
1 Parent(s): 0405ac5

Fixed counters

Browse files
Files changed (1) hide show
  1. src/submission/check_validity.py +3 -1
src/submission/check_validity.py CHANGED
@@ -86,9 +86,11 @@ def already_submitted_models(requested_models_dir: str) -> set[str]:
86
  current_depth = root.count(os.sep) - requested_models_dir.count(os.sep)
87
  if current_depth == depth:
88
  for file in files:
 
 
89
  if not file.endswith(".json"):
90
  continue
91
- with open(os.path.join(root, file), "r") as f:
92
  info = json.load(f)
93
  file_names.append(f"{info['model']}_{info['revision']}_{info['precision']}")
94
 
 
86
  current_depth = root.count(os.sep) - requested_models_dir.count(os.sep)
87
  if current_depth == depth:
88
  for file in files:
89
+ file_path = os.path.join(root, file)
90
+ if 'counters/' in file_path: continue
91
  if not file.endswith(".json"):
92
  continue
93
+ with open(file_path, "r") as f:
94
  info = json.load(f)
95
  file_names.append(f"{info['model']}_{info['revision']}_{info['precision']}")
96