MCPcopy Create free account
hub / github.com/NVIDIA/DALI / test_data

Function test_data

dali/test/python/operator_2/test_segmentation_select_masks.py:126–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125def test_select_masks_wrong_mask_ids():
126 def test_data():
127 polygons = [np.array([[0, 0, 2], [1, 3, 5], [2, 6, 8]], dtype=np.int32)]
128 vertices = [np.array(np.random.rand(9, 2), dtype=np.float32)]
129 mask_ids = [np.array([10, 11], dtype=np.int32)] # out of bounds ids
130 return polygons, vertices, mask_ids
131
132 _test_select_masks_wrong_input(
133 lambda: test_data(), err_regex="Selected mask_id .* is not present in the input\\."

Calls

no outgoing calls

Tested by

no test coverage detected