Upload folder using huggingface_hub
Browse files- checkpoint-1786/config.json +33 -0
- checkpoint-1786/model.safetensors +3 -0
- checkpoint-1786/optimizer.pt +3 -0
- checkpoint-1786/preprocessor_config.json +23 -0
- checkpoint-1786/rng_state.pth +3 -0
- checkpoint-1786/scheduler.pt +3 -0
- checkpoint-1786/trainer_state.json +64 -0
- checkpoint-1786/training_args.bin +3 -0
- config.json +33 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- training_args.bin +3 -0
checkpoint-1786/config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ViTForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"dtype": "float32",
|
| 7 |
+
"encoder_stride": 16,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.0,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "Real",
|
| 13 |
+
"1": "Fake"
|
| 14 |
+
},
|
| 15 |
+
"image_size": 224,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"Fake": 1,
|
| 20 |
+
"Real": 0
|
| 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 |
+
"pooler_act": "tanh",
|
| 29 |
+
"pooler_output_size": 768,
|
| 30 |
+
"problem_type": "single_label_classification",
|
| 31 |
+
"qkv_bias": true,
|
| 32 |
+
"transformers_version": "4.56.0"
|
| 33 |
+
}
|
checkpoint-1786/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e68d61c2e453828e7fbc56b08e1ea9ae54442af491770217cc137a14d4731ed
|
| 3 |
+
size 343223968
|
checkpoint-1786/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62208b10fae0655a6e1b8b0572b3b6fba41a86dfc3675819d8791475ef0c025e
|
| 3 |
+
size 686568890
|
checkpoint-1786/preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"resample": 2,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
checkpoint-1786/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:013740e884d6c47e76f37df5c6cfde3f2478eb07b3fe4e3f11c9ebaab6c3b799
|
| 3 |
+
size 14244
|
checkpoint-1786/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b156a462048f9ee8c77b8c081cdcb6d36e7a9ea07f78b939678bd1e0e359a026
|
| 3 |
+
size 1064
|
checkpoint-1786/trainer_state.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 1786,
|
| 3 |
+
"best_metric": 0.021618608385324478,
|
| 4 |
+
"best_model_checkpoint": "deepfake_vs_real_ViT_2gbimgs_190kfiles/checkpoint-1786",
|
| 5 |
+
"epoch": 1.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 1786,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.2799552071668533,
|
| 14 |
+
"grad_norm": 4.873427391052246,
|
| 15 |
+
"learning_rate": 8.725156161272003e-07,
|
| 16 |
+
"loss": 0.0257,
|
| 17 |
+
"step": 500
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.5599104143337066,
|
| 21 |
+
"grad_norm": 0.6878039240837097,
|
| 22 |
+
"learning_rate": 7.305508233957978e-07,
|
| 23 |
+
"loss": 0.0281,
|
| 24 |
+
"step": 1000
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.8398656215005599,
|
| 28 |
+
"grad_norm": 0.07504220306873322,
|
| 29 |
+
"learning_rate": 5.885860306643952e-07,
|
| 30 |
+
"loss": 0.0289,
|
| 31 |
+
"step": 1500
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 1.0,
|
| 35 |
+
"eval_accuracy": 0.9928966268825252,
|
| 36 |
+
"eval_loss": 0.021618608385324478,
|
| 37 |
+
"eval_runtime": 848.2352,
|
| 38 |
+
"eval_samples_per_second": 89.788,
|
| 39 |
+
"eval_steps_per_second": 5.613,
|
| 40 |
+
"step": 1786
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"logging_steps": 500,
|
| 44 |
+
"max_steps": 3572,
|
| 45 |
+
"num_input_tokens_seen": 0,
|
| 46 |
+
"num_train_epochs": 2,
|
| 47 |
+
"save_steps": 500,
|
| 48 |
+
"stateful_callbacks": {
|
| 49 |
+
"TrainerControl": {
|
| 50 |
+
"args": {
|
| 51 |
+
"should_epoch_stop": false,
|
| 52 |
+
"should_evaluate": false,
|
| 53 |
+
"should_log": false,
|
| 54 |
+
"should_save": true,
|
| 55 |
+
"should_training_stop": false
|
| 56 |
+
},
|
| 57 |
+
"attributes": {}
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"total_flos": 8.852762385560605e+18,
|
| 61 |
+
"train_batch_size": 64,
|
| 62 |
+
"trial_name": null,
|
| 63 |
+
"trial_params": null
|
| 64 |
+
}
|
checkpoint-1786/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93cae1e5d0f876e5b912d8982c94ad48cd46140133ca542c4777d35022958e46
|
| 3 |
+
size 5304
|
config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ViTForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"dtype": "float32",
|
| 7 |
+
"encoder_stride": 16,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.0,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "Real",
|
| 13 |
+
"1": "Fake"
|
| 14 |
+
},
|
| 15 |
+
"image_size": 224,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"Fake": 1,
|
| 20 |
+
"Real": 0
|
| 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 |
+
"pooler_act": "tanh",
|
| 29 |
+
"pooler_output_size": 768,
|
| 30 |
+
"problem_type": "single_label_classification",
|
| 31 |
+
"qkv_bias": true,
|
| 32 |
+
"transformers_version": "4.56.0"
|
| 33 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e68d61c2e453828e7fbc56b08e1ea9ae54442af491770217cc137a14d4731ed
|
| 3 |
+
size 343223968
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"resample": 2,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93cae1e5d0f876e5b912d8982c94ad48cd46140133ca542c4777d35022958e46
|
| 3 |
+
size 5304
|