azam897/Diffusion-Model
0
DDPM: Denoising Diffusion Probabilistic Model
Trained on CelebA-HQ 256×256 · AI4009 Generative AI · Spring 2026 · NUCES
What this app does
Model Details
Model Weights
Weights are loaded automatically at startup from 👉 `shahem1/AI4009-DDPM-Model` (best_model.pt)
Quick Usage (Python)
from huggingface_hub import hf_hub_download
import torch
ckpt = hf_hub_download("shahem1/AI4009-DDPM-Model", "best_model.pt")
checkpoint = torch.load(ckpt, map_location="cpu")
# Instantiate UNet with the same config, then:
model.load_state_dict(checkpoint["model_state_dict"])
model.eval()