Skip to content

Commit 667dc97

Browse files
committed
update notebooks
1 parent 588e7d0 commit 667dc97

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

examples/annotation_import/image.ipynb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@
568568
"len(test_img_url)"
569569
],
570570
"metadata": {
571-
"id": "xJ3DZLv_LGsK",
571+
"id": "xJ3DZLv_LGsK",
572572
"colab": {
573573
"base_uri": "https://localhost:8080/"
574574
},
@@ -705,7 +705,10 @@
705705
" name=\"point\"), \n",
706706
" lb.Tool( # Polyline tool given the name \"line\"\n",
707707
" tool=lb.Tool.Type.LINE,\n",
708-
" name=\"polyline\")]\n",
708+
" name=\"polyline\"),\n",
709+
" lb.Tool( # Relationship tool given the name \"relationship\"\n",
710+
" tool=lb.Tool.Type.RELATIONSHIP,\n",
711+
" name=\"relationship\")]\n",
709712
")\n",
710713
"\n",
711714
"ontology = client.create_ontology(\"Image Prediction Import Demo\", ontology_builder.asdict(), media_type=lb.MediaType.Image)"
@@ -930,7 +933,7 @@
930933
"print(\" \")"
931934
],
932935
"metadata": {
933-
"id": "wPflwCr3_03e",
936+
"id": "wPflwCr3_03e",
934937
"colab": {
935938
"base_uri": "https://localhost:8080/"
936939
},

examples/annotation_import/pdf.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@
173173
" tools=[ \n",
174174
" Tool( # Entity tool given the name \"NER\"\n",
175175
" tool=Tool.Type.NER, \n",
176-
" name= tool_name)]\n",
176+
" name= tool_name),\n",
177+
" Tool( # Relationship tool given the name \"relationship\"\n",
178+
" tool=Tool.Type.NER, \n",
179+
" name=\"relationship\")]\n",
177180
" )"
178181
]
179182
},

examples/basics/ontologies.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@
335335
"seg_tool = Tool(tool=Tool.Type.SEGMENTATION, name=\"dog_seg\")\n",
336336
"point_tool = Tool(tool=Tool.Type.POINT, name=\"dog_center\")\n",
337337
"line_tool = Tool(tool=Tool.Type.LINE, name=\"dog_orientation\")\n",
338-
"ner_tool = Tool(tool=Tool.Type.NER, name=\"dog_reference\")"
338+
"ner_tool = Tool(tool=Tool.Type.NER, name=\"dog_reference\")\n",
339+
"relationship_tool = Tool(tool=Tool.Type.RELATIONSHIP, name=\"relationship\")"
339340
],
340341
"outputs": [],
341342
"metadata": {

examples/prediction_upload/video_predictions.ipynb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,10 @@
651651
" name=\"point_video\"), \n",
652652
" lb.Tool( # Polyline tool given the name \"line\"\n",
653653
" tool=lb.Tool.Type.LINE,\n",
654-
" name=\"line_video_frame\")]\n",
654+
" name=\"line_video_frame\"),\n",
655+
" lb.Tool( # Relationship tool given the name \"relationship\"\n",
656+
" tool=lb.Tool.Type.RELATIONSHIP,\n",
657+
" name=\"relationship_video\")]\n",
655658
")\n",
656659
"\n",
657660
"ontology = client.create_ontology(\"Video Prediction Import Demo\", ontology_builder.asdict(), media_type=lb.MediaType.Video)\n",
@@ -1392,10 +1395,10 @@
13921395
"source": [
13931396
"# project.delete()\n",
13941397
"# dataset.delete()"
1395-
],
1396-
"metadata": {
1398+
],
1399+
"metadata": {
13971400
"id": "aAhkyvJlWK1p"
1398-
},
1401+
},
13991402
"execution_count": 26,
14001403
"outputs": []
14011404
}

0 commit comments

Comments
 (0)