Label configuration
Using the python package to upload your existing label configuration.
Create a Label Configuration
Before you can start setting up your label configuration you need to start by initializing a label_config object.
In DATAGYM there are two types of entries; classifications and geometries. See the chapter on label configuration to learn more.
Label configurationGeometries
Geometries can be added directly to the label config with just an entry key and entry value. The entry key will be the name for the label export while the entry value is shown inside of the DATAGYM workspace. Optionally you can also pass a shortcut [0-9] and a color for the geometry.
Classification
Classifications can either refer directly to the image (global classification) or also to another classification or geometry (nested classification). Besides the entry key and entry value the options dict is required for both the checklist and the select configuration entries.
For nested classifications you can just add the classification of your choice to any existing entry inside your label config.
Uploading your finished label configuration
Careful with using the upload-label-config method. This deletes your existing label configuration and all of your existing labels in this project.
Uploading your label configuration is easily done with just one line of code. However be careful as this is not something that you want to do with a project with important labels in it.
Last updated