Compare commits

...

2 Commits

Author SHA1 Message Date
Zhen Han
1c5a2fd9d4
Merge e649b328e9 into ec902046f6 2025-05-28 15:21:03 +08:00
hanzhn
e649b328e9 shrink vace seed range 2025-05-15 13:13:11 +08:00

View File

@ -352,7 +352,7 @@ class WanVace(WanT2V):
if n_prompt == "":
n_prompt = self.sample_neg_prompt
seed = seed if seed >= 0 else random.randint(0, sys.maxsize)
seed = seed if seed >= 0 else random.randint(0, 1e7)
seed_g = torch.Generator(device=self.device)
seed_g.manual_seed(seed)
@ -649,7 +649,7 @@ class WanVaceMP(WanVace):
if n_prompt == "":
n_prompt = sample_neg_prompt
seed = seed if seed >= 0 else random.randint(0, sys.maxsize)
seed = seed if seed >= 0 else random.randint(0, 1e7)
seed_g = torch.Generator(device=gpu)
seed_g.manual_seed(seed)