Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Fixed counters
Browse files
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(
|
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 |
|