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 I change the code to get picture as the result? #11

Open
winterplayer opened this issue Apr 13, 2022 · 4 comments
Open

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

winterplayer opened this issue Apr 13, 2022 · 4 comments

Comments

@winterplayer
Copy link

winterplayer commented Apr 13, 2022

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 winterplayer changed the title c Can I change the code to get picture as the result? Apr 13, 2022
@winterplayer winterplayer reopened this Apr 13, 2022
@Qiulin-W
Copy link
Owner

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

@winterplayer
Copy link
Author

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

Thank you.

@winterplayer
Copy link
Author

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
Copy link
Author

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

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

2 participants