fix readme

This commit is contained in:
BUAADreamer committed 2024-09-29 20:45:02 +08:00
1 parent 7397827aec
commit bf0bcbc5ec
2 files changed
+4 -4

No files matched your search

+1 -1
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