VAE Tiling Support - credits to deepbeepmeep's WanGP

This commit is contained in:
pftq 2025-03-18 22:17:31 -07:00 committed by GitHub
parent 09ba994635
commit d0ff85adc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,7 +137,9 @@ class WanI2V:
guide_scale=5.0,
n_prompt="",
seed=-1,
offload_model=True):
offload_model=True,
VAE_tile_size=0, # 20250316 pftq: vae tiling from deepbeepmeep/WanGP
):
r"""
Generates video frames from input image and text prompt using diffusion process.
@ -249,7 +251,9 @@ class WanI2V:
torch.zeros(3, F-1, h, w) # 20250226 pftq: fixed 80 being hardcoded frame-1
],
dim=1).to(self.device)
])[0]
]
, VAE_tile_size # 20250316 pftq: VAE tiling from deepbeepmeep/WanGP
)[0]
y = torch.concat([msk, y])
@contextmanager