Skip to content

Releases: scaleapi/nucleus-python-client

v0.17.12

02 Mar 20:09
878ca05

Choose a tag to compare

Add dataset-scoped image deduplication support.

Supports deduplication on image and video datasets for an entire dataset, select reference ids, or select dataset item ids.

Example usage:

dataset = client.get_dataset("ds_...")

# Deduplicate entire dataset
result = dataset.deduplicate(threshold=10)

# Deduplicate specific items by reference IDs
result = dataset.deduplicate(threshold=10, reference_ids=["ref_1", "ref_2", "ref_3"])

# Deduplicate by internal item IDs (more efficient if you have them)
result = dataset.deduplicate_by_ids(threshold=10, dataset_item_ids=["item_1", "item_2"])

# Access results
print(f"Threshold: {result.stats.threshold}")
print(f"Original: {result.stats.original_count}, Unique: {result.stats.deduplicated_count}")
print(result.unique_reference_ids)

v0.17.11

17 Nov 15:43
671f475

Choose a tag to compare

Added support for limited access keys (to be used with or in substitute of api_keys for NucleusClient auth)

Example usage:

c = nucleus.NucleusClient(limited_access_key="<LIMITED_ACCESS_KEY>")
c = nucleus.NucleusClient(api_key="<API_KEY>", limited_access_key="<LIMITED_ACCESS_KEY>")
c = nucleus.NucleusClient(api_key="<API_KEY>")

v0.17.9

13 Mar 16:49
eb389ce

Choose a tag to compare

Added export_class_labels for slices and datasets.

Example usage

dataset = client.get_dataset(DATASET_ID)
class_labels = dataset.export_class_labels()
slice = dataset.get_slices()[0]
class_labels = slice.export_class_labels()

v0.17.5

15 Apr 16:36
f5d8b2d

Choose a tag to compare

Added

  • Method for uploading lidar semantic segmentation predictions, via dataset.upload_lidar_semseg_predictions

Example usage:

dataset = client.get_dataset("ds_...")
model = client.get_model("prj_...")
pointcloud_ref_id = 'pc_ref_1'
predictions_s3 = "s3://temp/predictions.json"

dataset.upload_lidar_semseg_predictions(model, pointcloud_ref_id, predictions_s3)

v0.17.3

29 Feb 16:26
4139951

Choose a tag to compare

Added

  • Added the environment variable S3_ENDPOINT to accommodate for nonstandard S3 Endpoint URLs when asking for presigned URLs

v0.17.2

29 Feb 10:14
db9d5f2

Choose a tag to compare

Modified

In Dataset.create_slice, the reference_ids parameter is now optional. If left unspecified, it will create an empty slice

v0.17.0

07 Feb 10:24
05435fc

Choose a tag to compare

Added

  • Added dataset.add_items_from_dir
  • Added pytest-xdist for test parallelization

Fixes

  • Fix test test_models.test_remove_invalid_tag_from_model

v0.16.17

29 Jan 14:49
6e67d2b

Choose a tag to compare

Update docs

v0.16.16

26 Jan 16:11
14c5d27

Choose a tag to compare

updated docstrings

v0.16.15

12 Jan 13:53
6660bf2

Choose a tag to compare

Fix concurrent point cloud download