crangana commited on
Commit
a43ffcf
1 Parent(s): d2c589b

Upload . with huggingface_hub (#1)

Browse files

- Upload . with huggingface_hub (dfcd5648af440b88a064691d465ef73c5cb827e5)

all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.0,
3
+ "total_flos": 8.214150899146752e+16,
4
+ "train_loss": 0.40679071054739113,
5
+ "train_runtime": 2327.5838,
6
+ "train_samples_per_second": 0.455,
7
+ "train_steps_per_second": 0.029
8
+ }
checkpoint-40/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": "Defective",
13
+ "1": "Non-defective"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "Defective": "0",
20
+ "Non-defective": "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.27.4"
32
+ }
checkpoint-40/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f81236850579a0147c9320604c1a7461c8102f061af2807a6d360ff08fa0510
3
+ size 686513093
checkpoint-40/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
+ }
checkpoint-40/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0638e0532ca00bba573a77760e4624ee9ed301ee464b63e51f74759519ee16b1
3
+ size 343265965
checkpoint-40/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82977179d430821bc5ad62c4dad438b40ff2cfe3c37564615b0628f6185da60a
3
+ size 13553
checkpoint-40/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9843118d947936e2fa0dcdba380cf69e586574c7b05ca553039d86e2d8764c1f
3
+ size 627
checkpoint-40/trainer_state.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.4781739413738251,
3
+ "best_model_checkpoint": "./vit-base-beans/checkpoint-40",
4
+ "epoch": 2.3529411764705883,
5
+ "global_step": 40,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.59,
12
+ "learning_rate": 0.00017058823529411766,
13
+ "loss": 0.5982,
14
+ "step": 10
15
+ },
16
+ {
17
+ "epoch": 1.18,
18
+ "learning_rate": 0.0001411764705882353,
19
+ "loss": 0.6008,
20
+ "step": 20
21
+ },
22
+ {
23
+ "epoch": 1.76,
24
+ "learning_rate": 0.00011176470588235294,
25
+ "loss": 0.4487,
26
+ "step": 30
27
+ },
28
+ {
29
+ "epoch": 2.35,
30
+ "learning_rate": 8.23529411764706e-05,
31
+ "loss": 0.3114,
32
+ "step": 40
33
+ },
34
+ {
35
+ "epoch": 2.35,
36
+ "eval_accuracy": 0.7662337662337663,
37
+ "eval_loss": 0.4781739413738251,
38
+ "eval_runtime": 52.1383,
39
+ "eval_samples_per_second": 1.477,
40
+ "eval_steps_per_second": 0.192,
41
+ "step": 40
42
+ }
43
+ ],
44
+ "max_steps": 68,
45
+ "num_train_epochs": 4,
46
+ "total_flos": 4.850998549873459e+16,
47
+ "trial_name": null,
48
+ "trial_params": null
49
+ }
checkpoint-40/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5ad212fea6a55b0d086733d3497780fa5447df53b6c4df3dbbd142c4a891c44
3
+ size 3515
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": "Defective",
13
+ "1": "Non-defective"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "Defective": "0",
20
+ "Non-defective": "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.27.4"
32
+ }
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:0638e0532ca00bba573a77760e4624ee9ed301ee464b63e51f74759519ee16b1
3
+ size 343265965
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.0,
3
+ "total_flos": 8.214150899146752e+16,
4
+ "train_loss": 0.40679071054739113,
5
+ "train_runtime": 2327.5838,
6
+ "train_samples_per_second": 0.455,
7
+ "train_steps_per_second": 0.029
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.4781739413738251,
3
+ "best_model_checkpoint": "./vit-base-beans/checkpoint-40",
4
+ "epoch": 4.0,
5
+ "global_step": 68,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.59,
12
+ "learning_rate": 0.00017058823529411766,
13
+ "loss": 0.5982,
14
+ "step": 10
15
+ },
16
+ {
17
+ "epoch": 1.18,
18
+ "learning_rate": 0.0001411764705882353,
19
+ "loss": 0.6008,
20
+ "step": 20
21
+ },
22
+ {
23
+ "epoch": 1.76,
24
+ "learning_rate": 0.00011176470588235294,
25
+ "loss": 0.4487,
26
+ "step": 30
27
+ },
28
+ {
29
+ "epoch": 2.35,
30
+ "learning_rate": 8.23529411764706e-05,
31
+ "loss": 0.3114,
32
+ "step": 40
33
+ },
34
+ {
35
+ "epoch": 2.35,
36
+ "eval_accuracy": 0.7662337662337663,
37
+ "eval_loss": 0.4781739413738251,
38
+ "eval_runtime": 52.1383,
39
+ "eval_samples_per_second": 1.477,
40
+ "eval_steps_per_second": 0.192,
41
+ "step": 40
42
+ },
43
+ {
44
+ "epoch": 2.94,
45
+ "learning_rate": 5.294117647058824e-05,
46
+ "loss": 0.4238,
47
+ "step": 50
48
+ },
49
+ {
50
+ "epoch": 3.53,
51
+ "learning_rate": 2.3529411764705884e-05,
52
+ "loss": 0.249,
53
+ "step": 60
54
+ },
55
+ {
56
+ "epoch": 4.0,
57
+ "step": 68,
58
+ "total_flos": 8.214150899146752e+16,
59
+ "train_loss": 0.40679071054739113,
60
+ "train_runtime": 2327.5838,
61
+ "train_samples_per_second": 0.455,
62
+ "train_steps_per_second": 0.029
63
+ }
64
+ ],
65
+ "max_steps": 68,
66
+ "num_train_epochs": 4,
67
+ "total_flos": 8.214150899146752e+16,
68
+ "trial_name": null,
69
+ "trial_params": null
70
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5ad212fea6a55b0d086733d3497780fa5447df53b6c4df3dbbd142c4a891c44
3
+ size 3515