Instructions to use thanhtuit96/ddpm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use thanhtuit96/ddpm with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("thanhtuit96/ddpm", 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
- 568 kB xet
- 561 kB xet
- 558 kB xet
- 557 kB xet
- 568 kB xet
- 572 kB xet
- 534 kB xet
- 512 kB xet
- 541 kB xet
- 541 kB xet
- 536 kB xet
- 494 kB xet
- 517 kB xet
- 529 kB xet
- 528 kB xet
- 539 kB xet
- 522 kB xet
- 493 kB xet
- 532 kB xet
- 519 kB xet
- 507 kB xet
- 520 kB xet
- 523 kB xet
- 517 kB xet
- 516 kB xet
- 511 kB xet
- 514 kB xet
- 514 kB xet
- 514 kB xet
- 516 kB xet
- 519 kB xet
- 507 kB xet
- 495 kB xet
- 544 kB xet
- 501 kB xet
- 553 kB xet
- 511 kB xet
- 502 kB xet
- 531 kB xet
- 516 kB xet
- 470 kB xet
- 499 kB xet
- 525 kB xet
- 531 kB xet
- 489 kB xet
- 496 kB xet
- 502 kB xet
- 499 kB xet
- 492 kB xet
- 492 kB xet