Skip to content

Commit 0c136f7

Browse files
Xihua Dongrwightman
Xihua Dong
authored andcommitted
fix img_size type
1 parent 3ff3899 commit 0c136f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/layers/patch_embed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PatchEmbed(nn.Module):
3131

3232
def __init__(
3333
self,
34-
img_size: Optional[int] = 224,
34+
img_size: Union[int, Tuple[int, int]] = 224,
3535
patch_size: int = 16,
3636
in_chans: int = 3,
3737
embed_dim: int = 768,

0 commit comments

Comments
 (0)