Upload folder using huggingface_hub
Browse files- checkpoint-2250/config.json +49 -0
- checkpoint-2250/model.safetensors +3 -0
- checkpoint-2250/optimizer.pt +3 -0
- checkpoint-2250/preprocessor_config.json +22 -0
- checkpoint-2250/rng_state.pth +3 -0
- checkpoint-2250/scheduler.pt +3 -0
- checkpoint-2250/trainer_state.json +88 -0
- checkpoint-2250/training_args.bin +3 -0
- config.json +49 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
checkpoint-2250/config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-50",
|
3 |
+
"architectures": [
|
4 |
+
"ResNetForImageClassification"
|
5 |
+
],
|
6 |
+
"depths": [
|
7 |
+
3,
|
8 |
+
4,
|
9 |
+
6,
|
10 |
+
3
|
11 |
+
],
|
12 |
+
"downsample_in_bottleneck": false,
|
13 |
+
"downsample_in_first_stage": false,
|
14 |
+
"embedding_size": 64,
|
15 |
+
"hidden_act": "relu",
|
16 |
+
"hidden_sizes": [
|
17 |
+
256,
|
18 |
+
512,
|
19 |
+
1024,
|
20 |
+
2048
|
21 |
+
],
|
22 |
+
"id2label": {
|
23 |
+
"0": "REAL",
|
24 |
+
"1": "FAKE"
|
25 |
+
},
|
26 |
+
"label2id": {
|
27 |
+
"FAKE": 1,
|
28 |
+
"REAL": 0
|
29 |
+
},
|
30 |
+
"layer_type": "bottleneck",
|
31 |
+
"model_type": "resnet",
|
32 |
+
"num_channels": 3,
|
33 |
+
"out_features": [
|
34 |
+
"stage4"
|
35 |
+
],
|
36 |
+
"out_indices": [
|
37 |
+
4
|
38 |
+
],
|
39 |
+
"problem_type": "single_label_classification",
|
40 |
+
"stage_names": [
|
41 |
+
"stem",
|
42 |
+
"stage1",
|
43 |
+
"stage2",
|
44 |
+
"stage3",
|
45 |
+
"stage4"
|
46 |
+
],
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.46.3"
|
49 |
+
}
|
checkpoint-2250/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60cb3ac76199bc913a936c74165621446cbc038ddfde10c1ae78e8a35ebba32f
|
3 |
+
size 94302952
|
checkpoint-2250/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a1cada97af071dd6df0daa9112124adfee27f1201559f4aebb38da976c90323
|
3 |
+
size 188232069
|
checkpoint-2250/preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_pct": 0.875,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ConvNextImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"shortest_edge": 224
|
21 |
+
}
|
22 |
+
}
|
checkpoint-2250/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ffd6a4edabc043aea184231cb042a091d622473c70842a6969ea4d41dc49efaf
|
3 |
+
size 14575
|
checkpoint-2250/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a8faceeb061a9bdf7c8f79339a0e17d63452ad18a23b6433e51c9798503c7d0
|
3 |
+
size 627
|
checkpoint-2250/trainer_state.json
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.6752970218658447,
|
3 |
+
"best_model_checkpoint": "resnet50_4a/checkpoint-2250",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2250,
|
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.6666666666666666,
|
13 |
+
"grad_norm": 2.259565830230713,
|
14 |
+
"learning_rate": 7.954545454545454e-07,
|
15 |
+
"loss": 0.6891,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"eval_accuracy": 0.59125,
|
21 |
+
"eval_loss": 0.6828036308288574,
|
22 |
+
"eval_runtime": 217.1108,
|
23 |
+
"eval_samples_per_second": 110.543,
|
24 |
+
"eval_steps_per_second": 1.727,
|
25 |
+
"step": 750
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"epoch": 1.3333333333333333,
|
29 |
+
"grad_norm": 2.487384796142578,
|
30 |
+
"learning_rate": 5.681818181818182e-07,
|
31 |
+
"loss": 0.6834,
|
32 |
+
"step": 1000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 2.0,
|
36 |
+
"grad_norm": 2.575913906097412,
|
37 |
+
"learning_rate": 3.4090909090909085e-07,
|
38 |
+
"loss": 0.6789,
|
39 |
+
"step": 1500
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 2.0,
|
43 |
+
"eval_accuracy": 0.6325,
|
44 |
+
"eval_loss": 0.677152693271637,
|
45 |
+
"eval_runtime": 111.7965,
|
46 |
+
"eval_samples_per_second": 214.676,
|
47 |
+
"eval_steps_per_second": 3.354,
|
48 |
+
"step": 1500
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 2.6666666666666665,
|
52 |
+
"grad_norm": 2.801647663116455,
|
53 |
+
"learning_rate": 1.1363636363636363e-07,
|
54 |
+
"loss": 0.6766,
|
55 |
+
"step": 2000
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"epoch": 3.0,
|
59 |
+
"eval_accuracy": 0.6425833333333333,
|
60 |
+
"eval_loss": 0.6752970218658447,
|
61 |
+
"eval_runtime": 91.513,
|
62 |
+
"eval_samples_per_second": 262.258,
|
63 |
+
"eval_steps_per_second": 4.098,
|
64 |
+
"step": 2250
|
65 |
+
}
|
66 |
+
],
|
67 |
+
"logging_steps": 500,
|
68 |
+
"max_steps": 2250,
|
69 |
+
"num_input_tokens_seen": 0,
|
70 |
+
"num_train_epochs": 3,
|
71 |
+
"save_steps": 500,
|
72 |
+
"stateful_callbacks": {
|
73 |
+
"TrainerControl": {
|
74 |
+
"args": {
|
75 |
+
"should_epoch_stop": false,
|
76 |
+
"should_evaluate": false,
|
77 |
+
"should_log": false,
|
78 |
+
"should_save": true,
|
79 |
+
"should_training_stop": true
|
80 |
+
},
|
81 |
+
"attributes": {}
|
82 |
+
}
|
83 |
+
},
|
84 |
+
"total_flos": 6.11579618721792e+18,
|
85 |
+
"train_batch_size": 128,
|
86 |
+
"trial_name": null,
|
87 |
+
"trial_params": null
|
88 |
+
}
|
checkpoint-2250/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9753b8d6e2f075b56d0fa8347ce3965ef3d59b74ba93fe7da9f8089ac106ac46
|
3 |
+
size 4795
|
config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-50",
|
3 |
+
"architectures": [
|
4 |
+
"ResNetForImageClassification"
|
5 |
+
],
|
6 |
+
"depths": [
|
7 |
+
3,
|
8 |
+
4,
|
9 |
+
6,
|
10 |
+
3
|
11 |
+
],
|
12 |
+
"downsample_in_bottleneck": false,
|
13 |
+
"downsample_in_first_stage": false,
|
14 |
+
"embedding_size": 64,
|
15 |
+
"hidden_act": "relu",
|
16 |
+
"hidden_sizes": [
|
17 |
+
256,
|
18 |
+
512,
|
19 |
+
1024,
|
20 |
+
2048
|
21 |
+
],
|
22 |
+
"id2label": {
|
23 |
+
"0": "REAL",
|
24 |
+
"1": "FAKE"
|
25 |
+
},
|
26 |
+
"label2id": {
|
27 |
+
"FAKE": 1,
|
28 |
+
"REAL": 0
|
29 |
+
},
|
30 |
+
"layer_type": "bottleneck",
|
31 |
+
"model_type": "resnet",
|
32 |
+
"num_channels": 3,
|
33 |
+
"out_features": [
|
34 |
+
"stage4"
|
35 |
+
],
|
36 |
+
"out_indices": [
|
37 |
+
4
|
38 |
+
],
|
39 |
+
"problem_type": "single_label_classification",
|
40 |
+
"stage_names": [
|
41 |
+
"stem",
|
42 |
+
"stage1",
|
43 |
+
"stage2",
|
44 |
+
"stage3",
|
45 |
+
"stage4"
|
46 |
+
],
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.46.3"
|
49 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60cb3ac76199bc913a936c74165621446cbc038ddfde10c1ae78e8a35ebba32f
|
3 |
+
size 94302952
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_pct": 0.875,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ConvNextImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"shortest_edge": 224
|
21 |
+
}
|
22 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9753b8d6e2f075b56d0fa8347ce3965ef3d59b74ba93fe7da9f8089ac106ac46
|
3 |
+
size 4795
|