smile123456789 commited on
Commit
4130f66
1 Parent(s): ea72f73

update save_csv

Browse files
__pycache__/constants.cpython-310.pyc ADDED
Binary file (3.9 kB). View file
 
app.py CHANGED
@@ -76,7 +76,7 @@ def add_new_eval(
76
  input_data[16],
77
  ]
78
  csv_data.loc[col] = new_data
79
- csv_data = csv_data.to_csv(CSV_DIR, index=False)
80
  return 0
81
 
82
  def get_baseline_df():
@@ -136,7 +136,7 @@ with block:
136
  selected_columns = [item for item in TASK_INFO_v2 if item in selected_columns]
137
  present_columns = MODEL_INFO + selected_columns
138
  updated_data = get_all_df()[present_columns]
139
- updated_data = updated_data.sort_values(by=present_columns[3], ascending=False)
140
  updated_headers = present_columns
141
  update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
142
 
 
76
  input_data[16],
77
  ]
78
  csv_data.loc[col] = new_data
79
+ csv_data.to_csv(f'./file/{model_name}.csv', index=False)
80
  return 0
81
 
82
  def get_baseline_df():
 
136
  selected_columns = [item for item in TASK_INFO_v2 if item in selected_columns]
137
  present_columns = MODEL_INFO + selected_columns
138
  updated_data = get_all_df()[present_columns]
139
+ updated_data = updated_data.sort_values(by=present_columns[1], ascending=False)
140
  updated_headers = present_columns
141
  update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
142
 
file/1234567.csv ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Model,Avg. All,Avg. Video-Exclusive,Avg. Prior-Knowledge QA,Avg. Decision-Making,ActivityNet,MSVD,MSRVTT,TGIF,Youcook2,Ucfcrime,MOT,TVQA,MV,NBA,Driving-exam,Driving-decision-making,SQA3D
2
+ Random,28.45459441,25.84861538,24.47045673,35.04471112,0.3458,0.26224,0.265,0.22377,0.25,0.25,0.1667,0.2,0.26151895,0.272594752,0.368055556,0.44209,0.25
3
+ [VideoChat-7B](https://github.com/OpenGVLab/Ask-Anything),35.41215477,34.12376923,29.60966667,42.5030284,0.4455,0.4215,0.374,0.33744,0.27663,0.2241,0.27775,0.2615,0.34109,0.2857,0.388888,0.553846,0.31428571
4
+ [Video-ChatGPT-7B](https://github.com/mbzuai-oryx/Video-ChatGPT),38.5186297,39.81651709,29.244,46.495372,0.466,0.575,0.463,0.3559,0.348,0.2413,0.277747222,0.28764,0.3652,0.22448,0.4166666,0.582051,0.372
5
+ [Otter-7B](https://github.com/Luodian/Otter),37.47000387,37.51728162,32.99,41.90273,0.443,0.5495,0.4695,0.34266,0.3265,0.22413,0.166666611,0.2765,0.370635,0.342565,0.5277777,0.4871794,0.2965
6
+ [PandaGPT-7B](https://github.com/yxuansu/PandaGPT),37.52393217,37.53914677,31.98733333,43.0453164,0.449624,0.5042521,0.44594594,0.29663,0.33016,0.3301,0.166665,0.2785,0.37063,0.31049,0.4166,0.5602564,0.30757651
7
+ [Valley-7B](https://github.com/RupertLuo/Valley),33.95521521,28.38772829,29.20933333,44.268584,0.381,0.32032,0.2802802,0.3141,0.2905,0.203448,0.111108278,0.237,0.32587,0.31341,0.41666,0.5653846,0.333
8
+ [mPLUG-owl-7B](https://github.com/X-PLUG/mPLUG-Owl),33.14659856,33.16526701,26.39762867,39.8769,0.41470735,0.4245,0.363,0.31656,0.2705,0.2275862,0.277777611,0.2395,0.3017,0.25072886,0.333333,0.510256,0.32
9
+ [Video-LLaMA-7B](https://github.com/DAMO-NLP-SG/Video-LLaMA),32.83174044,32.48401966,27.79906667,38.212135,0.3985,0.4115,0.3405,0.312766,0.289,0.275862,0.166666556,0.2475,0.324082,0.26239,0.30555555,0.4910256,0.3115
10
+ [Chat-UniVi-7B](https://github.com/PKU-YuanGroup/Chat-UniVi),35.31147004,37.87,27.43,40.64,0.49,0.486,0.4165,0.413,0.29,0.2827,0.166666649,0.2305,0.3357,0.2566,0.3889,0.5308,0.2907
11
+ sphinx-v2,45.53190476,44.22571429,41.81666667,50.55333333,0.5307,0.6845,0.5395,0.5341,0.42,0.2759,0.1111,0.3645,0.4396,0.4504,0.4722,0.5564,0.488
src/__pycache__/compute.cpython-310.pyc ADDED
Binary file (2.14 kB). View file
 
src/__pycache__/utils_display.cpython-310.pyc ADDED
Binary file (4.19 kB). View file
 
src/auto_leaderboard/__pycache__/model_metadata_type.cpython-310.pyc ADDED
Binary file (1.17 kB). View file
 
src/compute.py CHANGED
@@ -236,5 +236,6 @@ def compute_scores(merge_file):
236
  ],
237
  ]
238
 
 
239
  return data
240
 
 
236
  ],
237
  ]
238
 
239
+
240
  return data
241