I am using the model “google/vit-base-patch16-224-in21k” to pretrain and do inference. Pre-training works ok but generates error message whien trying to get inference:
from transformers import pipeline
classifier = pipeline(“image-classification”, model=“Govindaramani/food_classifier · Hugging Face”)
OSError: It looks like the config file at ‘/tmp/tmpwodsxq7k’ is not a valid JSON file.
I verified that config.json is valid JSON.
Can someone help?