tensorlayer / SRGAN

Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
https://github.com/tensorlayer/tensorlayerx
3.29k stars 810 forks source link

generated image with serious checkboard(or mosaic) #187

Closed yugsdu closed 4 years ago

yugsdu commented 4 years ago

Hello, author. I run your code without modification, but the resulted image has serious checkboard / mosaic shape. Could you tell me why? Have you met this problem before? How should I do to solve it? Thank you very much.

"this is original image" 0801

"this is resulted image" girl_gen

zsdonghao commented 4 years ago

did you finish the training?

yugsdu commented 4 years ago

did you finish the training?

Thank you for replying me imediately. Indeed, I really finished the training. I even set the epoch larger for second training. However, the resulted image still unpleasant. I get lost...

zsdonghao commented 4 years ago

I see, could you show the output images for different epoch? so that I can check what is the problem..

I doubt it is caused by the TensorFlow version..

yugsdu commented 4 years ago

I see, could you show the output images for different epoch? so that I can check what is the problem..

I doubt it is caused by the TensorFlow version..

Thank you. Since I didn't modify this code, in ./samples/srgan_gan, these are some results as below. As for resulted image for this "girl" image in different epochs, maybe I should retrian the model again.

"train_10.png" train_10

"train_20.png" train_20

"train_1420.png" train_1420

"train_1500.png" train_1500 As for Tensorflow version, I used 1.8.0.

yugsdu commented 4 years ago

I see. I made a mistake... When I train the model from the scratch with your dataset, it is OK. However, when I tried to test the "gril" image, it didn't work because of its bmp format... That maybe the image forma(jpg, bmp, png) problem. Thank you anyway.

zsdonghao commented 4 years ago

Cool, great to hear that.