
finetuned from https://huggingface.co/google/vit-base-patch16-224-in21k

dataset:26k images (train:21k valid:5k)

accuracy of validation dataset is 95%


```Python
from transformers import ViTFeatureExtractor, ViTForImageClassification
from PIL import Image

path = 'image_path'
image = Image.open(path)

feature_extractor = ViTFeatureExtractor.from_pretrained('furusu/umamusume-classifier')
model =  ViTForImageClassification.from_pretrained('furusu/umamusume-classifier')
inputs = feature_extractor(images=image, return_tensors="pt")

outputs = model(**inputs)

predicted_class_idx = outputs.logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])

```

{"license": "apache-2.0"}
transformers pytorch vit image-classification license:apache-2.0 autotrain_compatible endpoints_compatible has_space region:us
TAGS
#transformers #pytorch #vit #image-classification #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us 


finetuned from URL

dataset:26k images (train:21k valid:5k)

accuracy of validation dataset is 95%




TAGS
#transformers #pytorch #vit #image-classification #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us 

TAGS
#transformers #pytorch #vit #image-classification #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us 
