scale-nucleus 0.17.6b3__py3-none-any.whl → 0.17.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nucleus/constants.py CHANGED
@@ -114,8 +114,7 @@ MODEL_PREDICTION_ID_KEY = "model_prediction_id"
114
114
  MODEL_PREDICTION_LABEL_KEY = "model_prediction_label"
115
115
  NAME_KEY = "name"
116
116
  NEW_ITEMS = "new_items"
117
- # NUCLEUS_ENDPOINT = "https://api.scale.com/v1/nucleus"
118
- NUCLEUS_ENDPOINT = "http://localhost:3003/nucleus"
117
+ NUCLEUS_ENDPOINT = "https://api.scale.com/v1/nucleus"
119
118
  NUM_SENSORS_KEY = "num_sensors"
120
119
  ORIGINAL_IMAGE_URL_KEY = "original_image_url"
121
120
  PAGE_SIZE_KEY = "pageSize"
nucleus/dataset.py CHANGED
@@ -1449,10 +1449,13 @@ class Dataset:
1449
1449
  )
1450
1450
  return convert_export_payload(api_payload[EXPORTED_ROWS])
1451
1451
 
1452
- def scene_and_annotation_generator(self, page_size: int = 10):
1452
+ def scene_and_annotation_generator(
1453
+ self, slice_id=None, page_size: int = 10
1454
+ ):
1453
1455
  """Provides a generator of all Scenes and Annotations in the dataset grouped by scene.
1454
1456
 
1455
1457
  Args:
1458
+ slice_id: Optional slice ID to filter the scenes and annotations.
1456
1459
  page_size: Number of scenes to fetch per page. Default is 10.
1457
1460
 
1458
1461
  Returns:
@@ -1505,6 +1508,7 @@ class Dataset:
1505
1508
  endpoint=f"dataset/{self.id}/{endpoint_name}",
1506
1509
  result_key=EXPORT_FOR_TRAINING_KEY,
1507
1510
  page_size=page_size,
1511
+ sliceId=slice_id,
1508
1512
  )
1509
1513
 
1510
1514
  for data in json_generator:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scale-nucleus
3
- Version: 0.17.6b3
3
+ Version: 0.17.7
4
4
  Summary: The official Python client library for Nucleus, the Data Platform for AI
5
5
  Home-page: https://scale.com/nucleus
6
6
  License: MIT
@@ -14,7 +14,6 @@ Classifier: Programming Language :: Python :: 3.8
14
14
  Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
17
  Provides-Extra: launch
19
18
  Provides-Extra: metrics
20
19
  Requires-Dist: Pillow (>=7.1.2)
@@ -19,14 +19,14 @@ nucleus/autocurate.py,sha256=kI0vRqad_An8SN5JX6sSdGP_vNHJI2Pq4NINHuhNf2U,1080
19
19
  nucleus/camera_params.py,sha256=fl17aaSAZDAJIWo6F2HFvM6HKGcQh9fXvo4t3RzGMc4,3726
20
20
  nucleus/chip_utils.py,sha256=1J1NHCh0ZptW8cdeuLWFM_cXuwQVSQFtSF8kXU8s2tI,6743
21
21
  nucleus/connection.py,sha256=q212plDtWoonfXWMVaCqTZBPZTy8dnNSGj0YeAR1Qmk,2990
22
- nucleus/constants.py,sha256=p7urHHYcp0Kxd-NUjkXs6dkrwnm2lyEj5vRapdQGT6Y,5519
22
+ nucleus/constants.py,sha256=K5boyMm3aMHCoT81zKurDfLRUIDcZM6W2GBU1Knn0Gg,5466
23
23
  nucleus/data_transfer_object/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  nucleus/data_transfer_object/dataset_details.py,sha256=1YGvfKkPSqDrXK_y5mBXyRThY07tU-nwOCYTkYCSl6k,214
25
25
  nucleus/data_transfer_object/dataset_info.py,sha256=5P_gpvAyaqXxj2ZQuzLkGN2XROaN9Me56OLybCmO3R4,940
26
26
  nucleus/data_transfer_object/dataset_size.py,sha256=oe-dXaMLpsQRDcJQRZ9Ja8JTagYz4dviZuTognEylp0,111
27
27
  nucleus/data_transfer_object/job_status.py,sha256=hxvyNdrdVdj3UpEfwvryKC_QCJQEC9ru6IPjhPFcK44,2038
28
28
  nucleus/data_transfer_object/scenes_list.py,sha256=iTHE6vA47bRB6ciyEU4LArUXEXco4ArnGvZTGTeK8xs,432
29
- nucleus/dataset.py,sha256=pmtUpYKWgSReT-lxA1dODCL3VzY_8Tq7yuyNWL7CkUk,94080
29
+ nucleus/dataset.py,sha256=ipAF9oS_5GDkdrCD-BH7kkfw9swEhVef6TeIp4h8iUw,94217
30
30
  nucleus/dataset_item.py,sha256=y9ia47i31lX2wvw6EkVAxeHburMrrZpuyjEGlstWa2A,10166
31
31
  nucleus/dataset_item_uploader.py,sha256=BD0FTgimEFYmDbnOLIaQZS3OLDfLe5wumADDmgMX598,6684
32
32
  nucleus/deprecation_warning.py,sha256=5C9dVusR5UkUQnW2MrRkIXCfbc8ULc7xOaB134agNKk,976
@@ -85,8 +85,8 @@ nucleus/validate/scenario_test.py,sha256=pCmM157dblSciZCDTw-f47Fpy3OUZFgXmokdhIL
85
85
  nucleus/validate/scenario_test_evaluation.py,sha256=Q0WzaEE9uUbPVc4EHlCoKjhJcqMNt4QbyiiJx12VOR0,4075
86
86
  nucleus/validate/scenario_test_metric.py,sha256=AhVFOB1ULwBqlZ2X_Au1TXy4iQELljtzR4ZpeLB35So,1209
87
87
  nucleus/validate/utils.py,sha256=VjdIJj9Pii4z4L6xbvClAc7ra_J7cX0vWB_J2X6yrGE,185
88
- scale_nucleus-0.17.6b3.dist-info/LICENSE,sha256=jaTGyQSQIZeWMo5iyYqgbAYHR9Bdy7nOzgE-Up3m_-g,1075
89
- scale_nucleus-0.17.6b3.dist-info/METADATA,sha256=LZLOnTKTFQvZs5V_jCGrpdmnt5DXpe2oQesnGOmItPI,7973
90
- scale_nucleus-0.17.6b3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
91
- scale_nucleus-0.17.6b3.dist-info/entry_points.txt,sha256=fmqEzh6NZQyg9eFMILnWabKT8OWQTMSCdDzMiVq2zYs,32
92
- scale_nucleus-0.17.6b3.dist-info/RECORD,,
88
+ scale_nucleus-0.17.7.dist-info/LICENSE,sha256=jaTGyQSQIZeWMo5iyYqgbAYHR9Bdy7nOzgE-Up3m_-g,1075
89
+ scale_nucleus-0.17.7.dist-info/METADATA,sha256=KARLBnMTHNhbe9MHtOZQNUiQZXILdtyFRDxTngLe30o,7920
90
+ scale_nucleus-0.17.7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
91
+ scale_nucleus-0.17.7.dist-info/entry_points.txt,sha256=fmqEzh6NZQyg9eFMILnWabKT8OWQTMSCdDzMiVq2zYs,32
92
+ scale_nucleus-0.17.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 1.6.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any