- class composer.Logger(state, destinations=None)#
An interface to record training data.
Trainer, instances of
Callback, and instances of
Algorithminvoke the logger to record data such as the epoch, training loss, and custom metrics as provided by individual callbacks and algorithms. This class does not store any data itself; instead, it routes all data to the
destinations. Each destination (e.g. the
InMemoryLogger) is responsible for storing the data itself (e.g. writing it to a file or storing it in memory).
A sequence of
LoggerDestinationto where logging calls will be sent.
Determines if the logger has a destination which supports uploading files.
Needed for checking if a model can be exported via this logger.
bool – Whether any of the destinations support uploading files.
- log_images(images, name='Images', channels_last=False, step=None, masks=None, mask_class_labels=None, use_table=True)#
Log images. Logs any tensors or arrays as images.
name (str) – The name of the image(s). (Default:
channels_last (bool) – Whether the channel dimension is first or last. (Default:
step (int, optional) – The current step or batch of training at the time of logging. Defaults to None. If not specified the specific LoggerDestination implementation will choose a step (usually a running counter).
use_table (bool) – Whether to make a table of the images or not. (default:
True). Only for use with WandB.
- upload_file(remote_file_name, file_path, *, overwrite=False)#
file_pathas a file named
remote_file_namecan be specified as format strings. See
format_name_with_dist()for more information.
Uploading Files for notes for file uploading.