Downloads · 30 days
0
eulurl/piivjf
piivjf is a machine learning model from eulurl. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
$ pip install diffusers transformers accelerate torch import torch from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler from diffusers.utils import exporttovideo
Downloads · 30 days
0
Access
Public
Updated Sep 21, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 73%
From the Hugging Face model README
$ pip install diffusers transformers accelerate torch import torch from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler from diffusers.utils import export_to_video
pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float16) pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config) pipe.enable_model_cpu_offload()
prompt = "Darth Vader is surfing on waves" video_frames = pipe(prompt, num_inference_steps=40, height=320, width=576, num_frames=24).frames video_path = export_to_video(video_frames)