-
Notifications
You must be signed in to change notification settings - Fork 5.9k
export_to_video causes: ValueError: too many values to unpack (expected 3) #6869
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
Comments
Hi @tin2tin! Could you please give video_path = export_to_video(video_frames[0]) |
Yes, no errors with [0], but you only get a freeze-frame of course. |
@tin2tin The following snippet is working for me. Note that using import torch
from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
from diffusers.utils import export_to_video
from PIL import Image
pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float16)
pipe.enable_model_cpu_offload()
# memory optimization
pipe.unet.enable_forward_chunking(chunk_size=1, dim=1)
pipe.enable_vae_slicing()
prompt = "Darth Vader surfing a wave"
video_frames = pipe(prompt, num_frames=24).frames[0]
video_path = export_to_video(video_frames, fps=10, output_video_path="vid-export.mp4") |
@DN6 Yes. Thank you. This is working. Maybe the documentation needs a check-up, to ensure that this is inserted where needed. |
@tin2tin |
Describe the bug
export_to_video causes: ValueError: too many values to unpack (expected 3)
I know that some work has been done here, but the error persists in 0.26.2, even though this patch has been committed some time ago : #6715
Reproduction
Run the code from: https://huggingface.co/docs/diffusers/v0.26.2/en/api/pipelines/text_to_video#cerspensezeroscopev2576w--cerspensezeroscopev2xl
Logs
System Info
Win 11
Diffusers: 0.26.2
Who can help?
@DN6 @sayakpaul
The text was updated successfully, but these errors were encountered: