menyifang / ADGAN

The Implementation of paper "Controllable Person Image Synthesis with Attribute-Decomposed GAN" CVPR 2020 (Oral); Pose and Appearance Attributes Transfer;
473 stars 90 forks source link

why batch norm here? #15

Closed budui closed 4 years ago

budui commented 4 years ago

Hi, thanks for your great work first!

I'm trying to reproduce your code, but I can not understand why these code using F.batch_norm in AdaptiveInstanceNorm2d, why not just F.instance_norm?

https://github.com/menyifang/ADGAN/blob/4dd70649ad136829b92dd6a1a823af7594a0220f/models/model_adgen.py#L355-L362

budui commented 4 years ago

Sorry for disturbing you. After resharp, batch_norm can do same thing with instance norm directly.