TaskHelperTrain object contains useful things that are needed to run training as Supervisely task.
class TaskHelperTrain: def __init__(self):
TaskPaths object with paths to input and output directories.
Task input settings (Python dictionary).
For training task it is exactly config typed by user in web panel. The config should be a JSON object, but content of the config is entirely dependent on model implementation.
Meta (metadata) of input project. The meta contains, among others, list of project classes and is required to read annotations in Supervisely format now.
TrainCheckpoints object which is used to save trained model weights.
Checks if model dir is empty or missing. Empty model dir means that there are no initial weights for training, and model should be trained "from scratch".