sail-sg / MDT

Masked Diffusion Transformer is the SOTA for image synthesis. (ICCV 2023)
Apache License 2.0
500 stars 35 forks source link

Some Issues on Conditional Diffusion #19

Closed Lecxxx closed 10 months ago

Lecxxx commented 10 months ago

Hello!Thank you for your excellent work!

May I ask how to correctly modify the code section for conditional diffusion? After trying to modify it myself, I found that there was an abnormal phenomenon in the loss.

May I ask if the correct approach is to modify it in _masked_diffusion/gaussian_diffusion. py_?

gasvn commented 10 months ago

What kind of conditions do you want to modify?

Lecxxx commented 10 months ago

What kind of conditions do you want to modify?

@gasvn I hope this model can achieve rain removal for rainy image. In the conditional diffusion, the rainy image is generally used directly as the conditional image. First, the corresponding non-rainy image is q_sample() to obtain x_t, and then x_t and the rainy image as the condition are _torch.cat (x_t, xrain, dim=1) and then input into the network.

For this paper, I also made similar modifications and the loss occurred during the training process and the generated image was completely wrong. Is this modification reasonable in this work?

Feynman1999 commented 6 months ago

What kind of conditions do you want to modify?

@gasvn I hope this model can achieve rain removal for rainy image. In the conditional diffusion, the rainy image is generally used directly as the conditional image. First, the corresponding non-rainy image is q_sample() to obtain x_t, and then x_t and the rainy image as the condition are _torch.cat (x_t, xrain, dim=1) and then input into the network.

For this paper, I also made similar modifications and the loss occurred during the training process and the generated image was completely wrong. Is this modification reasonable in this work?

any update on this problem?