Instructions to use xinchengo/ddpm-spots-10-leopard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use xinchengo/ddpm-spots-10-leopard with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("xinchengo/ddpm-spots-10-leopard", 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
ddpm-spots-10-leopard
This model is part of my work for my Freshman Seminar of my university.
It is an unconditional image generation model that outputs a $32\times 32$ grayscale image similar to those of 'leopard' category from the SPOTS-10 dataset.
Uses
from diffusers import DDPMPipeline
pipeline = DDPMPipeline.from_pretrained(
"xinchengo/ddpm-spots-10-leopard",
).to("cuda")
image = pipeline().images[0]
image
Training Details
Training Data
the images labelled 'leopard' in the SPOTS-10 dataset
Training Procedure
Mainly with the procedure in the Diffusers tutorial with a few modifications.
Training Hyperparameters
from dataclasses import dataclass
@dataclass
class TrainingConfig:
image_size = 32
train_batch_size = 64
eval_batch_size = 16
num_epochs = 50
gradient_accumulation_steps = 1
learning_rate = 1e-4
lr_warmup_steps = 500
save_image_epochs = 10
save_model_epochs = 10
mixed_precision = "fp16"
output_dir = "ddpm-spots-10-leopard"
push_to_hub = True
hub_model_id = "xinchengo/ddpm-spots-10-leopard"
hub_private_repo = None
overwrite_output_dir = True
seed = 0
- Downloads last month
- 1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support