File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
libs/labelbox/src/labelbox/data/serialization/ndjson Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 3838from .objects import (
3939 NDObject ,
4040 NDObjectType ,
41- NDSegments ,
4241 NDVideoMasks ,
4342)
4443from .relationship import NDRelationship
4948 NDPromptClassificationType ,
5049 NDConfusionMatrixMetric ,
5150 NDScalarMetric ,
52- NDSegments ,
5351 NDVideoMasks ,
5452 NDRelationship ,
5553 NDPromptText ,
@@ -133,15 +131,7 @@ def _generate_annotations(
133131 # deserialized objects in the _AnnotationGroupTuple
134132 # object *if* the object can be used in a relationship
135133 for uuid , ndjson_annotation in group .ndjson_annotations .items ():
136- if isinstance (ndjson_annotation , NDSegments ):
137- annotations .extend (
138- NDSegments .to_common (
139- ndjson_annotation ,
140- ndjson_annotation .name ,
141- ndjson_annotation .schema_id ,
142- )
143- )
144- elif isinstance (ndjson_annotation , NDVideoMasks ):
134+ if isinstance (ndjson_annotation , NDVideoMasks ):
145135 annotations .append (
146136 NDVideoMasks .to_common (ndjson_annotation )
147137 )
Original file line number Diff line number Diff line change @@ -724,8 +724,6 @@ def lookup_object(
724724 ) -> "NDObjectType" :
725725 if isinstance (annotation , VideoMaskAnnotation ):
726726 result = NDVideoMasks
727- elif isinstance (annotation , list ):
728- result = NDSegments
729727 else :
730728 result = {
731729 Line : NDLine ,
You can’t perform that action at this time.
0 commit comments