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)
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: keras-team/autokeras
Commit Name: bf1337afb8d75f0bbd8725c14830b8798bceb33e
Time: 2018-01-02
Author: jhfjhfj1@gmail.com
File Name: autokeras/net_transformer.py
Class Name:
Method Name: transform
Project Name: dmlc/gluon-nlp
Commit Name: 6955fab0f4f0a38ead24cec84152d82769a0cfa2
Time: 2019-06-21
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/run_pretraining_hvd.py
Class Name:
Method Name: