Image Classification
Transformers
Safetensors
PyTorch
vit
vision
facial-expression-recognition
emotion-detection
Instructions to use abhilash88/face-emotion-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abhilash88/face-emotion-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="abhilash88/face-emotion-detection") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("abhilash88/face-emotion-detection") model = AutoModelForImageClassification.from_pretrained("abhilash88/face-emotion-detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download examples/example_5_fear.jpg from abhilash88/face-emotion-detection: direct link, hf CLI and curl.
- Browser
- Download file 8.06 kB
-
https://huggingface.co/abhilash88/face-emotion-detection/resolve/b947d8e7fd5b787f3d58ce9328ed473bda3a484c/examples/example_5_fear.jpg
- Command line
-
hf download hf://abhilash88/face-emotion-detection@b947d8e7fd5b787f3d58ce9328ed473bda3a484c/examples/example_5_fear.jpg
-
curl -L -o example_5_fear.jpg https://huggingface.co/abhilash88/face-emotion-detection/resolve/b947d8e7fd5b787f3d58ce9328ed473bda3a484c/examples/example_5_fear.jpg
8.06 kB
