Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you animate any FLAME face model like voca does #45

Open
GrizzCMX opened this issue Jul 24, 2023 · 8 comments
Open

Can you animate any FLAME face model like voca does #45

GrizzCMX opened this issue Jul 24, 2023 · 8 comments

Comments

@GrizzCMX
Copy link

Can I use the flame face model outside the vocaset(Training set, Validation set and test set) as a template to generate face animation, how do I set it up, and can I do it using a pre-trained model? Or need to retrain the model

@Doubiiu
Copy link
Owner

Doubiiu commented Jul 24, 2023

You can check the templates.pkl file and define your own templates.pkl to use new templates. Sure you can use the pre-trained model.

@GrizzCMX
Copy link
Author

Thanks for your reply! I will try it agin

@LeoniusChen
Copy link

You can check the templates.pkl file and define your own templates.pkl to use new templates. Sure you can use the pre-trained model.

Hi, do you know how to get a templates.pkl from a single portrait image? Any open-source repo to be found?

@Doubiiu
Copy link
Owner

Doubiiu commented Aug 15, 2023

@LeoniusChen Hi, DECA is a widely used 3D face reconstruction method by estimating FLAME parameters, and then they can be converted to mesh representations. Please check the FLAME repo for more info.

@LeoniusChen
Copy link

LeoniusChen commented Aug 21, 2023

@LeoniusChen Hi, DECA is a widely used 3D face reconstruction method by estimating FLAME parameters, and then they can be converted to mesh representations. Please check the FLAME repo for more info.

I successfully obtained the template using DECA and FLAME, and replace the template in the codes

template_file = os.path.join(cfg.data_root, "FLAME_sample.ply")
and
template_file = os.path.join(cfg.data_root, cfg.template_file)
. However, the result is not satisfying. I wonder if the subject for inference should be carefully chosen?

zh_en_12s_FaceTalk_170809_00138_TA_condition_FaceTalk_170725_00137_TA_audio.mp4

@Doubiiu
Copy link
Owner

Doubiiu commented Aug 22, 2023

Hi, 'subject' is used to change the template for displaying, since you have utilized your own subject, there should be no effect when you are changing 'subject' in demo.yaml. But I think chaning 'condition' in the config may influence the results, you can have a try. BTW, the unsatisfactory results may be caused by domain gap between Chinese and English. You may check if the English audio can work well.

@GrizzCMX GrizzCMX reopened this Aug 22, 2023
@zk19971101
Copy link

@Doubiiu @LeoniusChen
Is the color and context information from a single portrait image can be add to tamplate or Mesh?

@hrWong
Copy link

hrWong commented Jul 15, 2024

Hi @Doubiiu @LeoniusChen I'm using DECA and can't get the .pkl template, I'd like to ask you how exactly did you get the template.pkl?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants