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)