-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Kandinsky 5 10 sec (NABLA suport) #12520
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Álvaro Somoza <[email protected]>
Co-authored-by: Álvaro Somoza <[email protected]>
Co-authored-by: Álvaro Somoza <[email protected]>
Co-authored-by: Álvaro Somoza <[email protected]>
Co-authored-by: Álvaro Somoza <[email protected]>
Co-authored-by: YiYi Xu <[email protected]>
Co-authored-by: YiYi Xu <[email protected]>
|
Yes, that should cut it! |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
Okay, this seems to be working: import torch
from diffusers import Kandinsky5T2VPipeline
from diffusers.utils import export_to_video
# Load the pipeline
pipe = Kandinsky5T2VPipeline.from_pretrained(
"ai-forever/Kandinsky-5.0-T2V-Lite-sft-10s-Diffusers",
torch_dtype=torch.bfloat16
)
pipe = pipe.to("cuda")
pipe.transformer.set_attention_backend("flex")
pipe.transformer.compile(mode="max-autotune-no-cudagraphs", dynamic=True)
# Generate video
prompt = "A cat and a dog baking a cake together in a kitchen."
negative_prompt = "Static, 2D cartoon, cartoon, 2d animation, paintings, images, worst quality, low quality, ugly, deformed, walking backwards"
output = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
height=512,
width=768,
num_frames=241,
num_inference_steps=50,
guidance_scale=5.0,
).frames[0]
## Save the video
export_to_video(output, "output.mp4", fps=24, quality=9)from: https://huggingface.co/ai-forever/Kandinsky-5.0-T2V-Lite-sft-10s-Diffusers |
|
@yiyixuxu @sayakpaul |
|
@leffff let's add the tests and docs as well. |
|
ok, let's just use this PR to add docs and tests? |
|
Okay |
|
Please checkout the docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
|
@bot /style |
|
Style bot fixed some files and pushed the changes. |
|
@yiyixuxu plz check the new docs version! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks really good! thanks!
|
@leffff could you also add |
|
Okay! |
|
@sayakpaul @yiyixuxu done! |
This PR adds support for 10 sec Kandinsky 5.0 model herd.
output.12.mp4