File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,6 @@ def items_and_annotations(
419
419
route = f"dataset/{ self .id } /exportForTraining" ,
420
420
requests_command = requests .get ,
421
421
)
422
- print (api_payload )
423
422
return convert_export_payload (api_payload [EXPORTED_ROWS ])
424
423
425
424
def export_embeddings (
Original file line number Diff line number Diff line change @@ -467,8 +467,7 @@ def test_append_and_export(dataset):
467
467
segmentation_annotation ,
468
468
]
469
469
)
470
-
471
- # We don't export everything on the annotations in order to speed up export.
470
+ # We don't export everything on segmentation annotations in order to speed up export.
472
471
def clear_fields (annotation ):
473
472
cleared_annotation = copy .deepcopy (annotation )
474
473
cleared_annotation .metadata = {}
@@ -481,15 +480,11 @@ def sort_labelmap(segmentation_annotation):
481
480
482
481
exported = dataset .items_and_annotations ()
483
482
assert exported [0 ][ITEM_KEY ] == ds_items [0 ]
484
- assert exported [0 ][ANNOTATIONS_KEY ][BOX_TYPE ][0 ] == clear_fields (
485
- box_annotation
486
- )
483
+ assert exported [0 ][ANNOTATIONS_KEY ][BOX_TYPE ][0 ] == box_annotation
487
484
assert sort_labelmap (
488
485
exported [0 ][ANNOTATIONS_KEY ][SEGMENTATION_TYPE ]
489
486
) == sort_labelmap (clear_fields (segmentation_annotation ))
490
- assert exported [0 ][ANNOTATIONS_KEY ][POLYGON_TYPE ][0 ] == clear_fields (
491
- polygon_annotation
492
- )
487
+ assert exported [0 ][ANNOTATIONS_KEY ][POLYGON_TYPE ][0 ] == polygon_annotation
493
488
494
489
495
490
def test_export_embeddings (CLIENT ):
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def dataset(CLIENT):
38
38
assert response == {"message" : "Beginning dataset deletion..." }
39
39
40
40
41
+ @pytest .mark .integration
41
42
def test_index_integration (dataset ):
42
43
signed_embeddings_url = TEST_INDEX_EMBEDDINGS_FILE
43
44
create_response = dataset .create_custom_index (
You can’t perform that action at this time.
0 commit comments