-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why did you ignore the InstanceNorm in the first block of Unet? #782
Comments
If you use an instancenorm in the first layer, the color of the input image will be normalized and get ignored. For many applications, you may want to preserve the color of the input image. |
(1) The batchnorm calculates the statistics over the entire dataset rather than an individual image. Therefore the color of each image is still preserved. (2) You can try it. We haven't tried it before. (3) I am not sure if it is related to normalization. Please see the discussion on checkboard artifacts for more details. |
Could you tell me any reason why do you ignore the instance norm in the fist down-sampling block in the unet? I have added the norm in the block but the performance worst
pytorch-CycleGAN-and-pix2pix/models/networks.py
Line 514 in 43521b0
The text was updated successfully, but these errors were encountered: