b0b8dc1124f726cd4455f9c70a86284e64953f4d,test/augmenters/test_pooling.py,_TestPoolingAugmentersBase,test_augment_keypoints__kernel_size_differs__requires_padding,#_TestPoolingAugmentersBase#,205

Before Change



    def test_augment_keypoints__kernel_size_differs__requires_padding(self):
        from imgaug.augmentables.kps import Keypoint, KeypointsOnImage
        kps = [Keypoint(x=1.5, y=5.5), Keypoint(x=5.5, y=1.5)]
        kpsoi = KeypointsOnImage(kps, shape=(5, 6, 3))
        aug = self.augmenter(
            (iap.Deterministic(3), iap.Deterministic(2)),
            keep_size=False)

        kpsoi_aug = aug.augment_keypoints(kpsoi)

        assert kpsoi_aug.shape == (2, 3, 3)
        assert np.allclose(kpsoi_aug.to_xy_array(),
                           [[(1.5/6)*3, (5.5/5)*2],

After Change


        self._test_augment_keypoints__kernel_size_differs((6, 6, 3), (2, 3, 3))

    def test_augment_keypoints__kernel_size_differs__requires_padding(self):
        self._test_augment_keypoints__kernel_size_differs((5, 6, 3), (2, 3, 3))

    def _test_augment_polygons__kernel_size_differs(self, shape, shape_exp):
        from imgaug.augmentables.polys import Polygon, PolygonsOnImage
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: aleju/imgaug
Commit Name: b0b8dc1124f726cd4455f9c70a86284e64953f4d
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: test/augmenters/test_pooling.py
Class Name: _TestPoolingAugmentersBase
Method Name: test_augment_keypoints__kernel_size_differs__requires_padding


Project Name: aleju/imgaug
Commit Name: b0b8dc1124f726cd4455f9c70a86284e64953f4d
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: test/augmenters/test_pooling.py
Class Name: _TestPoolingAugmentersBase
Method Name: test_augment_keypoints__kernel_size_differs


Project Name: aleju/imgaug
Commit Name: b0b8dc1124f726cd4455f9c70a86284e64953f4d
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: test/augmenters/test_pooling.py
Class Name: _TestPoolingAugmentersBase
Method Name: test_augment_polygons__kernel_size_differs


Project Name: aleju/imgaug
Commit Name: b0b8dc1124f726cd4455f9c70a86284e64953f4d
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: test/augmenters/test_pooling.py
Class Name: _TestPoolingAugmentersBase
Method Name: test_augment_keypoints__kernel_size_differs__requires_padding