Instructions to use samwit/ddpm-afhq-cats-128 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use samwit/ddpm-afhq-cats-128 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("samwit/ddpm-afhq-cats-128", 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
Ctrl+K
- 514 kB xet
- 527 kB xet
- 469 kB xet
- 457 kB xet
- 423 kB xet
- 414 kB xet
- 422 kB xet
- 403 kB xet
- 414 kB xet
- 409 kB xet
- 398 kB xet
- 406 kB xet
- 429 kB xet
- 427 kB xet
- 412 kB xet
- 388 kB xet
- 418 kB xet
- 420 kB xet
- 457 kB xet
- 449 kB xet
- 445 kB xet
- 418 kB xet
- 416 kB xet
- 409 kB xet
- 406 kB xet
- 434 kB xet
- 464 kB xet
- 467 kB xet
- 466 kB xet
- 458 kB xet
- 456 kB xet
- 461 kB xet
- 468 kB xet
- 463 kB xet
- 461 kB xet
- 463 kB xet
- 467 kB xet
- 469 kB xet
- 469 kB xet
- 473 kB xet