KAIR icon indicating copy to clipboard operation
KAIR copied to clipboard

Black and white images when training SRMD

Open claroche-gpfw-zz opened this issue 4 years ago • 3 comments

Hi,

Thanks for this repository.

I am trying to retrain SRMD x4 on DIV2K so I changed options/train_srmd.json with my database path and changed the frequency of the checkpoints. After one day of training on GPU (around 1300 iterations), all the generated images seem to estimate the HR but in black and white (with 3 channels). I plotted the LR and HR images and they are in colour.

Does the colour usually appear later during the training or is there something to add?

Thanks, Charles

claroche-gpfw-zz avatar Aug 14 '20 13:08 claroche-gpfw-zz

Hi,

It seems that the colour appeared during the training but still I cannot reproduce the results of the paper. My model seems to have converged (I used a learning rate of 1e-3 for 50 epochs, 1e-4 for the next 100epochs and 1e-5 for the last epochs). srmd However, the model still does not handle well the colour as we can see here: sig2 6_img_0_gt

I noticed that in comparison to what is mentioned in the paper, you do not use batch norm in the architecture and use L1 loss instead of L2. Do I need to change those parameters to be able to reproduce the training of the pre-trained model you give?

If you have some tips to overcome those colour issues I would be thankful.

Thanks, Charles

claroche-gpfw-zz avatar Aug 24 '20 08:08 claroche-gpfw-zz

Start the learning rate with 1e-4 if you do not use batch norm.

cszn avatar Aug 24 '20 09:08 cszn

Hi, I tried and this does not change the results.

claroche-gpfw-zz avatar Aug 26 '20 08:08 claroche-gpfw-zz