Instructions to use zai-org/CogVideoX-5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zai-org/CogVideoX-5b with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("zai-org/CogVideoX-5b", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
How to add an image and combining prompts to create video?
#13
by derekcbr01 - opened
video_frames = pipe(
prompt=mydict["prompt"],
num_videos_per_prompt=1,
num_inference_steps=50,
num_frames=32,
guidance_scale=6,
generator=torch.Generator(device="cuda").manual_seed(random_seed),
).frames[0]
Where can I find the parameters of the func in api documents?
check our github tonight