one more fix

This commit is contained in:
DeepBeepMeep 2025-06-25 09:18:03 +02:00
parent 7676ded155
commit e0666a3e6d

View File

@ -195,6 +195,7 @@ class WanT2V:
ref_width, ref_height = ref_img.size ref_width, ref_height = ref_img.size
if (ref_height, ref_width) == image_size and outpainting_dims == None: if (ref_height, ref_width) == image_size and outpainting_dims == None:
ref_img = TF.to_tensor(ref_img).sub_(0.5).div_(0.5).unsqueeze(1) ref_img = TF.to_tensor(ref_img).sub_(0.5).div_(0.5).unsqueeze(1)
canvas = torch.zeros_like(ref_img) if return_mask else None
else: else:
if outpainting_dims != None: if outpainting_dims != None:
final_height, final_width = image_size final_height, final_width = image_size