msdnet.loggers module¶
Module for logging progress during training.
-
class
msdnet.loggers.
Logger
(*args, onlyifbetter=False, **kwargs)[source]¶ Bases:
abc.ABC
Base logger class
Logs progress of validation set during training.
-
class
msdnet.loggers.
ConsoleLogger
(*args, onlyifbetter=False, **kwargs)[source]¶ Bases:
msdnet.loggers.Logger
Output error values to the console.
-
class
msdnet.loggers.
FileLogger
(*args, onlyifbetter=False, **kwargs)[source]¶ Bases:
msdnet.loggers.Logger
Output error values to a file.
-
msdnet.loggers.
getheaderimage
(width)[source]¶ Return image header.
- Parameters
width – width of image
-
msdnet.loggers.
stitchimages
(ims, imsize=None, scaleoutput=True)[source]¶ Stitch three images (input, target, output).
- Parameters
ims – list of images to stitch
imsize – (optional) Maximum size of image
scaleoutput – (optional) whether to scale output image to target image range
-
class
msdnet.loggers.
ImageLogger
(*args, onlyifbetter=False, **kwargs)[source]¶ Bases:
msdnet.loggers.Logger
Output best, worst, and typical images for validation set.
-
class
msdnet.loggers.
ImageLabelLogger
(*args, onlyifbetter=False, **kwargs)[source]¶ Bases:
msdnet.loggers.Logger
Output best, worst, and typical images for validation set for segmentation problems.