DmitryUlyanov / deep-image-prior

Image restoration with neural networks but without learning.
https://dmitryulyanov.github.io/deep_image_prior
Other
7.79k stars 1.42k forks source link

Batch Normalization #27

Closed joeyhng closed 6 years ago

joeyhng commented 6 years ago

There are a lot of Batch Normalization layers in the models, but the code only uses batch size of 1. What role does the BN play in the model? Have you tried training without BN and how did it perform?

DmitryUlyanov commented 6 years ago

You are right that batch norm is acting as Instance Normalization here because batch size is 1. We used it as it allowed to use larger learning rates. It also makes gradients flow equally into all the branches of the network.

joeyhng commented 6 years ago

Thanks for your clarification!