Skip to content

Commit 1af5394

Browse files
authored
Merge pull request #206 from Labelbox/sdk
Replace Wikipedia images and minor fixes
2 parents 3369bbb + 0e667d4 commit 1af5394

File tree

6 files changed

+251
-189
lines changed

6 files changed

+251
-189
lines changed
Loading

examples/model_assisted_labeling/debugging_mal.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
"source": [
154154
"project = client.create_project(name=\"debugging_mal_project\")\n",
155155
"dataset = client.create_dataset(name=\"debugging_mal_dataset\")\n",
156-
"test_img_url = \"https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Kitano_Street_Kobe01s5s4110.jpg/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
156+
"test_img_url = \"https://raw.githubusercontent.com/Labelbox/labelbox-python/develop/examples/assets/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
157157
"data_row = dataset.create_data_row(row_data=test_img_url)\n",
158158
"editor = next(\n",
159159
" client.get_labeling_frontends(where=LabelingFrontend.name == 'editor'))\n",
@@ -336,7 +336,7 @@
336336
"name": "python",
337337
"nbconvert_exporter": "python",
338338
"pygments_lexer": "ipython3",
339-
"version": "3.8.2"
339+
"version": "3.8.8"
340340
}
341341
},
342342
"nbformat": 4,

examples/model_assisted_labeling/image_mal.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
"# Note see Ontology, Project, and Project_setup notebooks for more information on this section.\n",
175175
"project = client.create_project(name=\"image_mal_project\")\n",
176176
"dataset = client.create_dataset(name=\"image_mal_dataset\")\n",
177-
"test_img_url = \"https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Kitano_Street_Kobe01s5s4110.jpg/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
177+
"test_img_url = \"https://raw.githubusercontent.com/Labelbox/labelbox-python/develop/examples/assets/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
178178
"dataset.create_data_row(row_data=test_img_url)\n",
179179
"editor = next(\n",
180180
" client.get_labeling_frontends(where=LabelingFrontend.name == \"Editor\"))\n",
@@ -548,9 +548,9 @@
548548
"name": "python",
549549
"nbconvert_exporter": "python",
550550
"pygments_lexer": "ipython3",
551-
"version": "3.8.2"
551+
"version": "3.8.8"
552552
}
553553
},
554554
"nbformat": 4,
555555
"nbformat_minor": 5
556-
}
556+
}

examples/model_assisted_labeling/mal_basics.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"])\n",
141141
"project = client.create_project(name=\"image_mal_project\")\n",
142142
"dataset = client.create_dataset(name=\"image_mal_dataset\")\n",
143-
"test_img_url = \"https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Kitano_Street_Kobe01s5s4110.jpg/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
143+
"test_img_url = \"https://raw.githubusercontent.com/Labelbox/labelbox-python/develop/examples/assets/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
144144
"data_row = dataset.create_data_row(row_data=test_img_url)\n",
145145
"editor = next(\n",
146146
" client.get_labeling_frontends(where=LabelingFrontend.name == 'editor'))\n",
@@ -374,7 +374,7 @@
374374
}
375375
],
376376
"source": [
377-
"os.environ['upload_file_url'] = file_data['uploadFile']['url']\n",
377+
"os.environ['upload_file_url'] = ndjson_url\n",
378378
"!wget -O- --user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' \\\n",
379379
" $upload_file_url | cat"
380380
]
@@ -412,7 +412,7 @@
412412
"name": "python",
413413
"nbconvert_exporter": "python",
414414
"pygments_lexer": "ipython3",
415-
"version": "3.8.2"
415+
"version": "3.8.8"
416416
}
417417
},
418418
"nbformat": 4,

examples/model_assisted_labeling/mal_with_subclasses.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
"# Note see Ontology, Project, and Project_setup notebooks for more information on this section.\n",
170170
"project = client.create_project(name=\"subclass_mal_project\")\n",
171171
"dataset = client.create_dataset(name=\"subclass_mal_dataset\")\n",
172-
"test_img_url = \"https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Kitano_Street_Kobe01s5s4110.jpg/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
172+
"test_img_url = \"https://raw.githubusercontent.com/Labelbox/labelbox-python/develop/examples/assets/2560px-Kitano_Street_Kobe01s5s4110.jpg\"\n",
173173
"dataset.create_data_row(row_data=test_img_url)\n",
174174
"editor = next(\n",
175175
" client.get_labeling_frontends(where=LabelingFrontend.name == 'editor'))\n",
@@ -552,7 +552,7 @@
552552
"# Wait for upload to finish (Will take up to five minutes)\n",
553553
"upload_task.wait_until_done()\n",
554554
"# Review the upload status\n",
555-
"for status in upload_tasks.statuses:\n",
555+
"for status in upload_task.statuses:\n",
556556
" print(status)"
557557
]
558558
},

0 commit comments

Comments
 (0)