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

Does animatediff function added to the webuiapi? #178

Open
Louis24 opened this issue Jul 25, 2024 · 7 comments
Open

Does animatediff function added to the webuiapi? #178

Louis24 opened this issue Jul 25, 2024 · 7 comments

Comments

@Louis24
Copy link

Louis24 commented Jul 25, 2024

Does animatediff function added to the webuiapi?

@mix1009
Copy link
Owner

mix1009 commented Aug 1, 2024

Added AnimateDiff extension support :)

adiff = webuiapi.AnimateDiff(model='mm_sd15_v3.safetensors',
                             video_length=24,
                             closed_loop='R+P',
                             format=['GIF'])

r = api.txt2img(prompt='cute puppy', animatediff=adiff)

# save GIF file. need save_all=True to save animated GIF.
r.image.save('puppy.gif', save_all=True)

# Display animated GIF in Jupyter notebook
from IPython.display import HTML
HTML('<img src="data:image/gif;base64,{0}"/>'.format(r.json['images'][0]))

@Louis24
Copy link
Author

Louis24 commented Aug 1, 2024

thank you sooo much!! did you update last week. cuz I have not found the api 2 weks ago

@mix1009
Copy link
Owner

mix1009 commented Aug 1, 2024

It was added today :)

@Louis24
Copy link
Author

Louis24 commented Aug 1, 2024

It was added today :)

Haha, thanks, by the way, how about lora, does it still need to be loaded through style.csv?

And style.csv should be prepared before the server starts, otherwise it cannot be refreshed.

@Louis24
Copy link
Author

Louis24 commented Aug 2, 2024

new issue here, with r.image.save('puppy.gif', save_all=True) can only save 1 frame.

@mix1009
Copy link
Owner

mix1009 commented Aug 2, 2024

Could you check your PIL library version?

import PIL
print(PIL.__version__)

I'm on 10.2.0.
It saved 4.8 MB gif file with 24 512x512 frames.

@Louis24
Copy link
Author

Louis24 commented Aug 2, 2024

Could you check your PIL library version?

import PIL
print(PIL.__version__)

I'm on 10.2.0. It saved 4.8 MB gif file with 24 512x512 frames.

Thank you, I have updated the animatediff extension and solved!

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