How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("VikramSingh178/mochi-diffuser-bf16", dtype=torch.bfloat16, device_map="cuda")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]
from diffusers import MochiPipeline
from diffusers.utils import export_to_video

pipe = MochiPipeline.from_pretrained(VikramSingh178/mochi-diffuser-bf16, torch_dtype=torch.bfloat16)
pipe.to("cuda")
prompt = "A beautiful sunset over the mountains"
frames = pipe(prompt, num_inference_steps=50, guidance_scale=4.5,num_frames=61,generator=torch.Generator(device="cuda").manual_seed(42),).frames[0]
export_to_video(frames, "sunset.mp4")
Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for VikramSingh178/mochi-diffuser-bf16

Finetuned
(6)
this model