Image-Super-Resolution-via-Iterative-Refinement icon indicating copy to clipboard operation
Image-Super-Resolution-via-Iterative-Refinement copied to clipboard

The result is too noisy

Open timerobin opened this issue 1 year ago • 9 comments

Thank you for the code. I have trained the sr3 model on the images of different resolution, like 16->128, 64->512, 256->1024 on ffhq and celebahq. The iters are 50k, and the learning rate is 3e-6. But I found the val result are with too much noise, with n_timestep=2000. This is the result of 512*512 50000_3_sr And the loss function is not stable convergence

timerobin avatar Sep 08 '22 13:09 timerobin

image Yes, something similar happened to me at the time when I was training, and I guess the model's learning ability was limited. But I didn't have a better GPU resources, so I didn't bother to optimize it.

Janspiry avatar Sep 13 '22 06:09 Janspiry

Thank you very much for your reply. I have ran more experiments and I find image noise disappears when more resblocks are used. But the phenomenon of hue deviation still exists. Could you please give some advice on how to tune hyperparameters to remove color bias

timerobin avatar Sep 14 '22 14:09 timerobin

I have two guesses for now, but not sure about the specifics:

  1. the set up of group convolution that interact between channels.
  2. the setting of clip noise in https://github.com/Janspiry/Image-Super-Resolution-via-Iterative-Refinement/blob/ ef9b943b573328d7a5ddb1a0c2abd168b91610dc/model/sr3_modules/diffusion.py#L162

Janspiry avatar Sep 14 '22 15:09 Janspiry

Excuse me, can you tell me where to add the resblocks? Thanks you very much

KANGXI123456 avatar Oct 15 '22 01:10 KANGXI123456

Excuse me, can you tell me where to add the resblocks? Thanks you very much

An easy way is to modify the number of model.unet.resblock in the config file. But I still get noisy image :<

ElliotQi avatar Oct 15 '22 07:10 ElliotQi

@KANGXI123456 why x_recon is clipped in (-1, 1), it can help remove color bias?

294coder avatar Dec 09 '22 19:12 294coder

Thank you very much for your reply. I have ran more experiments and I find image noise disappears when more resblocks are used. But the phenomenon of hue deviation still exists. Could you please give some advice on how to tune hyperparameters to remove color bias

Hello, I confront the same issue about hue deviation. How did you solve the issue? image

YangMei66 avatar Apr 16 '23 05:04 YangMei66

@YangMei66 hi, you may find some solutions here: #69

294coder avatar Apr 16 '23 08:04 294coder

@YangMei66 hi, you may find some solutions here: #69

thank you

YangMei66 avatar Apr 16 '23 09:04 YangMei66