Pretrained model for testing issue
xilongzhou opened this issue · comments
Thank you for reporting the issue!
Hmm, I'm not sure... Could you try PyTorch 0.4.1 just in case?
Thank you very much for your reply. Yes, My Pytorch vision is 0.4.1 but still get wired results. Did you have any preprocess for the input images? I save images in an image file and directly load them using test.py. Merry Christmas!
Hi
I figured this out. It is because of the interpolation of mask is bi linear instead of nearest neighbor. I tested with mask of size 256256 but it did not work and then I use 512512 mask and it works. The pretrained model is trained based on the certain type of mask which is resized from 512512 using bilinear interpolation, for the 256256 mask it does not work. I may need to retrain the network using my own mask for testing.
Thank you very much!