syingxi commited on
Commit
e9dbab6
·
verified ·
1 Parent(s): c19856f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 subfile:
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 = ["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])
 
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])