Rajaram1996
commited on
Commit
•
be2a634
1
Parent(s):
2ce5244
commit files to HF hub
Browse files- .gitattributes +1 -0
- README.md +26 -0
- config.json +42 -0
- preprocessor_config.json +17 -0
- pytorch_model.bin +3 -0
.gitattributes
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- pytorch
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
|
8 |
+
model-index:
|
9 |
+
- name: FacialEmoRecog
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
name: Emotion recognition as Image Classification
|
13 |
+
type: image-classification
|
14 |
+
metrics:
|
15 |
+
- name: Accuracy
|
16 |
+
type: accuracy
|
17 |
+
value: 0.9189583659172058
|
18 |
+
---
|
19 |
+
|
20 |
+
# FacialEmoRecog
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
Create your own image classifier for **anything** by running this repo
|
25 |
+
|
26 |
+
## Example Images
|
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"hidden_act": "gelu",
|
8 |
+
"hidden_dropout_prob": 0.0,
|
9 |
+
"hidden_size": 768,
|
10 |
+
"id2label": {
|
11 |
+
"0": "anger",
|
12 |
+
"1": "contempt",
|
13 |
+
"2": "disgust",
|
14 |
+
"3": "fear",
|
15 |
+
"4": "happy",
|
16 |
+
"5": "neutral",
|
17 |
+
"6": "sadness",
|
18 |
+
"7": "surprise"
|
19 |
+
},
|
20 |
+
"image_size": 224,
|
21 |
+
"initializer_range": 0.02,
|
22 |
+
"intermediate_size": 3072,
|
23 |
+
"label2id": {
|
24 |
+
"anger": "0",
|
25 |
+
"contempt": "1",
|
26 |
+
"disgust": "2",
|
27 |
+
"fear": "3",
|
28 |
+
"happy": "4",
|
29 |
+
"neutral": "5",
|
30 |
+
"sadness": "6",
|
31 |
+
"surprise": "7"
|
32 |
+
},
|
33 |
+
"layer_norm_eps": 1e-12,
|
34 |
+
"model_type": "vit",
|
35 |
+
"num_attention_heads": 12,
|
36 |
+
"num_channels": 3,
|
37 |
+
"num_hidden_layers": 12,
|
38 |
+
"patch_size": 16,
|
39 |
+
"qkv_bias": true,
|
40 |
+
"torch_dtype": "float32",
|
41 |
+
"transformers_version": "4.12.0.dev0"
|
42 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_std": [
|
11 |
+
0.5,
|
12 |
+
0.5,
|
13 |
+
0.5
|
14 |
+
],
|
15 |
+
"resample": 2,
|
16 |
+
"size": 224
|
17 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66e39e730324ea3494d76fe134f30b2bd3190db295d8476d20ace0a82cb7474e
|
3 |
+
size 343295473
|