SAFA icon indicating copy to clipboard operation
SAFA copied to clipboard

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

Open winterplayer opened this issue 2 years ago • 4 comments

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

winterplayer avatar Apr 13 '22 08:04 winterplayer

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

Qiulin-W avatar Apr 13 '22 08:04 Qiulin-W

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

Thank you.

winterplayer avatar Apr 13 '22 13:04 winterplayer

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 avatar Apr 15 '22 07:04 winterplayer

@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?

winterplayer avatar Apr 19 '22 12:04 winterplayer