(img_shape)
| 34 | |
| 35 | @staticmethod |
| 36 | def get_data(img_shape): |
| 37 | create_test_image = create_test_image_2d if len(img_shape) == 2 else create_test_image_3d |
| 38 | im = create_test_image(*img_shape, num_objs=4, rad_max=20, noise_max=0.0, num_seg_classes=5)[0][None] |
| 39 | return torch.Tensor(im) |
| 40 | |
| 41 | @parameterized.expand(TEST_CASES) |
| 42 | def test_forward(self, img_shape): |
no outgoing calls
no test coverage detected