fix rebase error

This commit is contained in:
bymyself 2025-05-16 14:04:54 -07:00
parent 9b62ebd817
commit 73f7ef5214

View File

@ -7,9 +7,9 @@ from comfy_api.input.video_types import VideoInput
def get_image_dimensions(image: torch.Tensor) -> tuple[int, int]:
if len(image.shape) == 4:
height, width = image.shape[1], image.shape[2]
return image.shape[1], image.shape[2]
elif len(image.shape) == 3:
height, width = image.shape[0], image.shape[1]
return image.shape[0], image.shape[1]
else:
raise ValueError("Invalid image tensor shape.")