Compare commits

...

3 Commits

Author SHA1 Message Date
Zhen Han
8e6dbce161
Merge e649b328e9 into 841fe5237b 2025-12-07 23:29:13 +08:00
Shiguang Ai
841fe5237b
When frame_num is changed from 81 the tensor does not match (#533) 2025-12-02 14:53:33 +08:00
hanzhn
e649b328e9 shrink vace seed range 2025-05-15 13:13:11 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -207,7 +207,7 @@ class WanI2V:
generator=seed_g,
device=self.device)
msk = torch.ones(1, 81, lat_h, lat_w, device=self.device)
msk = torch.ones(1, F, lat_h, lat_w, device=self.device)
msk[:, 1:] = 0
msk = torch.concat([
torch.repeat_interleave(msk[:, 0:1], repeats=4, dim=1), msk[:, 1:]

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)