We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20949f4 commit c48a0e6Copy full SHA for c48a0e6
libs/labelbox/src/labelbox/data/serialization/ndjson/label.py
@@ -156,8 +156,11 @@ def _infer_media_type(
156
raise ValueError("Missing annotations while inferring media type")
157
158
types = {type(annotation) for annotation in annotations}
159
+ types_values = {type(annotation.value) for annotation in annotations}
160
data = ImageData
- if (TextEntity in types) or (ConversationEntity in types):
161
+ if (ObjectAnnotation
162
+ in types) and ((TextEntity in types_values) or
163
+ (ConversationEntity in types_values)):
164
data = TextData
165
elif VideoClassificationAnnotation in types or VideoObjectAnnotation in types:
166
data = VideoData
0 commit comments