Skip to content

Commit 76c8fbf

Browse files
Merge pull request #983 from Labelbox/develop
Release 3.40.0
2 parents 252859d + e7eaed3 commit 76c8fbf

34 files changed

+2981
-1140
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 -- -svv --reruns 5 --reruns-delay 10
92+
tox -e py -- -n 10 -svv --reruns 5 --reruns-delay 10

CHANGELOG.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,45 @@
11
# Changelog
22

3-
# Version 3.40.0 (YYYY-MM-DD)
3+
# Version 3.40.0 (2023-03-10)
44

5-
## Added
6-
* Upsert data rows to model runs using global keys
5+
## Added
6+
* Support Global keys to reference data rows in `Project.create_batch()`, `ModelRun.assign_data_rows_to_split()`
7+
* Support upserting labels via project_id in `model_run.upsert_labels()`
8+
* `media_type_override` param to export_v2
9+
* `last_activity_at` and `label_created_at` params to export_v2
10+
* New client method `is_feature_schema_archived()`
11+
* New client method `unarchive_feature_schema_node()`
12+
* New client method `delete_feature_schema_from_ontology()`
13+
14+
## Changed
15+
* Removed default task names for export_v2
16+
17+
## Fixed
18+
* process_label() for COCO panoptic dataset
19+
20+
## Notebooks
21+
* Updated `annotation_import/pdf.ipynb` with more examples
22+
* Added `integrations/huggingface/huggingface.ipynb`
23+
* Fixed broken links for detectron notebooks in README
24+
* Added Dataset QueueMode during project creation in `integrations/detectron2/coco_object.ipynb`
25+
* Removed metadata and updated ontology in `annotation_import/text.ipynb`
26+
* Removed confidence scores in `annotation_import/image.ipynb`
27+
* Updated custom embedding tutorial links in `basics/data_row_metadata.ipynb`
728

829
# Version 3.39.0 (2023-02-28)
930
## Added
1031
* New method `Project.task_queues()` to obtain the task queues for a project.
1132
* New method `Project.move_data_rows_to_task_queue()` for moving data rows to a specified task queue.
1233
* Added more descriptive error messages for metadata operations
1334
* Added `Task.errors_url` for async tasks that return errors as separate file (e.g. `export_v2`)
35+
* Upsert data rows to model runs using global keys
1436

1537
## Changed
1638
* Updated `ProjectExportParams.labels` to `ProjectExportParams.label_details`
1739
* Removed `media_attributes` from `DataRowParams`
1840
* Added deprecation warnings for `LabelList` and removed its usage
1941
* Removed unused arguments in `Project.export_v2` and `ModelRun.export_v2`
42+
* In `Project.label_generator()`, we now filter skipped labels for project with videos
2043

2144
## Notebooks
2245
* Fixed `examples/label_export/images.ipynb` notebook metadata
@@ -70,7 +93,6 @@
7093
* Added support for adding metadata by name when creating datarows using `Dataset.create_data_rows()`, `Dataset.create_data_rows_sync()`, and `Dataset.create_data_row()`.
7194
* Example notebooks for auto metrics in models
7295

73-
7496
### Changed
7597
* `Dataset.create_data_rows()` max limit of DataRows increased to 150,000
7698
* Improved error handling for invalid annotation import content

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ test-custom: build
4444
-e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
4545
-e LABELBOX_TEST_API_KEY_CUSTOM=${LABELBOX_TEST_API_KEY_CUSTOM} \
4646
-e LABELBOX_TEST_GRAPHQL_API_ENDPOINT=${LABELBOX_TEST_GRAPHQL_API_ENDPOINT} \
47+
-e LABELBOX_TEST_REST_API_ENDPOINT=${LABELBOX_TEST_REST_API_ENDPOINT} \
4748
local/labelbox-python:test pytest $(PATH_TO_TEST)

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.39.0'
24+
release = '3.40.0'
2525

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

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Train a model using data annotated on Labelbox
3636

3737
| Notebook | Github | Google Colab |
3838
| --------------------------- | --------------------------------- | ------------ |
39-
| Object Detection (Detectron2) | [Github](coco_object.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/integrations/detectron2/coco_object.ipynb) |
40-
| Panoptic Detection (Detectron2) | [Github](coco_panoptic.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/integrations/detectron2/coco_panoptic.ipynb)
39+
| Object Detection (Detectron2) | [Github](integrations/detectron2/coco_object.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/integrations/detectron2/coco_object.ipynb) |
40+
| Panoptic Detection (Detectron2) | [Github](integrations/detectron2/coco_panoptic.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/integrations/detectron2/coco_panoptic.ipynb)
4141
------
4242

4343
## [Annotation Import (Ground Truth & MAL)](annotation_import)

examples/annotation_import/image.ipynb

Lines changed: 6 additions & 6 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",
@@ -629,7 +626,10 @@
629626
" name=\"point\"), \n",
630627
" lb.Tool( # Polyline tool given the name \"line\"\n",
631628
" tool=lb.Tool.Type.LINE,\n",
632-
" name=\"polyline\")]\n",
629+
" name=\"polyline\"),\n",
630+
" lb.Tool( # Relationship tool given the name \"relationship\"\n",
631+
" tool=lb.Tool.Type.RELATIONSHIP,\n",
632+
" name=\"relationship\")]\n",
633633
")\n",
634634
"\n",
635635
"ontology = client.create_ontology(\"Image Prediction Import Demo\", ontology_builder.asdict(), media_type=lb.MediaType.Image)"
@@ -865,4 +865,4 @@
865865
"execution_count": null
866866
}
867867
]
868-
}
868+
}

0 commit comments

Comments
 (0)