MIR.utils.training_utils

Training utilities (logging, metrics, and patch sampling).

Functions

normalize_01(x[, method, percentile])

Normalize a tensor/array to the range [0, 1].

pad_image(img, target_size)

Pad a 3D tensor to a target size.

Classes

AverageMeter()

Computes and stores the average and current value

Logger(save_dir)

MultiResPatchSampler3D(patch_size)

RandomPatchSampler3D(patch_size)