Instructions to use google/ddpm-church-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use google/ddpm-church-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-church-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 images/generated_image_3.png from google/ddpm-church-256: direct link, hf CLI and curl.
- Browser
- Download file 122 kB
-
https://huggingface.co/google/ddpm-church-256/resolve/main/images/generated_image_3.png
- Command line
-
hf download hf://google/ddpm-church-256/images/generated_image_3.png
-
curl -L -o generated_image_3.png https://huggingface.co/google/ddpm-church-256/resolve/main/images/generated_image_3.png
122 kB
