Instructions to use Thao2202/vit-Facial-Expression-Recognition with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thao2202/vit-Facial-Expression-Recognition with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Thao2202/vit-Facial-Expression-Recognition") 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("Thao2202/vit-Facial-Expression-Recognition") model = AutoModelForImageClassification.from_pretrained("Thao2202/vit-Facial-Expression-Recognition", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +23 -17
- all_results.json +8 -5
- eval_results.json +8 -5
README.md
CHANGED
|
@@ -5,6 +5,9 @@ tags:
|
|
| 5 |
- generated_from_trainer
|
| 6 |
metrics:
|
| 7 |
- accuracy
|
|
|
|
|
|
|
|
|
|
| 8 |
model-index:
|
| 9 |
- name: vit-Facial-Expression-Recognition
|
| 10 |
results: []
|
|
@@ -17,8 +20,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [motheecreator/vit-Facial-Expression-Recognition](https://huggingface.co/motheecreator/vit-Facial-Expression-Recognition) on the None dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
-
- Accuracy: 0.
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
## Model description
|
| 24 |
|
|
@@ -50,21 +56,21 @@ The following hyperparameters were used during training:
|
|
| 50 |
|
| 51 |
### Training results
|
| 52 |
|
| 53 |
-
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 54 |
-
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 55 |
-
| 4.
|
| 56 |
-
| 4.
|
| 57 |
-
| 4.
|
| 58 |
-
| 4.
|
| 59 |
-
| 4.
|
| 60 |
-
| 4.
|
| 61 |
-
| 4.
|
| 62 |
-
| 4.
|
| 63 |
-
| 4.
|
| 64 |
-
| 4.
|
| 65 |
-
| 4.
|
| 66 |
-
| 4.
|
| 67 |
-
| 3.
|
| 68 |
|
| 69 |
|
| 70 |
### Framework versions
|
|
|
|
| 5 |
- generated_from_trainer
|
| 6 |
metrics:
|
| 7 |
- accuracy
|
| 8 |
+
- f1
|
| 9 |
+
- precision
|
| 10 |
+
- recall
|
| 11 |
model-index:
|
| 12 |
- name: vit-Facial-Expression-Recognition
|
| 13 |
results: []
|
|
|
|
| 20 |
|
| 21 |
This model is a fine-tuned version of [motheecreator/vit-Facial-Expression-Recognition](https://huggingface.co/motheecreator/vit-Facial-Expression-Recognition) on the None dataset.
|
| 22 |
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.3658
|
| 24 |
+
- Accuracy: 0.8753
|
| 25 |
+
- F1: 0.8737
|
| 26 |
+
- Precision: 0.8749
|
| 27 |
+
- Recall: 0.8753
|
| 28 |
|
| 29 |
## Model description
|
| 30 |
|
|
|
|
| 56 |
|
| 57 |
### Training results
|
| 58 |
|
| 59 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
| 60 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
| 61 |
+
| 4.5618 | 0.2164 | 100 | 0.3710 | 0.8762 | 0.8746 | 0.8752 | 0.8762 |
|
| 62 |
+
| 4.6091 | 0.4328 | 200 | 0.3677 | 0.8761 | 0.8747 | 0.8762 | 0.8761 |
|
| 63 |
+
| 4.5423 | 0.6492 | 300 | 0.3695 | 0.8748 | 0.8730 | 0.8745 | 0.8748 |
|
| 64 |
+
| 4.6307 | 0.8656 | 400 | 0.3745 | 0.8711 | 0.8692 | 0.8730 | 0.8711 |
|
| 65 |
+
| 4.3953 | 1.0801 | 500 | 0.3745 | 0.8727 | 0.8711 | 0.8724 | 0.8727 |
|
| 66 |
+
| 4.341 | 1.2965 | 600 | 0.3803 | 0.8688 | 0.8674 | 0.8688 | 0.8688 |
|
| 67 |
+
| 4.5471 | 1.5128 | 700 | 0.3841 | 0.8713 | 0.8699 | 0.8710 | 0.8713 |
|
| 68 |
+
| 4.522 | 1.7292 | 800 | 0.3836 | 0.8679 | 0.8662 | 0.8678 | 0.8679 |
|
| 69 |
+
| 4.5596 | 1.9456 | 900 | 0.3885 | 0.8672 | 0.8649 | 0.8678 | 0.8672 |
|
| 70 |
+
| 4.1491 | 2.1601 | 1000 | 0.3849 | 0.8691 | 0.8677 | 0.8689 | 0.8691 |
|
| 71 |
+
| 4.1037 | 2.3765 | 1100 | 0.3906 | 0.8667 | 0.8647 | 0.8669 | 0.8667 |
|
| 72 |
+
| 4.0033 | 2.5929 | 1200 | 0.3784 | 0.8704 | 0.8687 | 0.8699 | 0.8704 |
|
| 73 |
+
| 3.9759 | 2.8093 | 1300 | 0.3677 | 0.8752 | 0.8737 | 0.8747 | 0.8752 |
|
| 74 |
|
| 75 |
|
| 76 |
### Framework versions
|
all_results.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 2.995401677035434,
|
| 3 |
-
"eval_accuracy": 0.
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 2.995401677035434,
|
| 3 |
+
"eval_accuracy": 0.8752789989854582,
|
| 4 |
+
"eval_f1": 0.8737068810871955,
|
| 5 |
+
"eval_loss": 0.36578133702278137,
|
| 6 |
+
"eval_precision": 0.8748779898220497,
|
| 7 |
+
"eval_recall": 0.8752789989854582,
|
| 8 |
+
"eval_runtime": 349.2694,
|
| 9 |
+
"eval_samples_per_second": 84.662,
|
| 10 |
+
"eval_steps_per_second": 2.648
|
| 11 |
}
|
eval_results.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 2.995401677035434,
|
| 3 |
-
"eval_accuracy": 0.
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 2.995401677035434,
|
| 3 |
+
"eval_accuracy": 0.8752789989854582,
|
| 4 |
+
"eval_f1": 0.8737068810871955,
|
| 5 |
+
"eval_loss": 0.36578133702278137,
|
| 6 |
+
"eval_precision": 0.8748779898220497,
|
| 7 |
+
"eval_recall": 0.8752789989854582,
|
| 8 |
+
"eval_runtime": 349.2694,
|
| 9 |
+
"eval_samples_per_second": 84.662,
|
| 10 |
+
"eval_steps_per_second": 2.648
|
| 11 |
}
|