Downloads · 30 days
4
18% of all-time downloads
aaronqg/vit-football-players
vit-football-players is a machine learning model from aaronqg. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
Este modelo es un Vision Transformer (ViT) afinado sobre el dataset Golden Foot Football Players.
Downloads · 30 days
4
18% of all-time downloads
All-time downloads
22
Public
Parameters
85.8M
687 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors343 MB · 100%
From the Hugging Face model README
Este modelo es un Vision Transformer (ViT) afinado sobre el dataset Golden Foot Football Players.
google/vit-base-patch16-224WeightedRandomSampler```python from transformers import ViTForImageClassification, ViTImageProcessor from PIL import Image
model = ViTForImageClassification.from_pretrained("aaronqg/vit-football-players") processor = ViTImageProcessor.from_pretrained("aaronqg/vit-football-players")
image = Image.open("jugador.jpg").convert("RGB") inputs = processor(images=image, return_tensors="pt") outputs = model(**inputs) pred = outputs.logits.argmax(-1).item() print("Predicción:", pred) ```