Skip to content

Commit 0ea71ec

Browse files
committed
Retro-compatibility (no manual seed by default)
1 parent c5d726c commit 0ea71ec

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
@@ -67,7 +67,8 @@
6767

6868
trunc = g.mean_latent(4096)
6969

70-
torch.manual_seed(torch_seed)
70+
if torch_seed > 0:
71+
torch.manual_seed(torch_seed)
7172
latent = torch.randn(args.n_sample, 512, device=args.device)
7273
latent = g.get_latent(latent)
7374

0 commit comments

Comments
 (0)