Giter Site home page Giter Site logo

Comments (5)

Janspiry avatar Janspiry commented on May 22, 2024

Hi, thanks for this great question, and I think there are two potential considerations for this:

  1. Keep the consistency between training and inference over all tasks. The model samples from random noise and y_cond in the inference stage.
  2. y_cond can distinguish between the mask and unmasked areas since y_t may not be straightforward enough when t is small.

from palette-image-to-image-diffusion-models.

PouriaRouzrokh avatar PouriaRouzrokh commented on May 22, 2024

Hi, thanks for this great question, and I think there are two potential considerations for this:

  1. Keep the consistency between training and inference over all tasks. The model samples from random noise and y_cond in the inference stage.
  2. y_cond can distinguish between the mask and unmasked areas since y_t may not be straightforward enough when t is small.

Thanks for the kind reply. This makes sense, though it is worth trying the second reason. I will post here if I realized something different.

from palette-image-to-image-diffusion-models.

Janspiry avatar Janspiry commented on May 22, 2024

Feel free to reopen the issue if there is any question.

from palette-image-to-image-diffusion-models.

vinodrajendran001 avatar vinodrajendran001 commented on May 22, 2024

@PouriaRouzrokh I have opened a separate issue on it. But I am in urgent need of a solution, so I just wanted to check with you .

In my inpainting case, during the inference only the y_cond and mask images are given. In that case, may I know how to do a inference?

In the network.py script, for the inpainting task the below line will be executed as part of the restoration function. As y_0 is None for me, I am not sure how to deal with this line. If I skip the below line then the results are very bad (just only some whitish kind of image is generated). Also, in the Process.png image I can notice that for each step the noise level is increasing rather than decreasing.

if mask is not None:
    y_t = y_0*(1.-mask) + mask*y_t

Any idea on how to proceed?

from palette-image-to-image-diffusion-models.

yc-cui avatar yc-cui commented on May 22, 2024

@Janspiry Why not just set the mask as y_cond? for consistency among all tasks?

from palette-image-to-image-diffusion-models.

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.