mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-06-06 23:34:53 +00:00
Fixed I2V Frames Hardcoded at 81 - updated frame_num to F for consistency
This commit is contained in:
parent
f9267254b5
commit
de2b78a69c
@ -205,7 +205,7 @@ class WanI2V:
|
||||
device=self.device)
|
||||
|
||||
#20250226 fix noise assuming frames hardcoded at 81 (21 latent frames)
|
||||
latent_frame_num = (frame_num - 1) // self.vae_stride[0] + 1
|
||||
latent_frame_num = (F - 1) // self.vae_stride[0] + 1
|
||||
noise = torch.randn(16, latent_frame_num, lat_h, lat_w, dtype=torch.float32, generator=seed_g, device=self.device)
|
||||
|
||||
#msk = torch.ones(1, 81, lat_h, lat_w, device=self.device)
|
||||
|
Loading…
Reference in New Issue
Block a user