Does animatediff function added to the webuiapi?
Does animatediff function added to the webuiapi?
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]))
thank you sooo much!! did you update last week. cuz I have not found the api 2 weks ago
It was added today :)
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.
new issue here, with r.image.save('puppy.gif', save_all=True) can only save 1 frame.
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.
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!