Piro17/balancednumber-affecthqnet-fer2013
Viewer • Updated • 21.3k • 16
How to use Piro17/13E-affecthq-fer-balanced with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="Piro17/13E-affecthq-fer-balanced")
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("Piro17/13E-affecthq-fer-balanced")
model = AutoModelForImageClassification.from_pretrained("Piro17/13E-affecthq-fer-balanced")This model is a fine-tuned version of google/vit-base-patch16-224-in21k on Piro17/balancednumber-affecthqnet-fer2013 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 1.7863 | 1.0 | 133 | 1.7632 | 0.4005 | 0.3617 | 0.4005 | 0.3058 |
| 1.3653 | 2.0 | 266 | 1.3630 | 0.5049 | 0.4838 | 0.5049 | 0.4445 |
| 1.2468 | 3.0 | 399 | 1.2475 | 0.5466 | 0.5451 | 0.5466 | 0.5115 |
| 1.1527 | 4.0 | 532 | 1.1865 | 0.5761 | 0.5612 | 0.5761 | 0.5580 |
| 1.0862 | 5.0 | 665 | 1.1448 | 0.5785 | 0.5687 | 0.5785 | 0.5659 |
| 1.064 | 6.0 | 798 | 1.1108 | 0.5972 | 0.5867 | 0.5972 | 0.5853 |
| 1.0037 | 7.0 | 931 | 1.0969 | 0.6019 | 0.5968 | 0.6019 | 0.5946 |
| 0.9533 | 8.0 | 1064 | 1.0764 | 0.6126 | 0.6034 | 0.6126 | 0.6046 |
| 0.9063 | 9.0 | 1197 | 1.0711 | 0.6155 | 0.6035 | 0.6155 | 0.6047 |
| 0.8666 | 10.0 | 1330 | 1.0589 | 0.6173 | 0.6107 | 0.6173 | 0.6108 |
| 0.8364 | 11.0 | 1463 | 1.0556 | 0.6178 | 0.6110 | 0.6178 | 0.6108 |
| 0.8659 | 12.0 | 1596 | 1.0521 | 0.6197 | 0.6141 | 0.6197 | 0.6151 |
| 0.8383 | 13.0 | 1729 | 1.0526 | 0.6225 | 0.6161 | 0.6225 | 0.6167 |