fix: ckpt paths. (#19159)

This commit is contained in:
Sayak Paul
2022-09-22 20:33:01 +05:30
committed by GitHub
parent 74a3ea4737
commit 3a396c59b8
2 changed files with 4 additions and 4 deletions

View File

@@ -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()