naoto0804 / pytorch-inpainting-with-partial-conv

Unofficial pytorch implementation of 'Image Inpainting for Irregular Holes Using Partial Convolutions' [Liu+, ECCV2018]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretrained model for testing issue

xilongzhou opened this issue · comments

result
Hi
I test the pretrained model you shared online using test.py but the results are very different from yours (as you can see above). There are many artifacts in the masked region. Could you please help me figure this out? Maybe I missed something during the implementation?

Thank you very much!

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!