ynhe commited on
Commit
c1d6314
1 Parent(s): 2f05323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -144,7 +144,7 @@ def calculate_selected_score_i2v(df, selected_columns):
144
  def get_final_score(df, selected_columns):
145
  normalize_df = get_normalized_df(df)
146
  #final_score = normalize_df.drop('name', axis=1).sum(axis=1)
147
- for name in normalize_df.drop('Model Name (clickable)', axis=1):
148
  normalize_df[name] = normalize_df[name]*DIM_WEIGHT[name]
149
  quality_score = normalize_df[QUALITY_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in QUALITY_LIST])
150
  semantic_score = normalize_df[SEMANTIC_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in SEMANTIC_LIST ])
@@ -199,7 +199,7 @@ def get_final_score_i2v(df, selected_columns):
199
 
200
  def get_final_score_quality(df, selected_columns):
201
  normalize_df = get_normalized_df(df)
202
- for name in normalize_df.drop('Model Name (clickable)', axis=1):
203
  normalize_df[name] = normalize_df[name]*DIM_WEIGHT[name]
204
  quality_score = normalize_df[QUALITY_TAB].sum(axis=1) / sum([DIM_WEIGHT[i] for i in QUALITY_TAB])
205
 
 
144
  def get_final_score(df, selected_columns):
145
  normalize_df = get_normalized_df(df)
146
  #final_score = normalize_df.drop('name', axis=1).sum(axis=1)
147
+ for name in normalize_df.drop('Model Name (clickable)', axis=1).drop('Source', axis=1):
148
  normalize_df[name] = normalize_df[name]*DIM_WEIGHT[name]
149
  quality_score = normalize_df[QUALITY_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in QUALITY_LIST])
150
  semantic_score = normalize_df[SEMANTIC_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in SEMANTIC_LIST ])
 
199
 
200
  def get_final_score_quality(df, selected_columns):
201
  normalize_df = get_normalized_df(df)
202
+ for name in normalize_df.drop('Model Name (clickable)', axis=1).drop('Video-Text Camera Motion', axis=1):
203
  normalize_df[name] = normalize_df[name]*DIM_WEIGHT[name]
204
  quality_score = normalize_df[QUALITY_TAB].sum(axis=1) / sum([DIM_WEIGHT[i] for i in QUALITY_TAB])
205