training_extensions
training_extensions copied to clipboard
Handle empty label in annotator
Unlike in Geti Classic, Geti Tune server will not return the empty label in the list of project labels (it currently does, but it's a bug). At API level, the UI is expected to submit an empty list of annotations ([]) when the empty label is applied; likewise, if the server returns [] annotations, the UI should interpret it as empty label.
Some API examples in this PR: https://github.com/open-edge-platform/training_extensions/pull/5179
Summary:
- UI should display:
- "No label" for multilabel classification;
- "No objects" for detection and segmentation. That label should be available for the user to select. At the moment we have only labels dropdown, so it should be placed there.
- That label should be displayed at top left corner (like in geti classic)
- If image has no annotations, server returns 404.
- If image has no annotations but was saved with empty label before, server returns annotations: [].
- If we want to submit annotations with empty label, payload should send empty annotations.