Downloads · 30 days
9
69% of all-time downloads
xinchengo/ddpm-spots-10-leopard
ddpm-spots-10-leopard is a unconditional image generation model from xinchengo. Use it for the unconditional image generation task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as cc-by-4.0.
This model is part of my work for my Freshman Seminar of my university.
Downloads · 30 days
9
69% of all-time downloads
All-time downloads
13
Public
Parameters
71.4M
287 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors286 MB · 100%
From the Hugging Face model README
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.
from diffusers import DDPMPipeline
pipeline = DDPMPipeline.from_pretrained(
"xinchengo/ddpm-spots-10-leopard",
).to("cuda")
image = pipeline().images[0]
image
the images labelled 'leopard' in the SPOTS-10 dataset
Mainly with the procedure in the Diffusers tutorial with a few modifications.
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