Upload folder using huggingface_hub

#1
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "mold",
13
+ "1": "non-mold"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "mold": "0",
20
+ "non-mold": "1"
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.40.1"
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7489ae55cf91a62bfb8a5f2b2921711666f55b1c1564a24e4fce8715c9bae0c3
3
+ size 343223968
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00b5f3b33d2435ee74e8fc83ab6cc443dc06c2585ca4ae5070f80278b10a6e5a
3
+ size 686563258
preprocessor_config.json ADDED
@@ -0,0 +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
+ }
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5aba58dbffb929fcbb27eb71032155754689712ba814341d707bdc236bec934e
3
+ size 13990
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:796f512264f43437ccede1820d72fef9d262ff57f264f15ae146266fb19ca5fc
3
+ size 1064
trainer_state.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.21865835785865784,
3
+ "best_model_checkpoint": "./vit-strawberries/checkpoint-80",
4
+ "epoch": 16.0,
5
+ "eval_steps": 40,
6
+ "global_step": 80,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 2.0,
13
+ "grad_norm": 0.7542967796325684,
14
+ "learning_rate": 0.00018181818181818183,
15
+ "loss": 0.4054,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 4.0,
20
+ "grad_norm": 0.1642914116382599,
21
+ "learning_rate": 0.00016363636363636366,
22
+ "loss": 0.0477,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 6.0,
27
+ "grad_norm": 0.09644770622253418,
28
+ "learning_rate": 0.00014545454545454546,
29
+ "loss": 0.0222,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 8.0,
34
+ "grad_norm": 0.0752597227692604,
35
+ "learning_rate": 0.00012727272727272728,
36
+ "loss": 0.0107,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 8.0,
41
+ "eval_accuracy": 0.8846153846153846,
42
+ "eval_loss": 0.38944709300994873,
43
+ "eval_runtime": 33.1468,
44
+ "eval_samples_per_second": 0.784,
45
+ "eval_steps_per_second": 0.121,
46
+ "step": 40
47
+ },
48
+ {
49
+ "epoch": 10.0,
50
+ "grad_norm": 0.0672512948513031,
51
+ "learning_rate": 0.00010909090909090909,
52
+ "loss": 0.0085,
53
+ "step": 50
54
+ },
55
+ {
56
+ "epoch": 12.0,
57
+ "grad_norm": 0.055992938578128815,
58
+ "learning_rate": 9.090909090909092e-05,
59
+ "loss": 0.0073,
60
+ "step": 60
61
+ },
62
+ {
63
+ "epoch": 14.0,
64
+ "grad_norm": 0.05227123200893402,
65
+ "learning_rate": 7.272727272727273e-05,
66
+ "loss": 0.0066,
67
+ "step": 70
68
+ },
69
+ {
70
+ "epoch": 16.0,
71
+ "grad_norm": 0.05070338025689125,
72
+ "learning_rate": 5.4545454545454546e-05,
73
+ "loss": 0.0061,
74
+ "step": 80
75
+ },
76
+ {
77
+ "epoch": 16.0,
78
+ "eval_accuracy": 0.9230769230769231,
79
+ "eval_loss": 0.21865835785865784,
80
+ "eval_runtime": 16.5967,
81
+ "eval_samples_per_second": 1.567,
82
+ "eval_steps_per_second": 0.241,
83
+ "step": 80
84
+ }
85
+ ],
86
+ "logging_steps": 10,
87
+ "max_steps": 110,
88
+ "num_input_tokens_seen": 0,
89
+ "num_train_epochs": 22,
90
+ "save_steps": 40,
91
+ "total_flos": 9.175051570367693e+16,
92
+ "train_batch_size": 16,
93
+ "trial_name": null,
94
+ "trial_params": null
95
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:033af3b41de5a2817fdad27061edcb9c39c71359cc2e93d3d76aa79b046908db
3
+ size 4984