Skip to content

Commit 6345182

Browse files
committed
Merge branch 'develop' into lgluszek/ontology-update
2 parents 0903e72 + 261d0ad commit 6345182

File tree

12 files changed

+1048
-644
lines changed

12 files changed

+1048
-644
lines changed

CHANGELOG.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
11
# Changelog
2+
3+
# Version 3.40.0 (YYYY-MM-DD)
4+
5+
## Added
6+
* Upsert data rows to model runs using global keys
7+
8+
# Version 3.39.0 (2023-02-28)
9+
## Added
10+
* New method `Project.task_queues()` to obtain the task queues for a project.
11+
* New method `Project.move_data_rows_to_task_queue()` for moving data rows to a specified task queue.
12+
* Added more descriptive error messages for metadata operations
13+
* Added `Task.errors_url` for async tasks that return errors as separate file (e.g. `export_v2`)
14+
15+
## Changed
16+
* Updated `ProjectExportParams.labels` to `ProjectExportParams.label_details`
17+
* Removed `media_attributes` from `DataRowParams`
18+
* Added deprecation warnings for `LabelList` and removed its usage
19+
* Removed unused arguments in `Project.export_v2` and `ModelRun.export_v2`
20+
21+
## Notebooks
22+
* Fixed `examples/label_export/images.ipynb` notebook metadata
23+
* Removed unused `lb_serializer` imports
24+
* Removed uuid generation in NDJson annotation payloads, as it is now optional
25+
* Removed custom embeddings usage in `examples/basics/data_row_metadata.ipynb`
26+
* New notebook `examples/basics/custom_embeddings.ipynb` for custom embeddings
27+
* Updated `examples/annotation_import/text.ipynb` to use `TextData` and specify Text media type
28+
229
# Version 3.38.0 (2023-02-15)
330

431
## Added
532
* All imports are available via `import labelbox as lb` and `import labelbox.types as lb_types`.
633
* Attachment_name support to create_attachment()
7-
* New method `Project.task_queues()` to obtain the task queues for a project.
8-
* New method `Project.move_data_rows_to_task_queue()` for moving data rows to a specified task queue.
934

1035
## Changed
1136
* `LabelImport.create_from_objects()`, `MALPredictionImport.create_from_objects()`, `MEAPredictionImport.create_from_objects()`, `Project.upload_annotations()`, `ModelRun.add_predictions()` now support Python Types for annotations.
@@ -16,7 +41,6 @@
1641
* Fixed nested classification in examples/annotation_import/image.ipynb
1742
* Ontology (instructions --> name)
1843

19-
2044
# Version 3.37.0 (2023-02-08)
2145
## Added
2246
* New `last_activity_start` param to `project.export_labels()` for filtering which labels are exported. See docstring for more on how this works.

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.38.0'
24+
release = '3.39.0'
2525

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

examples/annotation_import/image.ipynb

Lines changed: 2 additions & 5 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",
@@ -865,4 +862,4 @@
865862
"execution_count": null
866863
}
867864
]
868-
}
865+
}

0 commit comments

Comments
 (0)