NifTK / NiftyNet

[unmaintained] An open-source convolutional neural networks platform for research in medical image analysis and image-guided therapy
http://niftynet.io
Apache License 2.0
1.37k stars 404 forks source link

default value of `use_local_stats` in batch norm layer #311

Open wyli opened 5 years ago

wyli commented 5 years ago

It seems that in many window-based segmentation/regression use cases, either settingis_training=True or setting use_local_stats=True in the batch normalisation layer at inference time leads to better performance than those with NiftyNet's default batch norm options.

Therefore this ticket proposes to add a use_local_stats option in the config file, and make use_local_stats=True as the default for segmentation application with batch norm.

Specifically, in the current implementation (v0.4.0) the default values are:

The proposed change will use these values by default:

This ticket is related to https://github.com/NifTK/NiftyNet/issues/280, https://github.com/NifTK/NiftyNet/issues/285, https://github.com/NifTK/NiftyNet/pull/282.

thoughts?

Probably to be addressed with #282