97aeda2a947c44cdef91d9276c2c38c02f37cda1,lib/pairwise_transform.py,,noise,#Any#Any#Any#Any#,39

Before Change



def noise(src, rate, level, chroma):
    if np.random.uniform() < rate:
        src = iproc.array_to_wand(src)
        dst = _noise(src, level, chroma)
        return iproc.wand_to_array(dst)
    else:
        return src

After Change



def noise(src, rate, level, chroma):
    if np.random.uniform() < rate:
        with iproc.array_to_wand(src) as tmp:
            tmp = _noise(tmp, level, chroma)
            dst = iproc.wand_to_array(tmp)
        return dst
    else:
        return src

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 97aeda2a947c44cdef91d9276c2c38c02f37cda1
Time: 2017-02-08
Author: nstm101339@gmail.com
File Name: lib/pairwise_transform.py
Class Name:
Method Name: noise


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 97aeda2a947c44cdef91d9276c2c38c02f37cda1
Time: 2017-02-08
Author: nstm101339@gmail.com
File Name: lib/data_augmentation.py
Class Name:
Method Name: random_half


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 97aeda2a947c44cdef91d9276c2c38c02f37cda1
Time: 2017-02-08
Author: nstm101339@gmail.com
File Name: lib/pairwise_transform.py
Class Name:
Method Name: scale