7d8f3f66495979f1bbd27205d422d673991709f2,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)
After 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.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)]
nn.set_auto_forward(True)
nn.load_parameters("styleGAN2_G_params.h5")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
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
Project Name: sony/nnabla-examples
Commit Name: 149ec80539b903677c6c69fe52968867dd50c95f
Time: 2019-07-15
Author: Krishna.Wadhwani@sony.com
File Name: VAEs/vq-vae/models/vq_vae.py
Class Name: VectorQuantizerEMA
Method Name: __init__
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: 7d8f3f66495979f1bbd27205d422d673991709f2
Time: 2021-01-26
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main