9dab8ae56ce90f1b9ba6808a6e0673ab6f13103e,GANs/stylegan2/generate.py,,main,#,98

Before Change


        print(f"using style noise seed {args.seed_mix} for layers {args.mix_after}-{num_layers}.")
        rnd = np.random.RandomState(args.seed_mix)
        z2 = rnd.randn(batch_size, 512)
        style_noises = [nn.Variable((batch_size, 512)).apply(d=z)
                        for _ in range(args.mix_after)]
        style_noises += [nn.Variable((batch_size, 512)).apply(d=z2)
                         for _ in range(num_layers - args.mix_after)]
    else:
        // no style mixing (single noise / style is used)
        print(f"using style noise seed {args.seed} for entire layers.")
        style_noise = nn.Variable((batch_size, 512)).apply(d=z)

After Change


        rnd = np.random.RandomState(args.seed_mix)
        z2 = rnd.randn(batch_size, 512)
        style_noises = [nn.NdArray.from_numpy_array(z)]
        style_noises += [nn.NdArray.from_numpy_array(z2)]
    else:
        // no style mixing (single noise / style is used)
        print(f"using style noise seed {args.seed} for entire layers.")
        style_noises = [nn.NdArray.from_numpy_array(z) for _ in range(2)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: sony/nnabla-examples
Commit Name: 9dab8ae56ce90f1b9ba6808a6e0673ab6f13103e
Time: 2020-12-15
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main


Project Name: EpistasisLab/scikit-rebate
Commit Name: 7d51c2e47a41418904a76c8c744c7ec51ac8a9aa
Time: 2019-01-09
Author: alexmxu99@gmail.com
File Name: visualizer.py
Class Name:
Method Name:


Project Name: sony/nnabla-examples
Commit Name: 7d8f3f66495979f1bbd27205d422d673991709f2
Time: 2021-01-26
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main