Instructions to use google/ddpm-ema-cat-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use google/ddpm-ema-cat-256 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("google/ddpm-ema-cat-256", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download diffusion_pytorch_model.bin from google/ddpm-ema-cat-256: direct link, hf CLI and curl.
- Browser
- Download file 455 MB
-
https://huggingface.co/google/ddpm-ema-cat-256/resolve/main/diffusion_pytorch_model.bin
- Command line
-
hf download hf://google/ddpm-ema-cat-256/diffusion_pytorch_model.bin
-
curl -L -o diffusion_pytorch_model.bin https://huggingface.co/google/ddpm-ema-cat-256/resolve/main/diffusion_pytorch_model.bin
455 MB
- Xet hash:
- aef566b88abe76a7a24e4af5f428f3d0b07b29a7279cd7e0695f517d4ba6a580
- Size of remote file:
- 455 MB
- SHA256:
- 842b428ec548f693ffb59ed7c352706a988c6d2a0e3872ed342a581ce1212fe0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.