File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
data/serialization/ndjson
integration/annotation_import Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11
22build-image :
3- docker build -t local/labelbox-python:test .
3+ docker build --quiet - t local/labelbox-python:test .
44
55test-local : build-image
66
Original file line number Diff line number Diff line change 11from copy import copy
22import pytest
3+ import base64
34import labelbox .types as lb_types
45from labelbox .data .serialization import NDJsonConverter
56from labelbox .data .serialization .ndjson .objects import NDDicomSegments , NDDicomSegment , NDDicomLine
8990 'masks' : {
9091 'frames' : [{
9192 'index' : 1 ,
93+ 'imBytes' : None ,
9294 'instanceURI' : instance_uri_1
9395 }, {
9496 'index' : 5 ,
97+ 'imBytes' : None ,
9598 'instanceURI' : instance_uri_5
9699 }],
97100 'instances' : [
157160 video_mask_label_with_global_key
158161]
159162ndjsons = [
160- polyline_annotation_ndjson , polyline_annotation_ndjson_with_global_key ,
161- dicom_mask_annotation_ndjson , dicom_mask_annotation_ndjson_with_global_key ,
162- video_mask_annotation_ndjson , video_mask_annotation_ndjson_with_global_key
163+ polyline_annotation_ndjson ,
164+ polyline_annotation_ndjson_with_global_key ,
165+ dicom_mask_annotation_ndjson ,
166+ dicom_mask_annotation_ndjson_with_global_key ,
167+ video_mask_annotation_ndjson ,
168+ video_mask_annotation_ndjson_with_global_key ,
163169]
164170labels_ndjsons = list (zip (labels , ndjsons ))
165171
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ def get_annotation_comparison_dicts_from_labels(labels):
6565 if 'masks' in annotation :
6666 for frame in annotation ['masks' ]['frames' ]:
6767 frame .pop ('instanceURI' )
68+ frame .pop ('imBytes' )
6869 for instance in annotation ['masks' ]['instances' ]:
6970 instance .pop ('colorRGB' )
7071 return labels_ndjson
You can’t perform that action at this time.
0 commit comments