Skip to content

Commit 4f7e940

Browse files
authored
Merge pull request #955 from Labelbox/ovalle15-patch-15
Removed confidence scores
2 parents 53008b0 + 958ac30 commit 4f7e940

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/annotation_import/image.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,14 @@
271271
"# Bounding box with nested classification\n",
272272
"bbox_with_radio_subclass_annotation = lb_types.ObjectAnnotation(\n",
273273
" name=\"bbox_with_radio_subclass\",\n",
274-
" confidence=0.5, # must match your ontology feature's name\n",
275274
" value=lb_types.Rectangle(\n",
276275
" start=lb_types.Point(x=933, y=541), # Top left\n",
277276
" end=lb_types.Point(x=191, y=330), # Bottom right\n",
278277
" ),\n",
279278
" classifications=[\n",
280279
" \tlb_types.ClassificationAnnotation(\n",
281280
" \tname=\"sub_radio_question\",\n",
282-
" \t\tvalue=lb_types.Radio(answer=lb_types.ClassificationAnswer(name=\"first_sub_radio_answer\", confidence=0.5))\n",
281+
" \t\tvalue=lb_types.Radio(answer=lb_types.ClassificationAnswer(name=\"first_sub_radio_answer\"))\n",
283282
" )\n",
284283
" ]\n",
285284
")\n",
@@ -313,7 +312,6 @@
313312
"# Python AnotationTypes \n",
314313
"polygon_annotation = lb_types.ObjectAnnotation(\n",
315314
" name = \"polygon\", # must match your ontology feature's name \n",
316-
" confidence = 0.5, \n",
317315
" value=lb_types.Polygon( # Coordinates for the verticies of your polygon\n",
318316
" points=[lb_types.Point(x=1489.581,y=183.934), lb_types.Point(x=2278.306,y=256.885), lb_types.Point(x=2428.197,y=200.437), lb_types.Point(x=2560.0,y=335.419),\n",
319317
" lb_types.Point(x=2557.386,y=503.165), lb_types.Point(x=2320.596,y=503.103), lb_types.Point(x=2156.083, y=628.943), lb_types.Point(x=2161.111,y=785.519),\n",
@@ -401,7 +399,6 @@
401399
"# Python Annotation\n",
402400
"point_annotation = lb_types.ObjectAnnotation(\n",
403401
" name = \"point\", # must match your ontology feature's name\n",
404-
" confidence=0.5,\n",
405402
" value = lb_types.Point(x=1166.606, y=1441.768),\n",
406403
")\n",
407404
"\n",
@@ -865,4 +862,4 @@
865862
"execution_count": null
866863
}
867864
]
868-
}
865+
}

0 commit comments

Comments
 (0)