Skip to content

Commit a8e446b

Browse files
committed
Retro-compatibility (no manual seed by default)
1 parent 2fc1540 commit a8e446b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: apply_factor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161

6262
trunc = g.mean_latent(4096)
6363

64-
torch.manual_seed(torch_seed)
64+
if torch_seed > 0:
65+
torch.manual_seed(torch_seed)
6566
latent = torch.randn(args.n_sample, 512, device=args.device)
6667
latent = g.get_latent(latent)
6768

0 commit comments

Comments
 (0)