twtygqyy / pytorch-SRResNet

pytorch implementation for Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network arXiv:1609.04802
MIT License
481 stars 130 forks source link

Problem in 3-channeled image output #21

Closed sonal-bansal closed 5 years ago

sonal-bansal commented 5 years ago

Hi, When i'm displaying my 3 channeled output image, it is not at all good and looks something like this:- rgb

When I'm displaying my single channeled output ,it still shows proper image features ,like this:- singlechannel

Though I've started to train my model and it isn't even 50 epochs till now, but I really want to know why is this happening.

Thank you .

twtygqyy commented 5 years ago

Hi @sonal-bansal, check the type of the array and make sure it is np.uint8 before imshow

sonal-bansal commented 5 years ago

Yeah,I got it . How much did you trained your srresnet?

Thanks.