Skip to content

Commit 061a513

Browse files
authored
Sdk release 3.49.0 (#1161)
2 parents d921b3d + 8a63e2e commit 061a513

28 files changed

+177
-175
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ jobs:
8989

9090
DA_GCP_LABELBOX_API_KEY: ${{ secrets[matrix.da-test-key] }}
9191
run: |
92-
tox -e py -- -n 10 -svv --reruns 5 --reruns-delay 10
92+
tox -e py -- -n 10 -svv --reruns 5 --reruns-delay 8

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/google/yapf
3-
rev: v0.44.0
3+
rev: v0.40.1
44
hooks:
55
- id: yapf
66
name: "yapf"

CHANGELOG.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Changelog
2+
# Version 3.49.0 (2023-06-27)
3+
4+
## Changed
5+
* Improved batch creation logic when more than 1000 global keys provided
6+
7+
8+
## Notebooks
9+
* Added example on how to access mark in export v2
10+
* Removed NDJSON library from `examples/basics/custom_embeddings.ipynb`
11+
* Removed `queue_mode` property from `create_project()` method call.
12+
213
# Version 3.48.0 (2023-06-13)
314
## Added
415
* Support for ISO format to exports V2 date filters
@@ -37,7 +48,7 @@
3748
* Global key support to DataRow Metadata `bulk_upsert()` function
3849

3950
## Notebooks
40-
* Removed dataset based projects from project setup notebook
51+
* Removed dataset based projects from project setup notebook
4152
* Updated all links to annotation import and prediction notebooks in examples README
4253

4354
# Version 3.45.0 (2023-04-27)
@@ -91,7 +102,7 @@
91102
## Added
92103
* Message based classifications with annotation types for conversations
93104
* Video and raster segmentation annotation types
94-
* Global key support to `ConversationEntity`, `DocumentEntity` and `DicomSegments`
105+
* Global key support to `ConversationEntity`, `DocumentEntity` and `DicomSegments`
95106
* DICOM polyline annotation type
96107
* Confidence attribute to classification annotations
97108

@@ -100,7 +111,7 @@
100111
* Removed `deletedDataRowGlobalKey` from `get_data_row_ids_for_global_keys()`
101112

102113
## Fixed
103-
* Annotation data type coercion by Pydantic
114+
* Annotation data type coercion by Pydantic
104115
* Error message when end point coordinates are smaller than start point coordinates
105116
* Some typos in error messages
106117

@@ -145,7 +156,7 @@
145156
* Updated `annotation_import/pdf.ipynb` with more examples
146157
* Added `integrations/huggingface/huggingface.ipynb`
147158
* Fixed broken links for detectron notebooks in README
148-
* Added Dataset QueueMode during project creation in `integrations/detectron2/coco_object.ipynb`
159+
* Added Dataset QueueMode during project creation in `integrations/detectron2/coco_object.ipynb`
149160
* Removed metadata and updated ontology in `annotation_import/text.ipynb`
150161
* Removed confidence scores in `annotation_import/image.ipynb`
151162
* Updated custom embedding tutorial links in `basics/data_row_metadata.ipynb`
@@ -190,7 +201,7 @@
190201

191202
# Version 3.37.0 (2023-02-08)
192203
## Added
193-
* New `last_activity_start` param to `project.export_labels()` for filtering which labels are exported. See docstring for more on how this works.
204+
* New `last_activity_start` param to `project.export_labels()` for filtering which labels are exported. See docstring for more on how this works.
194205

195206
## Changed
196207
* Rename `Classification.instructions` to `Classification.name`

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,36 @@ test-local: build-image
99
./scripts/ensure_local_setup.sh; \
1010
fi
1111

12-
docker run -it -v ${PWD}:/usr/src -w /usr/src \
12+
docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
1313
-e LABELBOX_TEST_ENVIRON="local" \
1414
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
1515
-e LABELBOX_TEST_API_KEY_LOCAL=${LABELBOX_TEST_API_KEY_LOCAL} \
1616
local/labelbox-python:test pytest $(PATH_TO_TEST)
1717

1818
test-staging: build-image
19-
docker run -it -v ${PWD}:/usr/src -w /usr/src \
19+
docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
2020
-e LABELBOX_TEST_ENVIRON="staging" \
2121
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
2222
-e LABELBOX_TEST_API_KEY_STAGING=${LABELBOX_TEST_API_KEY_STAGING} \
2323
local/labelbox-python:test pytest $(PATH_TO_TEST)
2424

2525
test-prod: build-image
26-
docker run -it -v ${PWD}:/usr/src -w /usr/src \
26+
docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
2727
-e LABELBOX_TEST_ENVIRON="prod" \
2828
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
2929
-e LABELBOX_TEST_API_KEY_PROD=${LABELBOX_TEST_API_KEY_PROD} \
3030
local/labelbox-python:test pytest $(PATH_TO_TEST)
3131

3232
test-onprem: build-image
33-
docker run -it -v ${PWD}:/usr/src -w /usr/src \
33+
docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
3434
-e LABELBOX_TEST_ENVIRON="onprem" \
3535
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
3636
-e LABELBOX_TEST_API_KEY_ONPREM=${LABELBOX_TEST_API_KEY_ONPREM} \
3737
-e LABELBOX_TEST_ONPREM_HOSTNAME=${LABELBOX_TEST_ONPREM_HOSTNAME} \
3838
local/labelbox-python:test pytest $(PATH_TO_TEST)
3939

4040
test-custom: build-image
41-
docker run -it -v ${PWD}:/usr/src -w /usr/src \
41+
docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
4242
-e LABELBOX_TEST_ENVIRON="custom" \
4343
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
4444
-e LABELBOX_TEST_API_KEY_CUSTOM=${LABELBOX_TEST_API_KEY_CUSTOM} \

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2021, Labelbox'
2222
author = 'Labelbox'
2323

24-
release = '3.48.0'
24+
release = '3.49.0'
2525

2626
# -- General configuration ---------------------------------------------------
2727

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ Train a model using data annotated on Labelbox
7474
## [Extras](extras)
7575

7676
| Notebook | Github | Google Colab |
77-
| ------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- |
78-
| Classification Confusion Matrix | [Github](extras/classification-confusion-matrix.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/extras/classification-confusion-matrix.ipynb) | |
77+
| ------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
78+
| Classification Confusion Matrix | [Github](extras/classification-confusion-matrix.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/extras/classification-confusion-matrix.ipynb) |

examples/annotation_import/conversational.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,19 +432,19 @@
432432
" lb.Classification( \n",
433433
" class_type=lb.Classification.Type.TEXT,\n",
434434
" scope=lb.Classification.Scope.INDEX, \n",
435-
" instructions=\"text_convo\"), \n",
435+
" name=\"text_convo\"), \n",
436436
" lb.Classification( \n",
437437
" class_type=lb.Classification.Type.CHECKLIST, \n",
438438
" scope=lb.Classification.Scope.INDEX, \n",
439-
" instructions=\"checklist_convo\", \n",
439+
" name=\"checklist_convo\", \n",
440440
" options=[\n",
441441
" lb.Option(value=\"first_checklist_answer\"),\n",
442442
" lb.Option(value=\"second_checklist_answer\") \n",
443443
" ]\n",
444444
" ), \n",
445445
" lb.Classification( \n",
446446
" class_type=lb.Classification.Type.RADIO, \n",
447-
" instructions=\"radio_convo\", \n",
447+
" name=\"radio_convo\", \n",
448448
" scope=lb.Classification.Scope.INDEX, \n",
449449
" options=[\n",
450450
" lb.Option(value=\"first_radio_answer\"),\n",

examples/annotation_import/image.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,7 @@
764764
"# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n",
765765
"# Queue mode will be deprecated once dataset mode is deprecated\n",
766766
"project = client.create_project(name=\"image-demo-project\",\n",
767-
" media_type=lb.MediaType.Image,\n",
768-
" queue_mode=lb.QueueMode.Batch)\n",
767+
" media_type=lb.MediaType.Image)\n",
769768
"\n",
770769
"project.setup_editor(ontology)"
771770
],

examples/annotation_import/pdf.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@
8080
"source": [
8181
"import uuid\n",
8282
"import labelbox as lb\n",
83-
"import labelbox.types as lb_types\n",
84-
"from labelbox.schema.queue_mode import QueueMode"
83+
"import labelbox.types as lb_types\n"
8584
],
8685
"cell_type": "code",
8786
"outputs": [],
@@ -769,7 +768,6 @@
769768
"source": [
770769
"# Create a Labelbox project\n",
771770
"project = client.create_project(name=\"PDF_annotation_demo\", \n",
772-
" queue_mode=QueueMode.Batch,\n",
773771
" media_type=lb.MediaType.Document)\n",
774772
"project.setup_editor(ontology)"
775773
],

examples/annotation_import/tiled.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,6 @@
875875
"# Queue mode will be deprecated once dataset mode is deprecated\n",
876876
"\n",
877877
"project = client.create_project(name=\"Geospatial Project Demo\",\n",
878-
" queue_mode=lb.QueueMode.Batch,\n",
879878
" media_type=lb.MediaType.Geospatial_Tile)\n",
880879
"\n",
881880
"\n",

0 commit comments

Comments
 (0)