f22c4ebf74fd00bb8e2ec136ea9cf0f7177ebf61,TestImageAugmenter.py,TestImageAugmenter,test_two_channels,#TestImageAugmenter#,186

Before Change


        images = np.array([image_before]).astype(np.uint8)
        nb_similar = 0
        for _ in range(100):
            image_after = ia.augment_batch(images)[0]
            //print(image_after)
            if np.allclose(image_target, image_after):
                nb_similar += 1
        //print("similar:",nb_similar)

After Change


        images = np.array([image_before]).astype(np.uint8)
        
        nb_augment = 1000
        images_augmented = ia.augment_batch(np.resize(images, (nb_augment, 2, 2, 2)))
        
        nb_similar = 0
        for image_after in images_augmented:
            if np.allclose(image_target, image_after):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: aleju/imgaug
Commit Name: f22c4ebf74fd00bb8e2ec136ea9cf0f7177ebf61
Time: 2015-07-16
Author: kontakt@ajung.name
File Name: TestImageAugmenter.py
Class Name: TestImageAugmenter
Method Name: test_two_channels


Project Name: aleju/imgaug
Commit Name: cc39b6049eef056a092acda1bfcef12abef37554
Time: 2019-03-30
Author: kontakt@ajung.name
File Name: imgaug/multicore.py
Class Name:
Method Name: _Pool_worker


Project Name: aleju/imgaug
Commit Name: cc39b6049eef056a092acda1bfcef12abef37554
Time: 2019-03-30
Author: kontakt@ajung.name
File Name: imgaug/multicore.py
Class Name: BackgroundAugmenter
Method Name: _augment_images_worker