1d09e5c9057e26598e01fcf08d9be53eeeab4733,imgaug/augmenters/contrast.py,_ContrastFuncWrapper,_augment_batch,#_ContrastFuncWrapper#Any#Any#Any#Any#,56

Before Change


                for param in self.params1d]
            if per_channel_i > 0.5:
                input_dtype = image.dtype
                image_aug = image.astype(np.float64)
                for c in sm.xrange(nb_channels):
                    samples_i_c = [sample_i[c] for sample_i in samples_i]
                    args = tuple([image[..., c]] + samples_i_c)
                    image_aug[..., c] = self.func(*args)

After Change


                input_dtype = image.dtype
                // TODO This was previously a cast of image to float64. Do the
                //      adjust_* functions return float64?
                result = []
                for c in sm.xrange(nb_channels):
                    samples_i_c = [sample_i[c] for sample_i in samples_i]
                    args = tuple([image[..., c]] + samples_i_c)
                    result.append(self.func(*args))
                image_aug = np.stack(result, axis=-1)
                image_aug = image_aug.astype(input_dtype)
            else:
                // don"t use something like samples_i[...][0] here, because
                // that returns python scalars and is slightly less accurate
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: aleju/imgaug
Commit Name: 1d09e5c9057e26598e01fcf08d9be53eeeab4733
Time: 2019-11-23
Author: kontakt@ajung.name
File Name: imgaug/augmenters/contrast.py
Class Name: _ContrastFuncWrapper
Method Name: _augment_batch


Project Name: pyannote/pyannote-audio
Commit Name: 341ba5700baf52c5a45da86b9b207a1aeec4529b
Time: 2017-05-20
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/base_autograd.py
Class Name: SequenceEmbeddingAutograd
Method Name: embed


Project Name: rusty1s/pytorch_geometric
Commit Name: 37847c77889e39143034af9fe0d4b92bc74e992a
Time: 2018-03-02
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/utils/ply.py
Class Name:
Method Name: read_ply