fix readme

Former-commit-id: 867e7e70dbff207dbd78668af09a638654937f71
This commit is contained in:
BUAADreamer
2024-09-29 20:45:02 +08:00
parent fe2abe20fc
commit 85a919b6f7
2 changed files with 4 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ def get_patch_size(config: "PretrainedConfig") -> int:
r"""
Computes the patch size of the vit.
"""
patch_size = getattr(config.vision_config, "patch_size", 14)
patch_size = getattr(config.vision_config, "patch_size", -1)
return patch_size