SupremoUGH's picture
move model
49d0f3b unverified
raw
history blame contribute delete
219 Bytes
from transformers import ViTForImageClassification
import os
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
def load_model():
return ViTForImageClassification.from_pretrained(ROOT_DIR)