The model_config.py example demonstrates configuring a model and defining label enumeration. Connect the configuration and label enumeration to a Task and, once connected, ClearML tracks any changes to them. When ClearML stores a model in any framework, ClearML stores the configuration and label enumeration with it.
When the script runs, it creates an experiment named
Model configuration example, which is associated with the
Connect a configuration file to a Task by calling the Task.connect_configuration method with the file location and the configuration object's name as arguments. In this example, we connect a JSON file and a YAML file to a Task.
The configuration is logged to the ClearML Task and can be viewed in the ClearML Web UI experiment details > CONFIGURATION tab > CONFIGURATION OBJECTS
section. The contents of the JSON file will appear in the json file object, and the contents of the YAML file will appear
in the yaml file object, as specified in the
name parameter of the
Connect a configuration dictionary to a Task by creating a dictionary, and then calling the Task.connect_configuration method with the dictionary and the object name as arguments. After the configuration is connected, ClearML tracks changes to it.
The configurations are connected to the ClearML Task and can be viewed in the ClearML Web UI > experiment details > CONFIGURATION tab > CONFIGURATION OBJECTS area > dictionary object.
Connect a label enumeration dictionary by creating the dictionary, and then calling the Task.connect_label_enumeration method with the dictionary as an argument.
Log a local model file.
The model which is stored contains the model configuration and the label enumeration.