-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can this code use for image super-resolution or restoration? #27
Comments
Hello @wendeyy , Here are steps that I believe should enable you to have something work out of the box(with celebhq dataset as example).
Could you please try these and let me know if you run into any issues with them. In case of any confusion, I also talk about mask conditioning and super resolution and what exact inputs the repo uses for mask conditioning in the conditional ldm video mentioned in README. Maybe just look at those parts and see if it helps to get a better understanding of the repos code |
@explainingai-code Thank you for your thorough explanation. I realize I may not described my task clearly. My goal is to deblur the image or enhance it to make it more clear than the original. Maybe it's a little bit different from mask-conditioned generation and super-resolution, but I will try the mask conditioned generation code first to see the results. If you have any suggestions or further ideas, I would greatly appreciate it! |
Hi @explainingai-code, I've made changes to the code following your instructions and tried to run it. Here’s what I did.
not sure if these changes are correct, and error came out, seems I have to train the vae first? I would very appreciate any suggestions you have. |
Yes, since this is latent diffusion model, we would need to train a VAE(but vae on celebhq should not require more than 4-5 epochs to get a decent result). Regarding the conditioning changes that you have mentioned, they seem fine. As a disclaimer I havent ever trained a deblurring model or read papers on that topic, so this is just something that I think should intuitively work(but not sure). |
For autoencoder, there should be a folder created Regarding the error, as long as the path where the code is trying to load the image from, as long that is a valid path, this error should not come. |
Hi, I would like to apply this model for image super-resolution or restoration. Specifically, I want to try enhancing images that are blurred due to adverse weather conditions. Maybe this should be feasible i think and what adjustments should I make in the code? Thank you so much!
The text was updated successfully, but these errors were encountered: