deepdisc.utils.parse_arguments

Functions

make_inference_arg_parser()

Create the parser for DeepDisc inference, including common arguments used by

make_training_arg_parser([epilog])

Create the parser for DeepDisc training, including common arguments used by

make_rail_informer_arg_parser()

Create the parser for DeepDisc inference, including common arguments used by

make_pretrain_arg_parser()

Create the parser for DeepDisc inference, including common arguments used by

dtype_from_args([dt])

Returns the dtype corresponding to the dtype argument string.

Module Contents

make_inference_arg_parser()[source]

Create the parser for DeepDisc inference, including common arguments used by detectron2 users.

Returns:

parser – The argument parser.

Return type:

ArgumentParser

make_training_arg_parser(epilog=None)[source]

Create the parser for DeepDisc training, including common arguments used by detectron2 users.

Parameters:

epilog (str) – The epilog passed to ArgumentParser describing the usage.

Returns:

parser – The argument parser.

Return type:

ArgumentParser

make_rail_informer_arg_parser()[source]

Create the parser for DeepDisc inference, including common arguments used by detectron2 users.

Returns:

parser – The argument parser.

Return type:

ArgumentParser

make_pretrain_arg_parser()[source]

Create the parser for DeepDisc inference, including common arguments used by detectron2 users.

Returns:

parser – The argument parser.

Return type:

ArgumentParser

dtype_from_args(dt=32)[source]

Returns the dtype corresponding to the dtype argument string.

Parameters:

dt (int) – The integer representing the number of bytes to use. 8 = uint8 16 = int16 32 = float32 (default)

Returns:

The dtype to use.

Return type:

type