SAG-ViT / test_model_loading.py
shravvvv's picture
Added model.bin
0fe9461
raw
history blame
283 Bytes
from transformers import AutoModelForImageClassification, AutoImageProcessor
model = AutoModelForImageClassification.from_pretrained("shravvvv/SAG-ViT", trust_remote_code=True)
processor = AutoImageProcessor.from_pretrained("shravvvv/SAG-ViT", trust_remote_code=True)
print(model)