File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -410,9 +410,13 @@ def append(
410
410
411
411
def items_and_annotation_generator (
412
412
self ,
413
+ use_mirrored_images : bool = False ,
413
414
) -> Iterable [Dict [str , Union [DatasetItem , Dict [str , List [Annotation ]]]]]:
414
415
"""Provides a generator of all DatasetItems and Annotations in the slice.
415
416
417
+ Args:
418
+ use_mirrored_images: If True, returns the location of the mirrored image hosted in Scale S3. Useful when the original image is no longer available.
419
+
416
420
Returns:
417
421
Generator where each element is a dict containing the DatasetItem
418
422
and all of its associated Annotations, grouped by type (e.g. box).
@@ -436,6 +440,7 @@ def items_and_annotation_generator(
436
440
endpoint = f"slice/{ self .id } /exportForTrainingPage" ,
437
441
result_key = EXPORT_FOR_TRAINING_KEY ,
438
442
page_size = 10000 , # max ES page size
443
+ chip = use_mirrored_images ,
439
444
)
440
445
for data in json_generator :
441
446
for ia in convert_export_payload ([data ], has_predictions = False ):
You can’t perform that action at this time.
0 commit comments