Model save
Browse files- README.md +5 -6
- all_results.json +13 -0
- eval_results.json +8 -0
- model.safetensors +1 -1
- runs/Dec31_08-02-30_3dcd8bc8b582/events.out.tfevents.1735632318.3dcd8bc8b582.519.4 +3 -0
- runs/Dec31_08-29-18_3dcd8bc8b582/events.out.tfevents.1735633761.3dcd8bc8b582.13439.0 +3 -0
- runs/Dec31_08-31-31_3dcd8bc8b582/events.out.tfevents.1735633894.3dcd8bc8b582.14185.0 +3 -0
- train_results.json +8 -0
- trainer_state.json +137 -0
- training_args.bin +1 -1
README.md
CHANGED
@@ -23,7 +23,7 @@ model-index:
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
-
value: 0
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
33 |
|
34 |
This model is a fine-tuned version of [umm-maybe/AI-image-detector](https://huggingface.co/umm-maybe/AI-image-detector) on the imagefolder dataset.
|
35 |
It achieves the following results on the evaluation set:
|
36 |
-
- Loss: 0.
|
37 |
-
- Accuracy: 0
|
38 |
|
39 |
## Model description
|
40 |
|
@@ -59,15 +59,14 @@ The following hyperparameters were used during training:
|
|
59 |
- seed: 42
|
60 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
61 |
- lr_scheduler_type: linear
|
62 |
-
- num_epochs:
|
63 |
- mixed_precision_training: Native AMP
|
64 |
|
65 |
### Training results
|
66 |
|
67 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
69 |
-
| 0.
|
70 |
-
| 0.0007 | 4.5455 | 100 | 0.2560 | 0.9587 |
|
71 |
|
72 |
|
73 |
### Framework versions
|
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
+
value: 1.0
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
33 |
|
34 |
This model is a fine-tuned version of [umm-maybe/AI-image-detector](https://huggingface.co/umm-maybe/AI-image-detector) on the imagefolder dataset.
|
35 |
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.0001
|
37 |
+
- Accuracy: 1.0
|
38 |
|
39 |
## Model description
|
40 |
|
|
|
59 |
- seed: 42
|
60 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
61 |
- lr_scheduler_type: linear
|
62 |
+
- num_epochs: 3
|
63 |
- mixed_precision_training: Native AMP
|
64 |
|
65 |
### Training results
|
66 |
|
67 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
69 |
+
| 0.0009 | 2.2727 | 50 | 0.0001 | 1.0 |
|
|
|
70 |
|
71 |
|
72 |
### Framework versions
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"eval_accuracy": 0.9586776859504132,
|
4 |
+
"eval_loss": 0.22044861316680908,
|
5 |
+
"eval_runtime": 1.7849,
|
6 |
+
"eval_samples_per_second": 67.79,
|
7 |
+
"eval_steps_per_second": 8.964,
|
8 |
+
"total_flos": 2.663748891353088e+17,
|
9 |
+
"train_loss": 0.05316784412346103,
|
10 |
+
"train_runtime": 106.9013,
|
11 |
+
"train_samples_per_second": 31.805,
|
12 |
+
"train_steps_per_second": 1.029
|
13 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"eval_accuracy": 0.9586776859504132,
|
4 |
+
"eval_loss": 0.22044861316680908,
|
5 |
+
"eval_runtime": 1.7849,
|
6 |
+
"eval_samples_per_second": 67.79,
|
7 |
+
"eval_steps_per_second": 8.964
|
8 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 347498816
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56d3f70bc13428ce7fcf6fc08ebcd51f6a472e32692d2b0534a7f0b3d14c2990
|
3 |
size 347498816
|
runs/Dec31_08-02-30_3dcd8bc8b582/events.out.tfevents.1735632318.3dcd8bc8b582.519.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7f1c69c68d98e911f5ef4f4b926c89ceaefd859e75ed3307ac51ff624ba7e881
|
3 |
+
size 405
|
runs/Dec31_08-29-18_3dcd8bc8b582/events.out.tfevents.1735633761.3dcd8bc8b582.13439.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:92d72d2f5e357b79304c4b597d51188e064c619cd189db98e5cabac9b2cdb8e1
|
3 |
+
size 7493
|
runs/Dec31_08-31-31_3dcd8bc8b582/events.out.tfevents.1735633894.3dcd8bc8b582.14185.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a61312689d9ba5c5c3627ec2f0a6746f31dcc166add43ef27dbad299d2e54ad8
|
3 |
+
size 7427
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"total_flos": 2.663748891353088e+17,
|
4 |
+
"train_loss": 0.05316784412346103,
|
5 |
+
"train_runtime": 106.9013,
|
6 |
+
"train_samples_per_second": 31.805,
|
7 |
+
"train_steps_per_second": 1.029
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.1993160843849182,
|
3 |
+
"best_model_checkpoint": "finetuned-ai-real-swin/checkpoint-50",
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 50,
|
6 |
+
"global_step": 110,
|
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.45454545454545453,
|
13 |
+
"grad_norm": 0.0013060887577012181,
|
14 |
+
"learning_rate": 0.00018545454545454545,
|
15 |
+
"loss": 0.2915,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.9090909090909091,
|
20 |
+
"grad_norm": 0.018985752016305923,
|
21 |
+
"learning_rate": 0.00016727272727272728,
|
22 |
+
"loss": 0.0872,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.3636363636363638,
|
27 |
+
"grad_norm": 3.094077328569256e-05,
|
28 |
+
"learning_rate": 0.0001490909090909091,
|
29 |
+
"loss": 0.0103,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.8181818181818183,
|
34 |
+
"grad_norm": 1.7741825580596924,
|
35 |
+
"learning_rate": 0.00013090909090909093,
|
36 |
+
"loss": 0.0615,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 2.2727272727272725,
|
41 |
+
"grad_norm": 0.0014310627011582255,
|
42 |
+
"learning_rate": 0.00011272727272727272,
|
43 |
+
"loss": 0.0133,
|
44 |
+
"step": 50
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 2.2727272727272725,
|
48 |
+
"eval_accuracy": 0.9834710743801653,
|
49 |
+
"eval_loss": 0.1993160843849182,
|
50 |
+
"eval_runtime": 1.6646,
|
51 |
+
"eval_samples_per_second": 72.69,
|
52 |
+
"eval_steps_per_second": 9.612,
|
53 |
+
"step": 50
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 2.7272727272727275,
|
57 |
+
"grad_norm": 0.028763145208358765,
|
58 |
+
"learning_rate": 9.454545454545455e-05,
|
59 |
+
"loss": 0.0267,
|
60 |
+
"step": 60
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"epoch": 3.1818181818181817,
|
64 |
+
"grad_norm": 0.3835113048553467,
|
65 |
+
"learning_rate": 7.636363636363637e-05,
|
66 |
+
"loss": 0.0458,
|
67 |
+
"step": 70
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"epoch": 3.6363636363636362,
|
71 |
+
"grad_norm": 0.016482913866639137,
|
72 |
+
"learning_rate": 5.818181818181818e-05,
|
73 |
+
"loss": 0.0047,
|
74 |
+
"step": 80
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 4.090909090909091,
|
78 |
+
"grad_norm": 0.0009892478119581938,
|
79 |
+
"learning_rate": 4e-05,
|
80 |
+
"loss": 0.0001,
|
81 |
+
"step": 90
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 4.545454545454545,
|
85 |
+
"grad_norm": 0.0006707807769998908,
|
86 |
+
"learning_rate": 2.1818181818181818e-05,
|
87 |
+
"loss": 0.0007,
|
88 |
+
"step": 100
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 4.545454545454545,
|
92 |
+
"eval_accuracy": 0.9586776859504132,
|
93 |
+
"eval_loss": 0.25598978996276855,
|
94 |
+
"eval_runtime": 2.0569,
|
95 |
+
"eval_samples_per_second": 58.827,
|
96 |
+
"eval_steps_per_second": 7.779,
|
97 |
+
"step": 100
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"epoch": 5.0,
|
101 |
+
"grad_norm": 13.271048545837402,
|
102 |
+
"learning_rate": 3.636363636363636e-06,
|
103 |
+
"loss": 0.0432,
|
104 |
+
"step": 110
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 5.0,
|
108 |
+
"step": 110,
|
109 |
+
"total_flos": 2.663748891353088e+17,
|
110 |
+
"train_loss": 0.05316784412346103,
|
111 |
+
"train_runtime": 106.9013,
|
112 |
+
"train_samples_per_second": 31.805,
|
113 |
+
"train_steps_per_second": 1.029
|
114 |
+
}
|
115 |
+
],
|
116 |
+
"logging_steps": 10,
|
117 |
+
"max_steps": 110,
|
118 |
+
"num_input_tokens_seen": 0,
|
119 |
+
"num_train_epochs": 5,
|
120 |
+
"save_steps": 100,
|
121 |
+
"stateful_callbacks": {
|
122 |
+
"TrainerControl": {
|
123 |
+
"args": {
|
124 |
+
"should_epoch_stop": false,
|
125 |
+
"should_evaluate": false,
|
126 |
+
"should_log": false,
|
127 |
+
"should_save": true,
|
128 |
+
"should_training_stop": true
|
129 |
+
},
|
130 |
+
"attributes": {}
|
131 |
+
}
|
132 |
+
},
|
133 |
+
"total_flos": 2.663748891353088e+17,
|
134 |
+
"train_batch_size": 32,
|
135 |
+
"trial_name": null,
|
136 |
+
"trial_params": null
|
137 |
+
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5304
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2b65e74682131468fa2d5609238fbb268468f3dbf38eb1c751b2c6e50ee26fc
|
3 |
size 5304
|