Skip to content

nachifur/RDDM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 11, 2025
20752b7 · Jan 11, 2025

History

62 Commits
Mar 5, 2024
Dec 14, 2024
Sep 10, 2024
May 28, 2024
Jan 11, 2025
Oct 16, 2024

Repository files navigation

Residual Denoising Diffusion Models

paper|arxiv|youtube|blog|中文论文(ao9l)|中文视频|中文博客

This repository is the official implementation of Residual Denoising Diffusion Models.

RDDM

Requirements

To install requirements: (If an error occurs, you may need to install the packages one by one.)

conda env create -f install.yaml

Dataset

Raindrop (test-a for test)

GoPro

ISTD

SID-RGB: kexu or download

LOL

CelebA

Training

To train RDDM, run this command:

cd experiments/xxxx
python train.py

or

accelerate launch train.py

Evaluation

To evaluate image generation, run:

cd eval/image_generation_eval/
python fid_and_inception_score.py path_of_gen_img

For image restoration, MATLAB evaluation codes in ./eval.

Pre-trained Models

The pre-trained models (two unets, deresidual+denoising) for partially path-independent generation process.

Results

See Table 3 in main paper.

For image restoration:

Raindrop

GoPro

ISTD

LOL

SID-RGB

For image generation (on the CelebA dataset):

We can convert a pre-trained DDIM to RDDM by coefficient transformation (see 1_Image_Generation_convert_pretrained_DDIM_to_RDDM).

Citation

If you find our work useful in your research, please consider citing:

@InProceedings{Liu_2024_CVPR,
    author    = {Liu, Jiawei and Wang, Qiang and Fan, Huijie and Wang, Yinong and Tang, Yandong and Qu, Liangqiong},
    title     = {Residual Denoising Diffusion Models},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2024},
    pages     = {2773-2783}
}

Contact

Please contact Jiawei Liu (liujiawei18@mails.ucas.ac.cn) or Liangqiong Qu (https://liangqiong.github.io/) if there is any question.

About

CVPR 2024: Residual Denoising Diffusion Models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published