zhangbingliang2019 / DAPS

Code for "Improving Diffusion Inverse Problem Solving with Decoupled Noise Annealing"
https://daps-inverse-problem.github.io/
41 stars 3 forks source link

Can you explain which codebase the pre-trained model was trained in? #2

Closed Breeze-Zero closed 3 months ago

Breeze-Zero commented 4 months ago

I also have some pre-trained diffusion on my task, but DDPM-based training doesn't seem to replace your score based model directly, so I have the intention of retraining, and I would like to ask which codebase the model is trained on?

zhangbingliang2019 commented 4 months ago

Regarding the diffusion model, we follow the EDM framework for formulation and guided diffusion codebase for training. For other DDPM-based pre-trained diffusion model, one can use the wrapper model/precond.py/VPPrecond. It supports DDPM with linear beta scheduler. For other beta scheduler, such as scaled linear, one have to modify accordingly to handle $\sigma^{-1}(t)$ correctly.

Breeze-Zero commented 3 months ago

@zhangbingliang2019 Hello, I have a plan to shorten the inference time of the model and would like to ask you about the feasibility. If I get a relatively clean solution from another IR model, can I use it as x_start at DAPS, in which case can I reduce the number of num_steps for annealing_scheduler while maintaining the effect? Of course, the sigma_max of annealing_scheduler seems to need to be adjusted as well.

zhangbingliang2019 commented 3 months ago

Thanks for your question. Indeed, utilizing a relatively clean solution $x^*$ from another model could potentially enhance performance. One possible way to incorporate this into the DAPS would be to replace xstart with $x^* + \sigma{\max} \epsilon$, where $\sigma_{\max}$ is adjusted based on your assessment of the quality of $x^*$. This approach is also discussed in other Diffusion Purification literature. However, we have not yet fully explored or tested this idea within the context of DAPS. We are very interested in any results you might obtain from such an approach.