4d459fd8b99b3e469fa5fb436e014aa10f8e52f4,tests/utils_tests/testing_tests/test_generate_random_bbox.py,TestGenerateRandomBbox,test_generate_random_bbox,#TestGenerateRandomBbox#,12

Before Change


        self.assertTrue(np.all(h < max_length))
        self.assertTrue(np.all(h >= min_length))
        self.assertTrue(np.all(w < max_length))
        self.assertTrue(np.all(w >= min_length))


testing.run_module(__name__, __file__)

After Change


        assert_is_bbox(bbox, img_size)
        self.assertEqual(bbox.shape[0], self.n)

        if self.n > 0:
            h = bbox[:, 2] - bbox[:, 0]
            w = bbox[:, 3] - bbox[:, 1]
            self.assertTrue(np.all(h < max_length))
            self.assertTrue(np.all(h >= min_length))
            self.assertTrue(np.all(w < max_length))
            self.assertTrue(np.all(w >= min_length))


testing.run_module(__name__, __file__)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 5

Instances


Project Name: chainer/chainercv
Commit Name: 4d459fd8b99b3e469fa5fb436e014aa10f8e52f4
Time: 2017-10-12
Author: yuyuniitani@gmail.com
File Name: tests/utils_tests/testing_tests/test_generate_random_bbox.py
Class Name: TestGenerateRandomBbox
Method Name: test_generate_random_bbox


Project Name: chainer/chainercv
Commit Name: b7bce0c602053eed6b1ccf9e7783f6bffeb067dd
Time: 2017-10-14
Author: Hakuyume@users.noreply.github.com
File Name: tests/dataset_tests/test_annotated_image_dataset_mixin.py
Class Name: TestAnnotatedImageDatasetMixin
Method Name: test_annotation_dataset_index


Project Name: aleju/imgaug
Commit Name: 9864258e6714791b7e0a62717f9efbae96da902b
Time: 2019-09-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/blend.py
Class Name:
Method Name: blend_alpha


Project Name: aleju/imgaug
Commit Name: 9864258e6714791b7e0a62717f9efbae96da902b
Time: 2019-09-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/blend.py
Class Name: AlphaElementwise
Method Name: _sample_mask


Project Name: chainer/chainercv
Commit Name: a1093b0e2d5f3484c8a5800eea82131388bf24e6
Time: 2017-08-19
Author: Hakuyume@users.noreply.github.com
File Name: tests/transforms_tests/image_tests/test_resize_contain.py
Class Name: TestResizeContain
Method Name: test_resize_contain