Skip to content

Commit a2856fb

Browse files
author
Matt Sokoloff
committed
Merge branch 'develop' of https://github.com/Labelbox/labelbox-python into ms/annotation-updates
2 parents 20c211b + a9b5fa3 commit a2856fb

File tree

14 files changed

+298
-348
lines changed

14 files changed

+298
-348
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
# Next Release
4+
5+
## Removed
6+
* Deprecated functions
7+
- project.reviews()
8+
- project.create_prediction()
9+
- project.create_prediction_model()
10+
- project.create_label()
11+
312
# Version 2.7.0 (2021-06-27)
413
## Added
514
* Added `dataset.export_data_rows()` which returns all `DataRows` for a `Dataset`.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test-staging: build
66
docker run -it -v ${PWD}:/usr/src -w /usr/src \
77
-e LABELBOX_TEST_ENVIRON="staging" \
88
-e LABELBOX_TEST_API_KEY_STAGING=${LABELBOX_TEST_API_KEY_STAGING} \
9-
local/labelbox-python:test pytest $(PATH_TO_TEST) -svvx
9+
local/labelbox-python:test pytest $(PATH_TO_TEST) -svv
1010

1111
test-prod: build
1212
docker run -it -v ${PWD}:/usr/src -w /usr/src \
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)