Downloads · 30 days
0
SavirD/ddpm-unconditional-faces-64x64
ddpm-unconditional-faces-64x64 is a unconditional image generation model from SavirD. 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 pytorch. The card lists the license as apache-2.0.
<h2 align="center" style="font-size: 2.8em; font-weight: 800; margin-bottom: 20px;" Unconditional DDPM for Face Generation </h1
Downloads · 30 days
0
Access
Public
Updated Jul 20, 2026
Repo size
30.7 MB
Likes
0
Public
Click a slice to open those files.
.pth28.4 MB · 92%
From the Hugging Face model README



import matplotlib.pyplot as plt
from huggingface_hub import hf_hub_download
import torch
repo_id = "SavirD/ddpm-unconditional-faces-64x64"
hf_hub_download(repo_id=repo_id, filename="model.py", local_dir=".")
hf_hub_download(repo_id=repo_id, filename="pipeline.py", local_dir=".")
weights_path = hf_hub_download(repo_id=repo_id, filename="model_epoch_50.pth")
from pipeline import DDPMFacePipeline
pipeline = DDPMFacePipeline(checkpoint_path=weights_path)
images = pipeline.generate(num_samples=4)
fig, axes = plt.subplots(1, 4, figsize=(12, 3))
for idx, ax in enumerate(axes):
ax.imshow(images[idx])
ax.axis('off')
plt.suptitle("Faces via Unconditional DDPM", fontsize=14)
plt.show()