sgdkn commited on
Commit
9843b83
·
1 Parent(s): 2d67bc3

commit files to HF hub

Browse files
.gitattributes CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  images/female.jpg filter=lfs diff=lfs merge=lfs -text
37
  images/male.jpg filter=lfs diff=lfs merge=lfs -text
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  images/female.jpg filter=lfs diff=lfs merge=lfs -text
37
  images/male.jpg filter=lfs diff=lfs merge=lfs -text
38
+ images/child.jpg filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -7,7 +7,7 @@ metrics:
7
  - accuracy
8
 
9
  model-index:
10
- - name: gender-classification-hp
11
  results:
12
  - task:
13
  name: Image Classification
@@ -15,10 +15,10 @@ model-index:
15
  metrics:
16
  - name: Accuracy
17
  type: accuracy
18
- value: 0.7333333492279053
19
  ---
20
 
21
- # gender-classification-hp
22
 
23
 
24
  Autogenerated by HuggingPics🤗🖼️
@@ -31,6 +31,10 @@ Report any issues with the demo at the [github repo](https://github.com/nateraw/
31
  ## Example Images
32
 
33
 
 
 
 
 
34
  #### female
35
 
36
  ![female](images/female.jpg)
 
7
  - accuracy
8
 
9
  model-index:
10
+ - name: sgdkn/gender-classification-hp
11
  results:
12
  - task:
13
  name: Image Classification
 
15
  metrics:
16
  - name: Accuracy
17
  type: accuracy
18
+ value: 0.7611940503120422
19
  ---
20
 
21
+ # sgdkn/gender-classification-hp
22
 
23
 
24
  Autogenerated by HuggingPics🤗🖼️
 
31
  ## Example Images
32
 
33
 
34
+ #### child
35
+
36
+ ![child](images/child.jpg)
37
+
38
  #### female
39
 
40
  ![female](images/female.jpg)
config.json CHANGED
@@ -1,30 +1,34 @@
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": "adult"
13
- },
14
- "image_size": 224,
15
- "initializer_range": 0.02,
16
- "intermediate_size": 3072,
17
- "label2id": {
18
- "adult": "0"
19
- },
20
- "layer_norm_eps": 1e-12,
21
- "model_type": "vit",
22
- "num_attention_heads": 12,
23
- "num_channels": 3,
24
- "num_hidden_layers": 12,
25
- "patch_size": 16,
26
- "problem_type": "regression",
27
- "qkv_bias": true,
28
- "torch_dtype": "float32",
29
- "transformers_version": "4.41.2"
30
- }
 
 
 
 
 
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": "child",
13
+ "1": "female",
14
+ "2": "male"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "child": "0",
21
+ "female": "1",
22
+ "male": "2"
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "model_type": "vit",
26
+ "num_attention_heads": 12,
27
+ "num_channels": 3,
28
+ "num_hidden_layers": 12,
29
+ "patch_size": 16,
30
+ "problem_type": "single_label_classification",
31
+ "qkv_bias": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.41.2"
34
+ }
images/child.jpg ADDED

Git LFS Details

  • SHA256: 420a0d4224d7ef96eb9acc8960e1c957de79a24f82d8a390b9f0dcfb6e2f43c8
  • Pointer size: 130 Bytes
  • Size of remote file: 29.3 kB
images/female.jpg CHANGED

Git LFS Details

  • SHA256: e09d7ea5ef0bbb260357deb104d815c3f8abedd66c1a21d205d6ef1be8c00318
  • Pointer size: 130 Bytes
  • Size of remote file: 33.3 kB

Git LFS Details

  • SHA256: 01ef3f65f13804f90e0101aad35c3ab08967a4bbabd05ecb42b24d8320a5eff2
  • Pointer size: 130 Bytes
  • Size of remote file: 51.3 kB
images/male.jpg CHANGED

Git LFS Details

  • SHA256: 86b2217117d52df69a046ea1d1815f5f186f9c6fa33c178dae3fe934e2f236ac
  • Pointer size: 130 Bytes
  • Size of remote file: 38.6 kB

Git LFS Details

  • SHA256: ad4f4cfda79fe47e01891cfcd6d9518b8cbb4e817a7b58acf6d3177065c23609
  • Pointer size: 130 Bytes
  • Size of remote file: 40.3 kB
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:13c9625ed0ca285e2081f2c15acffb9488d86c4f6633cd672f07f7b51c032d21
3
- size 343220892
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dad282bb38531a688bc8f293fb9974cef4c4e85bdf4bb6c1e91153d982c9618
3
+ size 343227052
preprocessor_config.json CHANGED
@@ -1,36 +1,36 @@
1
- {
2
- "_valid_processor_keys": [
3
- "images",
4
- "do_resize",
5
- "size",
6
- "resample",
7
- "do_rescale",
8
- "rescale_factor",
9
- "do_normalize",
10
- "image_mean",
11
- "image_std",
12
- "return_tensors",
13
- "data_format",
14
- "input_data_format"
15
- ],
16
- "do_normalize": true,
17
- "do_rescale": true,
18
- "do_resize": true,
19
- "image_mean": [
20
- 0.5,
21
- 0.5,
22
- 0.5
23
- ],
24
- "image_processor_type": "ViTFeatureExtractor",
25
- "image_std": [
26
- 0.5,
27
- 0.5,
28
- 0.5
29
- ],
30
- "resample": 2,
31
- "rescale_factor": 0.00392156862745098,
32
- "size": {
33
- "height": 224,
34
- "width": 224
35
- }
36
- }
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTFeatureExtractor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
runs/events.out.tfevents.1719287915.88d5ea954a70.428.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a63717ce72653013724a3f135820dbea730d2086ccac3de115926df3064f64d
3
+ size 1210