Giter VIP home page Giter VIP logo

Comments (7)

FernandoCamaro avatar FernandoCamaro commented on June 6, 2024 3

I think that adding the conditional input is quite easy.
You could have a look to section 5 of this paper:
https://arxiv.org/pdf/2102.09672.pdf

from denoising-diffusion-pytorch.

alshenoudy avatar alshenoudy commented on June 6, 2024 2

@abdalazizrashid This was transcribed from the original TensorFlow implementation to Pytorch and it does not support conditional generation.

Take a look at the this paper, they introduced a condition encoding network which you can implement, based on the code here by adding a few modifications to some functions as well as the loss to accomodate for this new condition.

Hope it helps.

from denoising-diffusion-pytorch.

ifding avatar ifding commented on June 6, 2024 1

Class-conditional generation can be found in https://github.com/openai/improved-diffusion.

from denoising-diffusion-pytorch.

sgbaird avatar sgbaird commented on June 6, 2024

If anyone tries this out, would be great if you could link to some code or provide a MWE. Or if anyone is aware of other implementations

from denoising-diffusion-pytorch.

malekinho8 avatar malekinho8 commented on June 6, 2024

Has anyone been able to apply this code for tasks like inpainting or super-resolution? They are both forms of conditional generation, and it's not clear to me how one should go about doing it.

from denoising-diffusion-pytorch.

sgbaird avatar sgbaird commented on June 6, 2024

See also #21 (comment)

from denoising-diffusion-pytorch.

basab-gupta avatar basab-gupta commented on June 6, 2024

I'm curious if there are any updates on this topic. I've been reviewing the SR3 and Palette papers, and I plan to test an approach of concatenating the source image with $x_{t}$ along the channel dimension to see if it works. I'm not completely sure what the source image should be, however. If we have pairs of training data in the form of (low resolution, high resolution), should we add noise to the high resolution image during the forward process and condition it on the low resolution image during reverse diffusion? The Palette paper mentions that they upsampled the low resolution source image to match the size of the high resolution image before concatenating it with the input from the forward diffusion along the channel dimension.

from denoising-diffusion-pytorch.

Related Issues (20)

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.