Giter VIP home page Giter VIP logo

indm's Introduction

Maximum Likelihood Training of Implicit Nonlinear Diffusion Model (INDM) (NeurIPS 2022)

| paper | pretrained model |

This repo contains an official PyTorch implementation for the paper "Maximum Likelihood Training of Implicit Nonlinear Diffusion Model" in NeurIPS 2022.

Dongjun Kim *, Byeonghu Na *, Se Jung Kwon, Dongsoo Lee, Wanmo Kang, and Il-Chul Moon
* Equal contribution


This paper introduces Implicit Nonlinear Diffusion Model (INDM), that learns the nonlinear diffusion process by combining a normalizing flow and a diffusion process.

INDM attains a ladder structure between the data space and the latent space. The latent vector is visualized by normalizing the latent value

Requirements

This code was tested with CUDA 11.1 and Python 3.8.

pip install -r requirements.txt

Pretrained Checkpoints

We release our checkpoints here.

Stats files for FID evaluation

Download stats files and save it to ./assets/stats/.

Training and Evaluation

  • When you run a deep model, change the value of model.num_res_blocks from 4 to 8 in the config file. (or add --config.model.num_res_blocks 8 in your script.)

CIFAR-10

INDM (VE, FID)

  • Training
python main.py --mode train --config configs/ve/CIFAR10/indm.py --workdir <work_dir>
  • Evaluation (NLL/NELBO evaluation and sampling)
python main.py --mode eval --config configs/ve/CIFAR10/indm.py --workdir <work_dir> --config.sampling.pc_denoise=True --config.sampling.pc_denoise_time -1 --config.sampling.begin_snr 0.14 --config.sampling.end_snr 0.14 --config.eval.data_mean=True

INDM (VP, FID)

  • Training
python main.py --mode train --config configs/vp/CIFAR10/indm_fid.py --workdir <work_dir>
  • Evaluation (NLL/NELBO evaluation and sampling)
python main.py --mode eval --config configs/vp/CIFAR10/indm_fid.py --workdir <work_dir> --config.sampling.temperature 1.05

INDM (VP, NLL)

  • Training
python main.py --mode train --config configs/vp/CIFAR10/indm_nll.py --workdir <work_dir>
  • Evaluation (NLL/NELBO evaluation and sampling)
python main.py --mode eval --config configs/vp/CIFAR10/indm_nll.py --workdir <work_dir>

CelebA

INDM (VE, FID)

  • Training
python main.py --mode train --config configs/ve/CELEBA/indm.py --workdir <work_dir>
  • Evaluation (NLL/NELBO evaluation and sampling)
python main.py --mode eval --config configs/ve/CELEBA/indm.py --workdir <work_dir>

INDM (VP, FID)

  • Training
python main.py --mode train --config configs/vp/CELEBA/indm_fid.py --workdir <work_dir>
  • Evaluation (NLL/NELBO evaluation and sampling)
python main.py --mode eval --config configs/vp/CELEBA/indm_fid.py --workdir <work_dir>

INDM (VP, NLL)

  • Training
python main.py --mode train --config configs/vp/CELEBA/indm_nll.py --workdir <work_dir>
  • Evaluation (NLL/NELBO evaluation and sampling)
python main.py --mode eval --config configs/vp/CELEBA/indm_nll.py --workdir <work_dir>

Acknowledgements

This work is heavily built upon the code from

References

If you find the code useful for your research, please consider citing

@inproceedings{kim2022maximum,
  title={Maximum Likelihood Training of Implicit Nonlinear Diffusion Model},
  author={Dongjun Kim and Byeonghu Na and Se Jung Kwon and Dongsoo Lee and Wanmo Kang and Il-Chul Moon},
  booktitle={Advances in Neural Information Processing Systems},
  year={2022}
 }

indm's People

Contributors

aailabkaist avatar

Stargazers

 avatar  avatar  avatar  avatar NH2 avatar Donghyeok Shin avatar  avatar Byeonghu Na avatar  avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.