Commit
·
005c001
1
Parent(s):
e43d592
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ base_model: google/vit-base-patch16-224-in21k
|
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
| 7 |
-
-
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
- precision
|
|
@@ -16,8 +16,8 @@ model-index:
|
|
| 16 |
name: Image Classification
|
| 17 |
type: image-classification
|
| 18 |
dataset:
|
| 19 |
-
name:
|
| 20 |
-
type:
|
| 21 |
config: FastJobs--Visual_Emotional_Analysis
|
| 22 |
split: train
|
| 23 |
args: FastJobs--Visual_Emotional_Analysis
|
|
@@ -33,12 +33,13 @@ model-index:
|
|
| 33 |
value: 0.6712765732314218
|
| 34 |
---
|
| 35 |
|
| 36 |
-
|
| 37 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 38 |
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
-
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the image_folder dataset.
|
| 42 |
It achieves the following results on the evaluation set:
|
| 43 |
- Loss: 1.0511
|
| 44 |
- Accuracy: 0.6687
|
|
@@ -47,15 +48,26 @@ It achieves the following results on the evaluation set:
|
|
| 47 |
|
| 48 |
## Model description
|
| 49 |
|
| 50 |
-
|
|
|
|
| 51 |
|
| 52 |
-
##
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
## Training procedure
|
| 61 |
|
|
|
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
| 7 |
+
- FastJobs/Visual_Emotional_Analysis
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
- precision
|
|
|
|
| 16 |
name: Image Classification
|
| 17 |
type: image-classification
|
| 18 |
dataset:
|
| 19 |
+
name: FastJobs/Visual_Emotional_Analysis
|
| 20 |
+
type: FastJobs/Visual_Emotional_Analysis
|
| 21 |
config: FastJobs--Visual_Emotional_Analysis
|
| 22 |
split: train
|
| 23 |
args: FastJobs--Visual_Emotional_Analysis
|
|
|
|
| 33 |
value: 0.6712765732314218
|
| 34 |
---
|
| 35 |
|
| 36 |
+
# Emotion Classification
|
|
|
|
| 37 |
|
| 38 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k)
|
| 39 |
+
on the [FastJobs/Visual_Emotional_Analysis](https://huggingface.co/datasets/FastJobs/Visual_Emotional_Analysis) dataset.
|
| 40 |
+
|
| 41 |
+
In theory, the accuracy for a random guess on this dataset is 0.1429.
|
| 42 |
|
|
|
|
| 43 |
It achieves the following results on the evaluation set:
|
| 44 |
- Loss: 1.0511
|
| 45 |
- Accuracy: 0.6687
|
|
|
|
| 48 |
|
| 49 |
## Model description
|
| 50 |
|
| 51 |
+
The Vision Transformer base version trained on ImageNet-21K released by Google.
|
| 52 |
+
Further details can be found on their [repo](https://huggingface.co/google/vit-base-patch16-224-in21k).
|
| 53 |
|
| 54 |
+
## Training and evaluation data
|
| 55 |
|
| 56 |
+
### Data Split
|
| 57 |
|
| 58 |
+
Used a 4:1 ratio for training and development sets and a random seed of 42.
|
| 59 |
+
Also used a seed of 42 for batching the data, completely unrelated lol.
|
| 60 |
+
|
| 61 |
+
### Pre-processing Augmentation
|
| 62 |
+
|
| 63 |
+
The main pre-processing phase for both training and evaluation includes:
|
| 64 |
+
- Bilinear interpolation to resize the image to (224, 224, 3) because it uses ImageNet images to train the original model
|
| 65 |
+
- Normalizing images using a mean and standard deviation of [0.5, 0.5, 0.5] just like the original model
|
| 66 |
|
| 67 |
+
Other than the aforementioned pre-processing, the training set was augmented using:
|
| 68 |
+
- Random horizontal & vertical flip
|
| 69 |
+
- Color jitter
|
| 70 |
+
- Random resized crop
|
| 71 |
|
| 72 |
## Training procedure
|
| 73 |
|