Skip to content

Commit

Permalink
fix: ckpt paths. (huggingface#19159)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayakpaul authored Sep 22, 2022
1 parent 74a3ea4 commit 3a396c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/vit_msn/modeling_vit_msn.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@


_CONFIG_FOR_DOC = "ViTMSNConfig"
_CHECKPOINT_FOR_DOC = "sayakpaul/vit-msn-small"
_CHECKPOINT_FOR_DOC = "facebook/vit-msn-small"
VIT_MSN_PRETRAINED_MODEL_ARCHIVE_LIST = [
"sayakpaul/vit-msn-small",
"facebook/vit-msn-small",
# See all ViTMSN models at https://huggingface.co/models?filter=vit_msn
]

Expand Down
4 changes: 2 additions & 2 deletions tests/models/vit_msn/test_modeling_vit_msn.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ def prepare_img():
class ViTMSNModelIntegrationTest(unittest.TestCase):
@cached_property
def default_feature_extractor(self):
return ViTFeatureExtractor.from_pretrained("sayakpaul/vit-msn-small") if is_vision_available() else None
return ViTFeatureExtractor.from_pretrained("facebook/vit-msn-small") if is_vision_available() else None

@slow
def test_inference_image_classification_head(self):
torch.manual_seed(2)
model = ViTMSNForImageClassification.from_pretrained("sayakpaul/vit-msn-small").to(torch_device)
model = ViTMSNForImageClassification.from_pretrained("facebook/vit-msn-small").to(torch_device)

feature_extractor = self.default_feature_extractor
image = prepare_img()
Expand Down

0 comments on commit 3a396c5

Please sign in to comment.