A few questions
Closed this issue · 1 comments
user454365 commented
Congrats on the fantastic work. I was looking into your code to understand it and had a few questions.
- In some of the steps I noticed that the data is divided by 2 and then 0.5 was added. What was the reason for that?
- I was wondering exactly in which step the data consistency is performed. Is it in the sr.data_solution function? Also how is it different than the model_fn function in utils_model?
yuanzhi-zhu commented
- some modules in the code require the image to be in the range of [0,1], and the pre-trained diffusion models are trained with image data in the range of [-1,1]. These conversions are necessary for our code.
- the data subproblem is solved here
Line 316 in 36e81bc
Please let me know if this answers your questions :]