[Mypy] Fix mypy typing for N/O models (#54142)
Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
@@ -551,7 +551,9 @@ class DynamicResolutionImageTiler:
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def stack(images: list[torch.Tensor], patch_size: int) -> torch.Tensor:
|
||||
def stack(
|
||||
images: list[torch.Tensor] | torch.Tensor, patch_size: int
|
||||
) -> torch.Tensor:
|
||||
assert len(images) > 0, "No images to stack"
|
||||
|
||||
def rearrange_img(x):
|
||||
|
||||
Reference in New Issue
Block a user