Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,7 +223,7 @@ def add_new_eval_vbench2(
|
|
| 223 |
upload_data[key.replace('_',' ')] = cur_json[key][0]
|
| 224 |
print(f"{key}:{cur_json[key][0]}")
|
| 225 |
else:
|
| 226 |
-
if subfile.endswith(".json") and "eval_result" in
|
| 227 |
with open(cur_subfile) as ff:
|
| 228 |
cur_json = json.load(ff)
|
| 229 |
print(file, type(cur_json))
|
|
@@ -244,9 +244,9 @@ def add_new_eval_vbench2(
|
|
| 244 |
# add new data
|
| 245 |
new_data = [model_name]
|
| 246 |
# print('upload_data:', upload_data)
|
| 247 |
-
dim_vbench2_sub = ["
|
| 248 |
-
"Mechanics", "Thermotics", "Composition", "
|
| 249 |
-
"
|
| 250 |
for key in dim_vbench2_sub:
|
| 251 |
if key in upload_data:
|
| 252 |
new_data.append(upload_data[key])
|
|
|
|
| 223 |
upload_data[key.replace('_',' ')] = cur_json[key][0]
|
| 224 |
print(f"{key}:{cur_json[key][0]}")
|
| 225 |
else:
|
| 226 |
+
if subfile.endswith(".json") and "eval_result" in file:
|
| 227 |
with open(cur_subfile) as ff:
|
| 228 |
cur_json = json.load(ff)
|
| 229 |
print(file, type(cur_json))
|
|
|
|
| 244 |
# add new data
|
| 245 |
new_data = [model_name]
|
| 246 |
# print('upload_data:', upload_data)
|
| 247 |
+
dim_vbench2_sub = ["Dynamic Attribute", "Dynamic Spatial Relationship", "Motion Rationality", "Multi-View Consistency", "Motion Order Understanding", "Material",
|
| 248 |
+
"Mechanics", "Thermotics", "Composition", "Complex Plot", "Complex Landscape", "Human Interaction",
|
| 249 |
+
"Human Identity", "Human Clothes", "Human Anatomy", "Diversity", "Instance Preservation", "Camera Motion"]
|
| 250 |
for key in dim_vbench2_sub:
|
| 251 |
if key in upload_data:
|
| 252 |
new_data.append(upload_data[key])
|