dima806 commited on
Commit
2a5ccc5
1 Parent(s): 23c2a7b

Upload folder using huggingface_hub

Browse files
checkpoint-1926/config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/face_obstruction_image_detection",
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": "sunglasses",
13
+ "1": "glasses",
14
+ "2": "other",
15
+ "3": "mask",
16
+ "4": "hand",
17
+ "5": "none"
18
+ },
19
+ "image_size": 224,
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "glasses": 1,
24
+ "hand": 4,
25
+ "mask": 3,
26
+ "none": 5,
27
+ "other": 2,
28
+ "sunglasses": 0
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "model_type": "vit",
32
+ "num_attention_heads": 12,
33
+ "num_channels": 3,
34
+ "num_hidden_layers": 12,
35
+ "patch_size": 16,
36
+ "problem_type": "single_label_classification",
37
+ "qkv_bias": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.38.2"
40
+ }
checkpoint-1926/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:966861f4b26a4a45abf67ce6a9c22c7baca0d4ea2b29e4ae42eb0b4311d45e7c
3
+ size 343236280
checkpoint-1926/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7a6f381371930ea51488d3143d2f2d0b31c63cd905200370a275330b0196504
3
+ size 686593029
checkpoint-1926/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": "ViTImageProcessor",
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
+ }
checkpoint-1926/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:774ba42f458e6e71f488393478424f1e1e0120d70ebc9e07ec40ebf8ba60894f
3
+ size 14575
checkpoint-1926/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:465b81a153ac50bfb3fa971fc02c8c2c3de31ff64f5e670222a7c78367187973
3
+ size 627
checkpoint-1926/trainer_state.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.15468618273735046,
3
+ "best_model_checkpoint": "face_obstruction_image_detection/checkpoint-1926",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1926,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.52,
13
+ "grad_norm": 1.4264971017837524,
14
+ "learning_rate": 1.6829869672419866e-06,
15
+ "loss": 0.1533,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.9080946814728229,
21
+ "eval_loss": 0.15748558938503265,
22
+ "eval_runtime": 302.4883,
23
+ "eval_samples_per_second": 67.877,
24
+ "eval_steps_per_second": 8.486,
25
+ "step": 963
26
+ },
27
+ {
28
+ "epoch": 1.04,
29
+ "grad_norm": 0.9717573523521423,
30
+ "learning_rate": 1.3307502641775271e-06,
31
+ "loss": 0.1584,
32
+ "step": 1000
33
+ },
34
+ {
35
+ "epoch": 1.56,
36
+ "grad_norm": 2.5831546783447266,
37
+ "learning_rate": 9.785135611130679e-07,
38
+ "loss": 0.1512,
39
+ "step": 1500
40
+ },
41
+ {
42
+ "epoch": 2.0,
43
+ "eval_accuracy": 0.9082894993181375,
44
+ "eval_loss": 0.15468618273735046,
45
+ "eval_runtime": 301.6722,
46
+ "eval_samples_per_second": 68.061,
47
+ "eval_steps_per_second": 8.509,
48
+ "step": 1926
49
+ }
50
+ ],
51
+ "logging_steps": 500,
52
+ "max_steps": 2889,
53
+ "num_input_tokens_seen": 0,
54
+ "num_train_epochs": 3,
55
+ "save_steps": 500,
56
+ "total_flos": 4.773367714905539e+18,
57
+ "train_batch_size": 32,
58
+ "trial_name": null,
59
+ "trial_params": null
60
+ }
checkpoint-1926/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b811b923062d82174ab873f61a286bf9dbfcec2ac1483f9ab579263142ebd908
3
+ size 4411
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -36,5 +36,5 @@
36
  "problem_type": "single_label_classification",
37
  "qkv_bias": true,
38
  "torch_dtype": "float32",
39
- "transformers_version": "4.34.0"
40
  }
 
1
  {
2
+ "_name_or_path": "dima806/face_obstruction_image_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
36
  "problem_type": "single_label_classification",
37
  "qkv_bias": true,
38
  "torch_dtype": "float32",
39
+ "transformers_version": "4.38.2"
40
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5be92c27b0e29e75ee75280e66ebf6075b1045951f2a739b7b78ecf782147b56
3
  size 343236280
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:966861f4b26a4a45abf67ce6a9c22c7baca0d4ea2b29e4ae42eb0b4311d45e7c
3
  size 343236280
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:441186ba0ec47e142146060acbd4fe34c142670d259df2594c861e230e6ac5c7
3
- size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b811b923062d82174ab873f61a286bf9dbfcec2ac1483f9ab579263142ebd908
3
+ size 4411