Instructions to use yaryar78/DDPM-Ray-dog with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yaryar78/DDPM-Ray-dog with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("yaryar78/DDPM-Ray-dog", 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
Example Fine-Tuned Model for Unit 2 of the Diffusion Models Class 🧨
fine tune on google/ddpm-cat-256 with dataset yaryar78/Ray_dog
Usage
from diffusers import DDPMPipeline, DDIMPipeline, PNDMPipeline
model_id = "yaryar78/ddpm-Ray-dog"
# load model and scheduler
ddpm = DDPMPipeline.from_pretrained(model_id) # you can replace DDPMPipeline with DDIMPipeline or PNDMPipeline for faster inference
# run pipeline in inference (sample random noise and denoise)
image = ddpm().images[0]
# save image
image.save("ddpm_generated_image.png")
- Downloads last month
- 42
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support