SinGAN icon indicating copy to clipboard operation
SinGAN copied to clipboard

valid vs same padding?

Open qedpi opened this issue 6 years ago • 1 comments

In config.py: parser.add_argument('--padd_size',type=int,help='net pad size',default=0)#math.floor(opt.ker_size/2)

I'm wondering why you commented out the code for same padding to use valid padding instead? Is this important? (I checked both paper and ICCV talk, and it wasn't mentioned)

qedpi avatar Dec 08 '19 16:12 qedpi

We found that with initial padding we get higher variability on the edges of the generated images, than the case of using zero padding at each conv layer.

See the supplementary material for the full explanation and an experiment which illustrate this: http://openaccess.thecvf.com/content_ICCV_2019/supplemental/Shaham_SinGAN_Learning_a_ICCV_2019_supplemental.pdf

tamarott avatar Dec 09 '19 15:12 tamarott