HEST CCRCC Diffusion Model (first experiment)
⚠️ This is a first/preliminary experiment, part of my thesis on Synthetic Data Generation (SDG). It has not been rigorously evaluated (no FID/etc. computed) and is not intended for clinical or diagnostic use.
What it does
Unconditional diffusion model (DDPM) that learns to generate histology image patches (224x224 -> 64x64), trained only on the CCRCC category (Clear Cell Renal Cell Carcinoma) from the HEST-1k benchmark.
Data & training
- Source: HEST-1k, CCRCC, 24 WSIs (whole-slide images) -> 74,220 patches (pooled, no per-WSI balancing)
- Resolution: resized 224x224 -> 64x64
- Architecture: UNet2DModel (114M params), DDPMScheduler (1000 steps, linear beta schedule)
- Training: 10 epochs, batch_size=64, AdamW lr=1e-4, mixed precision (fp16)
- Loss: MSE on the predicted noise (standard DDPM "simple" objective)
- Observation: training loss plateaued quickly (~500 steps) around 0.04-0.08 and did not improve further by the end of training -- likely a ceiling for this model size/dataset.
Usage
from diffusers import DDPMPipeline
pipeline = DDPMPipeline.from_pretrained('YiannisChionas/sd-class-hest-ccrcc-64')
image = pipeline().images[0]
image
Next steps (TODO)
- Quantitative evaluation (FID, diversity, memorization check)
- Test on other cancer types / pooled dataset
- Conditional generation (e.g. conditioned on gene expression)