Open Linardos opened 6 years ago
Can you refer to Predict.ipynb for running a pre-trained model? If it is still gray image, you may want to train more.
I am now using the pre-trained weights from the original model, ported on your generator; however, I am still getting a completely gray image. I follow the instructions from Predict.ipynb to the book but it seems that the output of the model is just a homogeneous matrix with 0.4 values everywhere, hence the blank image. Are you maybe using a different preprocess than the original authors did? I also noticed that the shape of some of your layers differs to the original one, their 1st and 2nd dimensions switched (38,44,48 and 52 layers) for example:
Layer 48: Pytorch implementation: torch.Size([128, 64, 3, 3]) Lasagne implementation: torch.Size([64, 128, 3, 3])
In order to successfully port the weights, in spite of this, I reshaped the original weights to fit into your model. But maybe the root of this discrepancy is the cause of the blank result?
I have the same problem. Have you solved it now? thanks
I have the same problem. Have you solved it now? thanks
I never solved it with this implementation. A colleague of mine ended up making another implementation on PyTorch; you may use that one: https://github.com/imatge-upc/saliency-2019-SalBCE
Thank you
@Linardos is the implementation for original salgan or does it use only BCE loss? By the way, I have similar problem with some other implementation, which I have just referred here, fyi.
I'm trying to test if I can run this model correctly. I have gone through the preprocess step and tried to train for 3 epochs just to see that it runs; however, when I load the model state to check what it predicts I get completely gray images. Obviously 3 epochs is too low for training, but is it normal to get completely homogeneous gray images?