Giter Club home page Giter Club logo

conditional_score_diffusion's Introduction

Conditional Image Generation with Score-Based Diffusion Models

This repository is an extension of the code base provided by Yang Song for the paper Score-Based Generative Modeling through Stochastic Differential Equations. The code depends on pytorch and pytorch-lightning.

We have extended the code to support multi speed/sde diffusion. Multi speed diffusion opens the avenue for further research in conditional generation and hierarchical represenation learning using the score-based diffusion framework.

In this paper, we use multi speed diffusion to derive the CMDE and VS-CMDE estimators of conditional score. Those estimators are used for conditional image generation. We also provide the code for training conditional score models using the conditional denoising estimator (CDE).

Instructions:

All the information for every experiment is stored in configurational python files. We used the ml_collections python library for constructing the configurational files. Once you have re-written the relevant sections of the configuration you can simply train or test the configuration using the following command:

python -m main.py --mode train or test --config path_to_config

We have included all the configurations for all the experiments presented in this paper under the folder: configs/ve/inverse_problems.

For super-resolution:

VS-CMDE: configs/ve/inverse_problems/super_resolution/celebA_ours_DV_160.py
CMDE: configs/ve/inverse_problems/super_resolution/celebA_ours_NDV_160.py
CDiffE: configs/ve/inverse_problems/super_resolution/celebA_song_160.py
CDE: configs/ve/inverse_problems/super_resolution/celebA_SR3_160.py

For inpainting:

VS-CMDE: configs/ve/inverse_problems/inpainting/celebA_ours_DV.py
CMDE: configs/ve/inverse_problems/inpainting/celebA_ours_NDV.py
CDiffE: configs/ve/inverse_problems/inpainting/celebA_song.py
CDE: configs/ve/inverse_problems/inpainting/celebA_SR3.py

For edge to photo translation:

VS-CMDE: configs/ve/inverse_problems/image_to_image_translation/edges2shoes_ours_DV.py
CMDE: configs/ve/inverse_problems/image_to_image_translation/edges2shoes_ours_NDV.py
CDiffE: configs/ve/inverse_problems/image_to_image_translation/edges2shoes_song.py
CDE: configs/ve/inverse_problems/image_to_image_translation/edges2shoes_SR3.py

conditional_score_diffusion's People

Contributors

gbatzolis avatar janstanczuk avatar yang-song avatar

Stargazers

Artiper avatar  avatar Dominik Filipiak avatar Arpan Poudel avatar HongCheng avatar  avatar  avatar FJDEV avatar  avatar  avatar Gurjeet Singh Sangra avatar Canberk Ekmekci avatar Yitong Li avatar David Prelogović avatar Jingfeng Lu avatar  avatar CserDu avatar  avatar  avatar HITXYR avatar Odeinjul avatar Axion avatar Jonas Brenig avatar Yunyi Shen avatar  avatar Xin Tie avatar Siyuan Mei avatar  avatar Kristian D. T. Bautista avatar  avatar Ali Siahkoohi avatar Jing Wang avatar Yubo Dong avatar  avatar  avatar Siddharth Shrivastava avatar  avatar Yiwen Wang avatar Jack avatar Jan Cross-Zamirski avatar Chuyun Shen avatar Renato Sortino avatar  avatar Sejong Yang avatar  avatar Fei_Ni avatar Gabriel Asher avatar Yayati Jadhav avatar YuyangXue_Ed avatar 赵荣昌 avatar Yuliang Xiu avatar Ellis avatar  avatar  avatar Shujun WANG avatar Hanxiao Wang avatar Qing Lyu avatar Kunwoo Na avatar Shanchao Yang avatar Mangal Prakash avatar Qibin Liu avatar Kui Zhang avatar Hang Zhou avatar Ge Zhu (朱舸) avatar George Balaouras avatar Apostolos Panagiotopoulos avatar Udon avatar  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.