Qiulin-W / SAFA

Official Pytorch Implementation of 3DV2021 paper: SAFA: Structure Aware Face Animation.
Other
177 stars 29 forks source link

Can I change the code to get picture as the result? #11

Open winterplayer opened 2 years ago

winterplayer commented 2 years ago

Hello,I'd like to ask if I can use picture as driving_input instead of video to obtain the output results of pictures.

Qiulin-W commented 2 years ago

Yes, but you need to turn off the --relative option, use absolute mode instead.

winterplayer commented 2 years ago

Yes, but you need to turn off the --relative option, use absolute mode instead.

Thank you.

winterplayer commented 2 years ago

Yes, but you need to turn off the --relative option, use absolute mode instead.

I change “def make_animation(source_image, driving_video, generator, kp_detector, tdmm, with_eye=False,relative=True, adapt_movement_scale=True, cpu=False)” to “def make_animation(source_image, driving_video, generator, kp_detector, tdmm, with_eye=False,relative=False, adapt_movement_scale=True, cpu=False)”.But it has some errors. Traceback (most recent call last): File "animation_demo.py", line 196, in fps = reader.get_meta_data()['fps'] KeyError: 'fps' What should I deal with it?

winterplayer commented 2 years ago

@Qiulin-W Thank you for your reply. Can you tell me what to do and how to solve this problem? Can you get the picture results?