fix readme

Former-commit-id: bf0bcbc5ec
This commit is contained in:
BUAADreamer
2024-09-29 20:45:02 +08:00
parent 66213043ac
commit 534dc58363
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