Soumik Mukhopadhyay*, Prateksha Udhayanan*, Abhinav Shrivastava
University of Maryland, College Park
*Equal contribution.
Official implementation of Scale Space Diffusion (CVPR 2026), a pixel-space diffusion model that integrates scale-space theory by combining Gaussian noise with linear degradations (downsampling), and introduces Flexi-UNet for resolution-aware denoising.
![]() |
![]() |
This repository is built on top of openai/guided-diffusion.
We have released checkpoints for the main models in the paper.
Here are the download links for each model checkpoint:
CelebA-64
- SSD (Flexi-UNet, 2L, 1M checkpoint): ssd_64res_celeba_2levels_ema_0.9999_1000000.pt
- SSD (Flexi-UNet, 4L, 1M checkpoint): ssd_64res_celeba_4levels_ema_0.9999_1000000.pt
CelebA-128
- SSD (Flexi-UNet, 3L, 300K checkpoint): ssd_128res_celeba_3levels_ema_0.9999_300000.pt
- SSD (Flexi-UNet, 5L, 300K checkpoint): ssd_128res_celeba_5levels_ema_0.9999_300000.pt
CelebA-256
- SSD (Flexi-UNet, 3L, 300K checkpoint): ssd_256res_celeba_3levels_ema_0.9999_300000.pt
- SSD (Flexi-UNet, 6L, 300K checkpoint): ssd_256res_celeba_6levels_ema_0.9999_300000.pt
ImageNet-64
- SSD (Flexi-UNet, 2L, 1M checkpoint): ssd_64res_imagenet_2levels_ema_0.9999_1000000.pt
Clone this repository and run the following commands to setup the codebase:
git clone https://github.com/prateksha/ScaleSpaceDiffusion.git
cd ScaleSpaceDiffusion
conda create -n ssd_env python=3.12 -y
conda activate ssd_env
pip install -e .
pip install pillow
pip install numpy
pip install pandas
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128
pip install tensorflow
pip install tensorboard
pip install torchinfo
pip install hydra-core --upgradeUse bash_scripts/sample_from_pretrained_model.sh to run inference from a downloaded checkpoint. Download one of the pretrained model files above, then edit the script to point to that checkpoint and choose where outputs should be written.
RUN_ROOT="/path/to/ssd_code_release/runs/"
EXPERIMENT_NAME="ssd_celeba_64px_4L"
MODEL_PATH="/path/to/downloaded/ssd_64res_celeba_4levels_ema_0.9999_1000000.pt"Set IMAGE_SIZE, NUM_LEVELS, and NUM_SAMPLES in the same script. IMAGE_SIZE and NUM_LEVELS must match the downloaded checkpoint so that the correct model architecture is constructed.
IMAGE_SIZE=64
NUM_LEVELS=4
NUM_SAMPLES=500Run inference with:
bash bash_scripts/sample_from_pretrained_model.shThe script writes samples under ${RUN_ROOT}/${EXPERIMENT_NAME}/inferencing/.
Use bash_scripts/train_ssd.sh to train your own SSD model. Set DATA_DIR to the directory containing all images, and set DATASET_SPLIT_FILE to a text file containing the filenames of the images to use for training.
DATA_DIR="/path/to/images/"
DATASET_SPLIT_FILE="/path/to/train_split.txt"
RUN_ROOT="/path/to/experiment_runs/"DATASET_NAME is used to create the experiment name. Set IMAGE_SIZE and NUM_LEVELS for the model you want to train:
DATASET_NAME="celeba"
IMAGE_SIZE=64
NUM_LEVELS=4The script creates:
EXPERIMENT_NAME="ssd_${DATASET_NAME}_${IMAGE_SIZE}px_${NUM_LEVELS}L"
EXPERIMENT_DIR="${RUN_ROOT}/${EXPERIMENT_NAME}"
MODEL_DIR="${EXPERIMENT_DIR}/models"Run training with:
bash bash_scripts/train_ssd.shBy default, model checkpoints are dumped every 10K iterations. To change this, add or edit the Hydra override for training.save_interval in bash_scripts/train_ssd.sh, for example:
@InProceedings{Mukhopadhyay_2026_CVPR,
author = {Mukhopadhyay, Soumik and Udhayanan, Prateksha and Shrivastava, Abhinav},
title = {Scale Space Diffusion},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2026},
pages = {35851-35860}
}

