77b5596d0a032e2a3738a58c74832fa6fb6500e2,lib/pairwise_transform.py,,_noise,#Any#Any#Any#,11

Before Change


    elif level == 1:
        dst = iproc.jpeg(src, sampling_factor, quality1)
    elif level == 2:
        if np.random.uniform() > 0.5:
            src = iproc.jpeg(src, sampling_factor, quality1)
        dst = iproc.jpeg(src, sampling_factor, quality2)
    elif level == 3:
        if np.random.uniform() > 0.5:
            src = iproc.jpeg(src, sampling_factor, quality1)
        if np.random.uniform() > 0.5:
            src = iproc.jpeg(src, sampling_factor, quality2)

After Change


        // for level 3, --nr_rate 1
        rand = np.random.uniform()
        if rand < 0.6:
            quality = random.randint(25, 70)
            dst = iproc.jpeg(src, sampling_factor, quality)
        elif rand < 0.9:
            quality0 = random.randint(35, 70)
            quality1 = random.randint(25, 65)
            dst = iproc.jpeg(src, sampling_factor, quality0)
            dst = iproc.jpeg(dst, sampling_factor, quality1)
        else:
            quality0 = random.randint(50, 70)
            quality1 = random.randint(35, 65)
            quality2 = random.randint(25, 55)
            dst = iproc.jpeg(src, sampling_factor, quality0)
            dst = iproc.jpeg(dst, sampling_factor, quality1)
            dst = iproc.jpeg(dst, sampling_factor, quality2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 77b5596d0a032e2a3738a58c74832fa6fb6500e2
Time: 2017-02-28
Author: nstm101339@gmail.com
File Name: lib/pairwise_transform.py
Class Name:
Method Name: _noise


Project Name: azavea/raster-vision
Commit Name: 1c260c438967e16675898bc1c81d462b4aacbed1
Time: 2018-08-16
Author: lewfish@gmail.com
File Name: src/rastervision/core/box.py
Class Name: Box
Method Name: make_random_square_container


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 77b5596d0a032e2a3738a58c74832fa6fb6500e2
Time: 2017-02-28
Author: nstm101339@gmail.com
File Name: lib/pairwise_transform.py
Class Name:
Method Name: _noise


Project Name: azavea/raster-vision
Commit Name: 1c260c438967e16675898bc1c81d462b4aacbed1
Time: 2018-08-16
Author: lewfish@gmail.com
File Name: src/rastervision/core/box.py
Class Name: Box
Method Name: make_random_square