From b4158b9c539c9eaf774327314c2582503968710a Mon Sep 17 00:00:00 2001 From: vjbytes102 <46790706+vjbytes102@users.noreply.github.com> Date: Fri, 4 Sep 2020 13:54:55 -0400 Subject: [PATCH] fix for neg face expressivity --- .../raw_features/video/face_emotion_expressivity.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbm_lib/dbm_features/raw_features/video/face_emotion_expressivity.py b/dbm_lib/dbm_features/raw_features/video/face_emotion_expressivity.py index a35f73ed..454fb8e9 100644 --- a/dbm_lib/dbm_features/raw_features/video/face_emotion_expressivity.py +++ b/dbm_lib/dbm_features/raw_features/video/face_emotion_expressivity.py @@ -41,6 +41,9 @@ def of_feature(df_of, cfr, f_cfg): if len(df_of[f_cfg.neg_exp])>0: 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: 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) except Exception as e: - logger.error('Failed to process video file') \ No newline at end of file + logger.error('Failed to process video file')