Class IdLabelConfig
A definition for how a Labeling should be resolved to a single label and id for ground truth generation.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
[CreateAssetMenu(fileName = "IdLabelConfig", menuName = "Perception/ID Label Config", order = 1)]
public class IdLabelConfig : LabelConfig<IdLabelEntry>
Fields
Name | Description |
---|---|
autoAssignIds | Whether the inspector will auto-assign ids based on the id of the first element. |
startingLabelId | Whether the inspector will start label ids at zero or one when autoAssignIds is enabled. |
Methods
Name | Description |
---|---|
CreateLabelEntryMatchCache(Allocator) | Creates a LabelEntryMatchCache from the currently registered labeled objects, which can be used to look up labeling information in future frames, even after the objects have been destroyed. Due to timing of labeled object registration, if this is called during or before LateUpdate, this cache may become invalid. It is recommended to only use this method in rendering, as the cache is guaranteed to be in its final state for ground truth generation. |
OnInit() | Called when the labelEntries list is assigned using Init(IEnumerable<T>) |
TryGetLabelEntryFromInstanceId(uint, out IdLabelEntry) | Attempts to find the label id for the given instance id. |
TryGetLabelEntryFromInstanceId(uint, out IdLabelEntry, out int) | Attempts to find the label id for the given instance id. |