Giter Site home page Giter Site logo

liamstaras / palette-image-to-image-diffusion-models Goto Github PK

View Code? Open in Web Editor NEW

This project forked from janspiry/palette-image-to-image-diffusion-models

0.0 0.0 0.0 6.86 MB

Unofficial implementation of Palette: Image-to-Image Diffusion Models by Pytorch

License: MIT License

Python 100.00%

palette-image-to-image-diffusion-models's Introduction

Palette: Image-to-Image Diffusion Models

Paper | Project

Brief

This project is an unofficial implementation of Palette: Image-to-Image Diffusion Models as a Python library. The engine is taken directly from Liangwei Jiang's repository [Palette-Image-to-Image-Diffusion-Models] (https://github.com/Janspiry/Palette-Image-to-Image-Diffusion-Models). This runs on Pytorch, and the code is mainly inherited from the author's other repositories:Image-Super-Resolution-via-Iterative-Refinement and the template seed project distributed-pytorch-template.

Some details of the upstream implementation:

  • We adapted the U-Net architecture used in Guided-Diffusion, which give a substantial boost to sample quality.
  • We used the attention mechanism in low-resolution features (16×16) like vanilla DDPM.
  • We encode the $\gamma$ rather than $t$ in Palette and embed it with affine transformation.
  • We fix the variance $Σ_\theta(x_t, t)$ to a constant during the inference as described in Palette.

See the sources for more theoretical and implementational details of the models.

Usage

Build the package with

python -m build

and install the produced wheel (in the dist directory). Run training with

python -m palette train -c /path/to/config

Acknowledgements

All credit for the implementation of the engine goes to Liangwei Jiang. That work is based on the following theoretical literature:

palette-image-to-image-diffusion-models's People

Contributors

janspiry avatar liamstaras avatar puanysh avatar bruce-willis 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.