예제 #1
0
def test_segmentation_select_masks():
    data = [make_batch_select_masks(batch_size, vertex_ndim=2, npolygons_range=(1, 5),
                                    nvertices_range=(3, 10)) for _ in range(data_size)]

    pipe = segmentation_select_masks_pipeline(data)
    compare_eager_with_pipeline(pipe, eager.segmentation.select_masks, eager_source=PipelineInput(
        segmentation_select_masks_input_pipeline, data))
예제 #2
0
 def get_data_source(*args, **kwargs):
     return lambda: make_batch_select_masks(*args, **kwargs)