Downloads · 30 days
6
2% of all-time downloads
lucasddmc/vit-b16-stanford40-actions
vit-b16-stanford40-actions is a image classification model from lucasddmc. Use it when you need a label for an image. It is set up for transformers. The card lists the license as mit.
Vision Transformer ViT-B/16 fine-tuned on the Stanford 40 Actions dataset for action recognition in still images. This model reaches 91.5% accuracy on the held-out test split.
Downloads · 30 days
6
2% of all-time downloads
All-time downloads
249
Public
Parameters
85.8M
1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors343 MB · 100%
From the Hugging Face model README
Vision Transformer ViT-B/16 fine-tuned on the Stanford 40 Actions dataset for action recognition in still images.
This model reaches 91.5% accuracy on the held-out test split.
google/vit-base-patch16-224-in21kapplauding, rowing a boat, texting message)from PIL import Image
import requests
from transformers import AutoImageProcessor, AutoModelForImageClassification
model_id = "lucasddmc/vit-b16-stanford40-actions"
processor = AutoImageProcessor.from_pretrained(model_id)
model = AutoModelForImageClassification.from_pretrained(model_id)
url = "https://example.com/some_action_image.jpg"
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
predicted_class_idx = logits.argmax(-1).item()
print(model.config.id2label[predicted_class_idx])
1e-5–3e-51e-4–3e-40.01–0.05Update these values with the exact numbers from your experiment.
| Split | Metric | Value |
|---|---|---|
| Test | Accuracy | 0.915 |
Intended uses
Limitations
If you use this model, please cite the dataset:
@INPROCEEDINGS{6126386,
author={Yao, Bangpeng and Jiang, Xiaoye and Khosla, Aditya and Lin, Andy Lai and Guibas, Leonidas and Fei-Fei, Li},
booktitle={2011 International Conference on Computer Vision},
title={Human action recognition by learning bases of action attributes and parts},
year={2011},
volume={},
number={},
pages={1331-1338},
keywords={Humans;Detectors;Image reconstruction;Vectors;Feature extraction;Noise;Image recognition},
doi={10.1109/ICCV.2011.6126386}
}
And this model's page on Hugging Face:
@misc{vit_b16_stanford40_actions,
title={ViT-B/16 fine-tuned on Stanford 40 Actions},
author={Lucas Dantas de Moura Carvalho},
year={2025},
howpublished={\url{https://huggingface.co/lucasddmc/vit-b16-stanford40-actions}}
}