97aeda2a947c44cdef91d9276c2c38c02f37cda1,lib/pairwise_transform.py,,scale,#Any#Any#Any#,48

Before Change


    filters = ("box", "lanczos")
    blur = np.random.uniform(bmin, bmax)
    rand = random.randint(0, len(filters)-1)
    dst = iproc.array_to_wand(src)
    dst.resize(w // 2, h // 2, filters[rand], blur)
    dst.resize(w, h, "box")
    return iproc.wand_to_array(dst)


def noise_scale(src, bmin, bmax, rate, level, chroma):
    // "box", "triangle", "hermite", "hanning", "hamming", "blackman",

After Change


    filters = ("box", "lanczos")
    blur = np.random.uniform(bmin, bmax)
    rand = random.randint(0, len(filters)-1)
    with iproc.array_to_wand(src) as tmp:
        tmp.resize(w // 2, h // 2, filters[rand], blur)
        tmp.resize(w, h, "box")
        dst = iproc.wand_to_array(tmp)
    return dst


def noise_scale(src, bmin, bmax, rate, level, chroma):
    // "box", "triangle", "hermite", "hanning", "hamming", "blackman",
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: scale


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: noise