Instructions to use CompVis/ldm-celebahq-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CompVis/ldm-celebahq-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("CompVis/ldm-celebahq-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_2.png from CompVis/ldm-celebahq-256: direct link, hf CLI and curl.
- Browser
- Download file 91.5 kB
-
https://huggingface.co/CompVis/ldm-celebahq-256/resolve/refs%2Fpr%2F7/images/generated_image_2.png
- Command line
-
hf download hf://CompVis/ldm-celebahq-256@refs/pr/7/images/generated_image_2.png
-
curl -L -o generated_image_2.png https://huggingface.co/CompVis/ldm-celebahq-256/resolve/refs%2Fpr%2F7/images/generated_image_2.png
91.5 kB
