fixed fun inp models crash

This commit is contained in:
deepbeepmeep 2025-08-07 13:52:51 +02:00
parent 3983715eec
commit 50914b791e
2 changed files with 2 additions and 2 deletions

View File

@ -504,7 +504,7 @@ class WanAny2V:
timestep_injection = False timestep_injection = False
lat_frames = int((frame_num - 1) // self.vae_stride[0]) + 1 lat_frames = int((frame_num - 1) // self.vae_stride[0]) + 1
# image2video # image2video
if model_type in ["i2v", "i2v_2_2", "fantasy", "multitalk", "flf2v_720p"]: if model_type in ["i2v", "i2v_2_2", "fun_inp_1.3B", "fun_inp", "fantasy", "multitalk", "flf2v_720p"]:
any_end_frame = False any_end_frame = False
if image_start is None: if image_start is None:
_ , preframes_count, height, width = input_video.shape _ , preframes_count, height, width = input_video.shape

2
wgp.py
View File

@ -1512,7 +1512,7 @@ def _parse_args():
"--perc-reserved-mem-max", "--perc-reserved-mem-max",
type=float, type=float,
default=0, default=0,
help="% of RAM allocated to Reserved RAM" help="percent of RAM allocated to Reserved RAM"
) )