chainer-partial_convolution_image_inpainting icon indicating copy to clipboard operation
chainer-partial_convolution_image_inpainting copied to clipboard

The problem of the edge

Open yuzhesu opened this issue 6 years ago • 5 comments

Is it because the external cropping loss of the cropping frame is ignored, so the outermost part of the generated picture is not very effective?How to solve it?

yuzhesu avatar Jun 19 '18 11:06 yuzhesu

Yes, my current implementation ignored the outside of cropping area due to the pre-trained VGG setting which requires input size of 224.

If you want to apply loss function to all area strictly, I think downsampling or chainer.functions.resize_images may help you.
https://docs.chainer.org/en/stable/reference/generated/chainer.functions.resize_images.html#chainer.functions.resize_images Note that I don't guarantee it works well because I have never used this function.

SeitaroShinagawa avatar Jun 19 '18 13:06 SeitaroShinagawa

Are you referring to downsampling or chainer.functions.resize_images at updater.py def vgg_extract?

yuzhesu avatar Jun 19 '18 14:06 yuzhesu

Actually not vgg_extract itself, but the input of vgg_extract. It requires 224 as input, so you can resize default input size 256 to 224 using the above ways.

SeitaroShinagawa avatar Jun 22 '18 01:06 SeitaroShinagawa

Do you mean that resize the size of the input images and masks to 224*224?

quelladai avatar Jul 01 '18 06:07 quelladai

Yes, it depends on VGG pre-trained model.

SeitaroShinagawa avatar Jul 05 '18 08:07 SeitaroShinagawa