jianmanlincjx / ASCCL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[CVPR 2024 Highlight (11.9%)] Learning Adaptive Spatial Coherent Correlations for Speech-Preserving Facial Expression Manipulation

Requirements

  • Download the MEAD dataset from (here).
  • Download the pre-trained weights (here) (" backbone.pth ")

Preprocessing

The obtained MEAD dataset is first preprocessed with 'align_face.py':

python align_face.py

Paired image frames of the same speaker saying the same sentence with different emotions are recorded in aligned_path36.json

Training

To train the model, run './trainer/train_asccl.py' with the preprocessed dataset path configured:

python ./trainer/train_asccl.py

Integration into SPFEM models(take NED as example)

NED:(code).

Integrate ASCCL into NED's training process:

  1. First follow NED's data preprocessing process to obtain training data and model parameters
  2. Replace the train.py file in NED's manipulator folder with the train_ned.py file

About


Languages

Language:Python 100.0%