ELEKTRONN / elektronn3

A PyTorch-based library for working with 3D and 2D convolutional neural networks, with focus on semantic segmentation of volumetric biomedical image data
MIT License
160 stars 27 forks source link

Offline validation/evaluation of trained models #35

Closed mdraw closed 4 years ago

mdraw commented 5 years ago

Validation, preview predictions etc. are currently tied to the Trainer class and are only run periodically during training. This code should be made re-usable for offline (out of the training loop) evaluation of models. It needs to be easy to compare different model snapshots on a user-defined validation data set (calculating metrics and optionally visualizing inference results). This should also be shown in an example script.

mdraw commented 4 years ago

Offline validation already exists in https://github.com/ELEKTRONN/elektronn3/blob/ax_hyperopt2/examples/hyperopt/train_with_ax.py#L39-L76 and needs to be ported to out of the script into the elektronn3 lib.