Skip to content

Commit 17e2ac2

Browse files
authored
Latest updates
1. Clean up imports 2. Fix name of label import 3. other small issues.
1 parent 665480b commit 17e2ac2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/annotation_import/image.ipynb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,10 @@
128128
" Label, ImageData, ObjectAnnotation, MaskData,\n",
129129
" Rectangle, Point, Line, Mask, Polygon,\n",
130130
" Radio, Checklist, Text,\n",
131-
" ClassificationAnnotation, ClassificationAnswer, LabelList\n",
131+
" ClassificationAnnotation, ClassificationAnswer\n",
132132
")\n",
133133
"from labelbox.data.serialization import NDJsonConverter\n",
134-
"import uuid\n",
135134
"import json\n",
136-
"import numpy as np\n",
137135
"import uuid\n",
138136
"import copy\n",
139137
"print(labelbox.__version__)"
@@ -878,10 +876,10 @@
878876
"li_label = copy.deepcopy(label)\n",
879877
"\n",
880878
"## Create a label list \n",
881-
"mal_label_list = [li_label]\n",
879+
"li_label_list = [li_label]\n",
882880
"\n",
883881
"# Convert our label from a Labelbox class object to the underlying NDJSON format required for upload - uploads can be directly built in this syntax as well\n",
884-
"li_ndjson = list(NDJsonConverter.serialize(mal_label_list))\n",
882+
"li_ndjson = list(NDJsonConverter.serialize(li_label_list))\n",
885883
"li_ndjson"
886884
]
887885
},

0 commit comments

Comments
 (0)