[DAR-3919][External] Warn when importing annotations with multiple instance IDs #929
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
With the release of static instance IDs, if uploading an annotation with multiple instance IDs - Only the value of the instance ID on the first keyframe is used for import
This may confuse users who expect static instance IDs to operate like dynamic instance IDs, which is the current behaviour
Solution
If the static instance IDs feature flag is present & enabled, OR if the flag doesn't exist, we perform the following check: For each frame of every video annotation check sub-annotations. If there is >1 unique instance ID value in any annotation, record this
After checking all annotations, print a warning for each affected file as follows:
We check if the flag is present so that the code will still work when the flag is deprecated in the future. From this point onward, we will always perform the check
Changelog
Added a warning when importing annotations with multiple instance ID values where only 1 value will be imported due to static instance IDs