Skip to content

Commit

Permalink
Retro-compatibility (no manual seed by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
woctezuma committed Sep 22, 2020
1 parent c5d726c commit 0ea71ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apply_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@

trunc = g.mean_latent(4096)

torch.manual_seed(torch_seed)
if torch_seed > 0:
torch.manual_seed(torch_seed)
latent = torch.randn(args.n_sample, 512, device=args.device)
latent = g.get_latent(latent)

Expand Down

0 comments on commit 0ea71ec

Please sign in to comment.