CerebNet.run_prediction

CerebNet.run_prediction.main(args)[source]

Main function to run the inference based on the given command line arguments. This implementation is inspired by methods described in CerebNet for cerebellum sub-segmentation.

Parameters:
argsargparse.Namespace

Command line arguments parsed by argparse.ArgumentParser.

Returns:
int

Returns 0 upon successful execution to indicate success.

str

A message indicating the failure reason in case of an exception.

References

Faber J, Kuegler D, Bahrami E, et al. CerebNet: A fast and reliable deep-learning pipeline for detailed cerebellum sub-segmentation. NeuroImage 264 (2022), 119703. https://doi.org/10.1016/j.neuroimage.2022.119703

CerebNet.run_prediction.setup_options()[source]

Configure and return an argument parser for the segmentation script.

Returns:
argparse.ArgumentParser

The configured argument parser.