diff --git a/apply_factor.py b/apply_factor.py index d60a7e5b..9bf7f0ed 100755 --- a/apply_factor.py +++ b/apply_factor.py @@ -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)