Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ def add_new_eval(
|
|
28 |
model_link: str,
|
29 |
team_name: str,
|
30 |
contact_email: str,
|
|
|
31 |
model_publish: str,
|
32 |
model_resolution: str,
|
33 |
model_fps: str,
|
@@ -116,6 +117,8 @@ def add_new_eval(
|
|
116 |
|
117 |
new_data.append(contact_email.replace(',',' and ')) # Add contact email [private]
|
118 |
new_data.append(update_time) # Add the update time
|
|
|
|
|
119 |
|
120 |
csv_data.loc[col] = new_data
|
121 |
csv_data = csv_data.to_csv(CSV_DIR, index=False)
|
@@ -132,6 +135,7 @@ def add_new_eval_i2v(
|
|
132 |
model_link: str,
|
133 |
team_name: str,
|
134 |
contact_email: str,
|
|
|
135 |
model_publish: str,
|
136 |
model_resolution: str,
|
137 |
model_fps: str,
|
@@ -225,7 +229,7 @@ def add_new_eval_i2v(
|
|
225 |
"Video-Image Background Consistency",
|
226 |
"Subject Consistency",
|
227 |
"Background Consistency",
|
228 |
-
|
229 |
"Motion Smoothness",
|
230 |
"Dynamic Degree",
|
231 |
"Aesthetic Quality",
|
@@ -243,6 +247,8 @@ def add_new_eval_i2v(
|
|
243 |
|
244 |
new_data.append(contact_email.replace(',',' and ')) # Add contact email [private]
|
245 |
new_data.append(update_time) # Add the update time
|
|
|
|
|
246 |
|
247 |
csv_data.loc[col] = new_data
|
248 |
csv_data = csv_data.to_csv(I2V_DIR , index=False)
|
@@ -339,7 +345,7 @@ def get_final_score(df, selected_columns):
|
|
339 |
def get_final_score_i2v(df, selected_columns):
|
340 |
normalize_df = get_normalized_i2v_df(df)
|
341 |
try:
|
342 |
-
for name in normalize_df.drop('Model Name (clickable)', axis=1).drop(
|
343 |
normalize_df[name] = normalize_df[name]*DIM_WEIGHT_I2V[name]
|
344 |
except:
|
345 |
for name in normalize_df.drop('Model Name (clickable)', axis=1).drop("Sampled by", axis=1).drop('Mail', axis=1).drop('Date',axis=1):
|
@@ -887,6 +893,8 @@ with block:
|
|
887 |
revision_name_textbox_i2v = gr.Textbox(
|
888 |
label="Revision Model Name(Optional)", placeholder="If you need to update the previous results, please fill in this line"
|
889 |
)
|
|
|
|
|
890 |
|
891 |
with gr.Column():
|
892 |
model_link_i2v = gr.Textbox(
|
@@ -927,7 +935,7 @@ with block:
|
|
927 |
team_name_i2v,
|
928 |
contact_email_i2v,
|
929 |
release_time_i2v,
|
930 |
-
|
931 |
model_resolution_i2v,
|
932 |
model_fps_i2v,
|
933 |
model_frame_i2v,
|
|
|
28 |
model_link: str,
|
29 |
team_name: str,
|
30 |
contact_email: str,
|
31 |
+
access_type: str,
|
32 |
model_publish: str,
|
33 |
model_resolution: str,
|
34 |
model_fps: str,
|
|
|
117 |
|
118 |
new_data.append(contact_email.replace(',',' and ')) # Add contact email [private]
|
119 |
new_data.append(update_time) # Add the update time
|
120 |
+
new_data.append(team_name)
|
121 |
+
new_data.append(access_type)
|
122 |
|
123 |
csv_data.loc[col] = new_data
|
124 |
csv_data = csv_data.to_csv(CSV_DIR, index=False)
|
|
|
135 |
model_link: str,
|
136 |
team_name: str,
|
137 |
contact_email: str,
|
138 |
+
access_type: str,
|
139 |
model_publish: str,
|
140 |
model_resolution: str,
|
141 |
model_fps: str,
|
|
|
229 |
"Video-Image Background Consistency",
|
230 |
"Subject Consistency",
|
231 |
"Background Consistency",
|
232 |
+
"Temporal Flickering",
|
233 |
"Motion Smoothness",
|
234 |
"Dynamic Degree",
|
235 |
"Aesthetic Quality",
|
|
|
247 |
|
248 |
new_data.append(contact_email.replace(',',' and ')) # Add contact email [private]
|
249 |
new_data.append(update_time) # Add the update time
|
250 |
+
new_data.append(team_name)
|
251 |
+
new_data.append(access_type)
|
252 |
|
253 |
csv_data.loc[col] = new_data
|
254 |
csv_data = csv_data.to_csv(I2V_DIR , index=False)
|
|
|
345 |
def get_final_score_i2v(df, selected_columns):
|
346 |
normalize_df = get_normalized_i2v_df(df)
|
347 |
try:
|
348 |
+
for name in normalize_df.drop('Model Name (clickable)', axis=1).drop("Sampled by", axis=1).drop('Mail', axis=1).drop('Date',axis=1).drop("Evaluated by", axis=1).drop("Accessibility", axis=1):
|
349 |
normalize_df[name] = normalize_df[name]*DIM_WEIGHT_I2V[name]
|
350 |
except:
|
351 |
for name in normalize_df.drop('Model Name (clickable)', axis=1).drop("Sampled by", axis=1).drop('Mail', axis=1).drop('Date',axis=1):
|
|
|
893 |
revision_name_textbox_i2v = gr.Textbox(
|
894 |
label="Revision Model Name(Optional)", placeholder="If you need to update the previous results, please fill in this line"
|
895 |
)
|
896 |
+
access_type_i2v = gr.Dropdown(["Open Source", "Ready to Open Source", "API", "Close"], label="Please select the way user can access your model. You can update the content by revision_name, or contact the VBench Team.")
|
897 |
+
|
898 |
|
899 |
with gr.Column():
|
900 |
model_link_i2v = gr.Textbox(
|
|
|
935 |
team_name_i2v,
|
936 |
contact_email_i2v,
|
937 |
release_time_i2v,
|
938 |
+
access_type_i2v,
|
939 |
model_resolution_i2v,
|
940 |
model_fps_i2v,
|
941 |
model_frame_i2v,
|