1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Remove useless code.

This commit is contained in:
comfyanonymous
2025-03-29 20:11:43 -04:00
parent 832fc02330
commit a3100c8452

View File

@@ -1000,7 +1000,6 @@ class WAN21(BaseModel):
device = kwargs["device"]
if image is None:
image = torch.zeros_like(noise)
shape_image = list(noise.shape)
shape_image[1] = extra_channels
image = torch.zeros(shape_image, dtype=noise.dtype, layout=noise.layout, device=noise.device)