9dab8ae56ce90f1b9ba6808a6e0673ab6f13103e,GANs/stylegan2/generate.py,,main,#,98
Before Change
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.")
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)]
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: sony/nnabla-examples
Commit Name: fc94cf593f218f4c3e715d8a2d58b324c2828007
Time: 2020-11-06
Author: Krishna.Wadhwani@sony.com
File Name: VAEs/vq-vae/trainers/train_prior.py
Class Name: TrainerPrior
Method Name: forward_pass
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