TTNVXX commited on
Commit
094d7df
·
verified ·
1 Parent(s): 194cbd9

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - image-classification
6
+ widget:
7
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
8
+ example_title: Tiger
9
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
10
+ example_title: Teapot
11
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
12
+ example_title: Palace
13
+ datasets:
14
+ - autotrain-oaqu7-o86bm/autotrain-data
15
+ ---
16
+
17
+ # Model Trained Using AutoTrain
18
+
19
+ - Problem type: Image Classification
20
+
21
+ ## Validation Metricsg
22
+ loss: 0.039548490196466446
23
+
24
+ f1: 0.9896907216494846
25
+
26
+ precision: 1.0
27
+
28
+ recall: 0.9795918367346939
29
+
30
+ auc: 0.9991376832423111
31
+
32
+ accuracy: 0.9916666666666667
checkpoint-60/config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "umm-maybe/AI-image-detector",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "SwinForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "depths": [
9
+ 2,
10
+ 2,
11
+ 18,
12
+ 2
13
+ ],
14
+ "drop_path_rate": 0.1,
15
+ "embed_dim": 128,
16
+ "encoder_stride": 32,
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.0,
19
+ "hidden_size": 1024,
20
+ "id2label": {
21
+ "0": "cartoon",
22
+ "1": "not_cartoon"
23
+ },
24
+ "image_size": 224,
25
+ "initializer_range": 0.02,
26
+ "label2id": {
27
+ "cartoon": 0,
28
+ "not_cartoon": 1
29
+ },
30
+ "layer_norm_eps": 1e-05,
31
+ "max_length": 128,
32
+ "mlp_ratio": 4.0,
33
+ "model_type": "swin",
34
+ "num_channels": 3,
35
+ "num_heads": [
36
+ 4,
37
+ 8,
38
+ 16,
39
+ 32
40
+ ],
41
+ "num_layers": 4,
42
+ "out_features": [
43
+ "stage4"
44
+ ],
45
+ "out_indices": [
46
+ 4
47
+ ],
48
+ "padding": "max_length",
49
+ "patch_size": 4,
50
+ "path_norm": true,
51
+ "problem_type": "single_label_classification",
52
+ "qkv_bias": true,
53
+ "stage_names": [
54
+ "stem",
55
+ "stage1",
56
+ "stage2",
57
+ "stage3",
58
+ "stage4"
59
+ ],
60
+ "torch_dtype": "float32",
61
+ "transformers_version": "4.37.0",
62
+ "use_absolute_embeddings": false,
63
+ "window_size": 7
64
+ }
checkpoint-60/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba295b53608fe9233e7397bc433d5fde705030724334caa7425194148ae67e9d
3
+ size 347498816
checkpoint-60/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8aa653663e4b31d280960a109d3e344c84e928324737981ae9e29f33c98cfb75
3
+ size 694305741
checkpoint-60/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f926c0e6f725aeaa1bc02cf2096113ad9ff6adeed365d57d6b22b42155db252
3
+ size 13990
checkpoint-60/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39fedced5865752064ba3cea41e718fe0450ed00be16e9492f29266c83fd0e29
3
+ size 1064
checkpoint-60/trainer_state.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.039548490196466446,
3
+ "best_model_checkpoint": "autotrain-oaqu7-o86bm/checkpoint-60",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 60,
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.05,
13
+ "learning_rate": 8.333333333333334e-06,
14
+ "loss": 1.071,
15
+ "step": 3
16
+ },
17
+ {
18
+ "epoch": 0.1,
19
+ "learning_rate": 1.6666666666666667e-05,
20
+ "loss": 0.7486,
21
+ "step": 6
22
+ },
23
+ {
24
+ "epoch": 0.15,
25
+ "learning_rate": 2.5e-05,
26
+ "loss": 0.6061,
27
+ "step": 9
28
+ },
29
+ {
30
+ "epoch": 0.2,
31
+ "learning_rate": 3.3333333333333335e-05,
32
+ "loss": 0.4679,
33
+ "step": 12
34
+ },
35
+ {
36
+ "epoch": 0.25,
37
+ "learning_rate": 4.166666666666667e-05,
38
+ "loss": 0.6043,
39
+ "step": 15
40
+ },
41
+ {
42
+ "epoch": 0.3,
43
+ "learning_rate": 5e-05,
44
+ "loss": 0.3619,
45
+ "step": 18
46
+ },
47
+ {
48
+ "epoch": 0.35,
49
+ "learning_rate": 4.9074074074074075e-05,
50
+ "loss": 0.2092,
51
+ "step": 21
52
+ },
53
+ {
54
+ "epoch": 0.4,
55
+ "learning_rate": 4.814814814814815e-05,
56
+ "loss": 0.2621,
57
+ "step": 24
58
+ },
59
+ {
60
+ "epoch": 0.45,
61
+ "learning_rate": 4.722222222222222e-05,
62
+ "loss": 0.1716,
63
+ "step": 27
64
+ },
65
+ {
66
+ "epoch": 0.5,
67
+ "learning_rate": 4.62962962962963e-05,
68
+ "loss": 0.2724,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.55,
73
+ "learning_rate": 4.5370370370370374e-05,
74
+ "loss": 0.2802,
75
+ "step": 33
76
+ },
77
+ {
78
+ "epoch": 0.6,
79
+ "learning_rate": 4.4444444444444447e-05,
80
+ "loss": 0.2865,
81
+ "step": 36
82
+ },
83
+ {
84
+ "epoch": 0.65,
85
+ "learning_rate": 4.351851851851852e-05,
86
+ "loss": 0.2598,
87
+ "step": 39
88
+ },
89
+ {
90
+ "epoch": 0.7,
91
+ "learning_rate": 4.259259259259259e-05,
92
+ "loss": 0.0421,
93
+ "step": 42
94
+ },
95
+ {
96
+ "epoch": 0.75,
97
+ "learning_rate": 4.166666666666667e-05,
98
+ "loss": 0.2537,
99
+ "step": 45
100
+ },
101
+ {
102
+ "epoch": 0.8,
103
+ "learning_rate": 4.074074074074074e-05,
104
+ "loss": 0.6034,
105
+ "step": 48
106
+ },
107
+ {
108
+ "epoch": 0.85,
109
+ "learning_rate": 3.981481481481482e-05,
110
+ "loss": 0.0151,
111
+ "step": 51
112
+ },
113
+ {
114
+ "epoch": 0.9,
115
+ "learning_rate": 3.888888888888889e-05,
116
+ "loss": 0.0803,
117
+ "step": 54
118
+ },
119
+ {
120
+ "epoch": 0.95,
121
+ "learning_rate": 3.7962962962962964e-05,
122
+ "loss": 0.4133,
123
+ "step": 57
124
+ },
125
+ {
126
+ "epoch": 1.0,
127
+ "learning_rate": 3.7037037037037037e-05,
128
+ "loss": 0.2113,
129
+ "step": 60
130
+ },
131
+ {
132
+ "epoch": 1.0,
133
+ "eval_accuracy": 0.9916666666666667,
134
+ "eval_auc": 0.9991376832423111,
135
+ "eval_f1": 0.9896907216494846,
136
+ "eval_loss": 0.039548490196466446,
137
+ "eval_precision": 1.0,
138
+ "eval_recall": 0.9795918367346939,
139
+ "eval_runtime": 67.072,
140
+ "eval_samples_per_second": 1.789,
141
+ "eval_steps_per_second": 0.119,
142
+ "step": 60
143
+ }
144
+ ],
145
+ "logging_steps": 3,
146
+ "max_steps": 180,
147
+ "num_input_tokens_seen": 0,
148
+ "num_train_epochs": 3,
149
+ "save_steps": 500,
150
+ "total_flos": 3.74491755901993e+16,
151
+ "train_batch_size": 8,
152
+ "trial_name": null,
153
+ "trial_params": null
154
+ }
checkpoint-60/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:433d70fcb6f506ed6767b95378161939a803fa29247732a887cccb352bd43ea4
3
+ size 4728
config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "umm-maybe/AI-image-detector",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "SwinForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "depths": [
9
+ 2,
10
+ 2,
11
+ 18,
12
+ 2
13
+ ],
14
+ "drop_path_rate": 0.1,
15
+ "embed_dim": 128,
16
+ "encoder_stride": 32,
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.0,
19
+ "hidden_size": 1024,
20
+ "id2label": {
21
+ "0": "cartoon",
22
+ "1": "not_cartoon"
23
+ },
24
+ "image_size": 224,
25
+ "initializer_range": 0.02,
26
+ "label2id": {
27
+ "cartoon": 0,
28
+ "not_cartoon": 1
29
+ },
30
+ "layer_norm_eps": 1e-05,
31
+ "max_length": 128,
32
+ "mlp_ratio": 4.0,
33
+ "model_type": "swin",
34
+ "num_channels": 3,
35
+ "num_heads": [
36
+ 4,
37
+ 8,
38
+ 16,
39
+ 32
40
+ ],
41
+ "num_layers": 4,
42
+ "out_features": [
43
+ "stage4"
44
+ ],
45
+ "out_indices": [
46
+ 4
47
+ ],
48
+ "padding": "max_length",
49
+ "patch_size": 4,
50
+ "path_norm": true,
51
+ "problem_type": "single_label_classification",
52
+ "qkv_bias": true,
53
+ "stage_names": [
54
+ "stem",
55
+ "stage1",
56
+ "stage2",
57
+ "stage3",
58
+ "stage4"
59
+ ],
60
+ "torch_dtype": "float32",
61
+ "transformers_version": "4.37.0",
62
+ "use_absolute_embeddings": false,
63
+ "window_size": 7
64
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba295b53608fe9233e7397bc433d5fde705030724334caa7425194148ae67e9d
3
+ size 347498816
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.485,
7
+ 0.456,
8
+ 0.406
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "resample": 3,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:433d70fcb6f506ed6767b95378161939a803fa29247732a887cccb352bd43ea4
3
+ size 4728
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-oaqu7-o86bm/autotrain-data",
3
+ "model": "umm-maybe/AI-image-detector",
4
+ "username": "TTNVXX",
5
+ "lr": 5e-05,
6
+ "epochs": 3,
7
+ "batch_size": 8,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "logging_steps": -1,
18
+ "project_name": "autotrain-oaqu7-o86bm",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": null,
21
+ "save_total_limit": 1,
22
+ "save_strategy": "epoch",
23
+ "push_to_hub": true,
24
+ "repo_id": "TTNVXX/autotrain-oaqu7-o86bm",
25
+ "evaluation_strategy": "epoch",
26
+ "image_column": "autotrain_image",
27
+ "target_column": "autotrain_label",
28
+ "log": "none"
29
+ }