niftynet.layer.bn module¶
-
class
BNLayer
(regularizer=None, moving_decay=0.9, eps=1e-05, name='batch_norm')[source]¶ Bases:
niftynet.layer.base_layer.TrainableLayer
Batch normalisation layer, with trainable mean value ‘beta’ and std ‘gamma’. ‘beta’ is initialised to 0.0 and ‘gamma’ is initialised to 1.0. This class assumes ‘beta’ and ‘gamma’ share the same type_str of regulariser.
-
class
InstanceNormLayer
(eps=1e-06, gamma_initializer=None, name='instance_norm')[source]¶ Bases:
niftynet.layer.base_layer.TrainableLayer
Instance normalisation layer, wrapper of tf.contrib.layers.instance_norm.