fix for neg face expressivity

This commit is contained in:
vjbytes102
2020-09-04 13:54:55 -04:00
committed by GitHub
parent 8e5f9fb802
commit b4158b9c53

View File

@@ -41,6 +41,9 @@ def of_feature(df_of, cfr, f_cfg):
if len(df_of[f_cfg.neg_exp])>0: if len(df_of[f_cfg.neg_exp])>0:
df_of[f_cfg.neg_exp] = df_of[f_cfg.neg_exp]/5 df_of[f_cfg.neg_exp] = df_of[f_cfg.neg_exp]/5
if len(df_of[f_cfg.neg_exp_full])>0:
df_of[f_cfg.neg_exp_full] = df_of[f_cfg.neg_exp_full]/5
if len(df_of[f_cfg.com_exp])>0: if len(df_of[f_cfg.com_exp])>0:
df_of[f_cfg.com_exp] = df_of[f_cfg.com_exp]/7 df_of[f_cfg.com_exp] = df_of[f_cfg.com_exp]/7
@@ -80,4 +83,4 @@ def run_face_expressivity(video_uri, out_dir, f_cfg):
ut.save_output(exp_final_df, out_loc, fl_name, face_expr_dir, csv_ext) ut.save_output(exp_final_df, out_loc, fl_name, face_expr_dir, csv_ext)
except Exception as e: except Exception as e:
logger.error('Failed to process video file') logger.error('Failed to process video file')