muqtadar commited on
Commit
3254ebf
·
1 Parent(s): c9681b5

Upload 5 files

Browse files
Files changed (5) hide show
  1. README.md +57 -0
  2. config.json +42 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +22 -0
  5. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - pytorch
5
+ - huggingpics
6
+ metrics:
7
+ - accuracy
8
+
9
+ model-index:
10
+ - name: face-characteristics
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.5703703761100769
19
+ ---
20
+
21
+ # face-characteristics
22
+
23
+
24
+ Classify face images for acne, wrinkles, and skin pigmentation
25
+
26
+
27
+
28
+ ## Example Images
29
+
30
+
31
+ #### acne
32
+
33
+ ![acne](images/acne.jpg)
34
+
35
+ #### eyes dark circles
36
+
37
+ ![eyes dark circles](images/eyes_dark_circles.jpg)
38
+
39
+ #### puffy eyes
40
+
41
+ ![puffy eyes](images/puffy_eyes.jpg)
42
+
43
+ #### skin pigmentation
44
+
45
+ ![skin pigmentation](images/skin_pigmentation.jpg)
46
+
47
+ #### skin redness
48
+
49
+ ![skin redness](images/skin_redness.jpg)
50
+
51
+ #### skin texture
52
+
53
+ ![skin texture](images/skin_texture.jpg)
54
+
55
+ #### wrinkled face
56
+
57
+ ![wrinkled face](images/wrinkled_face.jpg)
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
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "acne",
13
+ "1": "eyes dark circles",
14
+ "2": "puffy eyes",
15
+ "3": "skin pigmentation",
16
+ "4": "skin redness",
17
+ "5": "skin texture",
18
+ "6": "wrinkled face"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "acne": "0",
25
+ "eyes dark circles": "1",
26
+ "puffy eyes": "2",
27
+ "skin pigmentation": "3",
28
+ "skin redness": "4",
29
+ "skin texture": "5",
30
+ "wrinkled face": "6"
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.30.2"
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cce12538350687ecb37adfaedc1362d0df538e8f4a22769eb70664da0f7be3d8
3
+ size 343239356
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:523bea7175f99c9adfddf23d118a9bf566c87e888c578afcc6ba73d3a74ba503
3
+ size 343281325