Skip to content

About

[CVPR 2026] Scale Space Diffusion

Resources

Stars

32 stars

Watchers

6 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Scale Space Diffusion

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.

Scale Space Diffusion teaser Scale Space Diffusion sampling animation

This repository is built on top of openai/guided-diffusion.

Download pre-trained models

We have released checkpoints for the main models in the paper.

Here are the download links for each model checkpoint:

CelebA-64

CelebA-128

CelebA-256

ImageNet-64

Setting up the environment

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 --upgrade

Sampling from pre-trained models

Use 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=500

Run inference with:

bash bash_scripts/sample_from_pretrained_model.sh

The script writes samples under ${RUN_ROOT}/${EXPERIMENT_NAME}/inferencing/.

Training models

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=4

The 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.sh

By 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:

Citation

@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}
}

About

[CVPR 2026] Scale Space Diffusion

Resources

Stars

32 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages