Upload folder using huggingface_hub
Browse files- README.md +31 -0
- checkpoint-1/config.json +33 -0
- checkpoint-1/model.safetensors +3 -0
- checkpoint-1/optimizer.pt +3 -0
- checkpoint-1/rng_state.pth +3 -0
- checkpoint-1/scheduler.pt +3 -0
- checkpoint-1/trainer_state.json +62 -0
- checkpoint-1/training_args.bin +3 -0
- config.json +33 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Nov19_03-52-57_r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr/events.out.tfevents.1731988379.r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr.148.0 +2 -2
- runs/Nov19_03-52-57_r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr/events.out.tfevents.1731988402.r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr.148.1 +3 -0
- training_args.bin +3 -0
- training_params.json +29 -0
README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- image-classification
|
6 |
+
base_model: dima806/deepfake_vs_real_image_detection
|
7 |
+
widget:
|
8 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
9 |
+
example_title: Tiger
|
10 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
11 |
+
example_title: Teapot
|
12 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
13 |
+
example_title: Palace
|
14 |
+
---
|
15 |
+
|
16 |
+
# Model Trained Using AutoTrain
|
17 |
+
|
18 |
+
- Problem type: Image Classification
|
19 |
+
|
20 |
+
## Validation Metrics
|
21 |
+
loss: 3.6554903984069824
|
22 |
+
|
23 |
+
f1: 0.0
|
24 |
+
|
25 |
+
precision: 0.0
|
26 |
+
|
27 |
+
recall: 0.0
|
28 |
+
|
29 |
+
auc: 0.0
|
30 |
+
|
31 |
+
accuracy: 0.5
|
checkpoint-1/config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/deepfake_vs_real_image_detection",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "Fake",
|
14 |
+
"1": "Real"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"Fake": 0,
|
21 |
+
"Real": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.46.2"
|
33 |
+
}
|
checkpoint-1/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b38e7d3de2be44b224cb4cffe881a0c4b75f7283c5d4a2017fbadd58bd41fdef
|
3 |
+
size 343223968
|
checkpoint-1/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d444faeab7d31eb850ce4e8143e21452ff2f5ea34804b4ee748460bbaf3118d0
|
3 |
+
size 686563258
|
checkpoint-1/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86fab8ef5b60f7d2baa59b86c4c1cc480feb2b1143f0706119369c2166193d7c
|
3 |
+
size 13990
|
checkpoint-1/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a4322f26ea0a721a75cad99a3be7c263f63a603c913c7a935fc64da9f1ccf64
|
3 |
+
size 1064
|
checkpoint-1/trainer_state.json
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 3.6554903984069824,
|
3 |
+
"best_model_checkpoint": "autotrain2/checkpoint-1",
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 1.0,
|
13 |
+
"grad_norm": 22.4976749420166,
|
14 |
+
"learning_rate": 5e-05,
|
15 |
+
"loss": 1.7903,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"eval_accuracy": 0.5,
|
21 |
+
"eval_auc": 0.0,
|
22 |
+
"eval_f1": 0.0,
|
23 |
+
"eval_loss": 3.6554903984069824,
|
24 |
+
"eval_precision": 0.0,
|
25 |
+
"eval_recall": 0.0,
|
26 |
+
"eval_runtime": 0.7377,
|
27 |
+
"eval_samples_per_second": 2.711,
|
28 |
+
"eval_steps_per_second": 1.356,
|
29 |
+
"step": 1
|
30 |
+
}
|
31 |
+
],
|
32 |
+
"logging_steps": 1,
|
33 |
+
"max_steps": 2,
|
34 |
+
"num_input_tokens_seen": 0,
|
35 |
+
"num_train_epochs": 2,
|
36 |
+
"save_steps": 500,
|
37 |
+
"stateful_callbacks": {
|
38 |
+
"EarlyStoppingCallback": {
|
39 |
+
"args": {
|
40 |
+
"early_stopping_patience": 5,
|
41 |
+
"early_stopping_threshold": 0.01
|
42 |
+
},
|
43 |
+
"attributes": {
|
44 |
+
"early_stopping_patience_counter": 0
|
45 |
+
}
|
46 |
+
},
|
47 |
+
"TrainerControl": {
|
48 |
+
"args": {
|
49 |
+
"should_epoch_stop": false,
|
50 |
+
"should_evaluate": false,
|
51 |
+
"should_log": false,
|
52 |
+
"should_save": true,
|
53 |
+
"should_training_stop": false
|
54 |
+
},
|
55 |
+
"attributes": {}
|
56 |
+
}
|
57 |
+
},
|
58 |
+
"total_flos": 619935916916736.0,
|
59 |
+
"train_batch_size": 8,
|
60 |
+
"trial_name": null,
|
61 |
+
"trial_params": null
|
62 |
+
}
|
checkpoint-1/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f28bd8c95102956e31cf00ce84067adcbca22ce73a8f52efab7d2b2981f8c22
|
3 |
+
size 5304
|
config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/deepfake_vs_real_image_detection",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "Fake",
|
14 |
+
"1": "Real"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"Fake": 0,
|
21 |
+
"Real": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.46.2"
|
33 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b38e7d3de2be44b224cb4cffe881a0c4b75f7283c5d4a2017fbadd58bd41fdef
|
3 |
+
size 343223968
|
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": "ViTImageProcessor",
|
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 |
+
}
|
runs/Nov19_03-52-57_r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr/events.out.tfevents.1731988379.r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr.148.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57f17bdc824e054872e5bb0f570cb6c3ce808c9452ac28f5bd145f0a8d9efaa1
|
3 |
+
size 6940
|
runs/Nov19_03-52-57_r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr/events.out.tfevents.1731988402.r-yin2610-auto-train-deepfake-sqmvpw5t-d3365-io7fr.148.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c4eeeff57207c4b8ca53df2c8599944530b9afc94565e8b91b345715bb4adbd6
|
3 |
+
size 597
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f28bd8c95102956e31cf00ce84067adcbca22ce73a8f52efab7d2b2981f8c22
|
3 |
+
size 5304
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "autotrain2/autotrain-data",
|
3 |
+
"model": "dima806/deepfake_vs_real_image_detection",
|
4 |
+
"username": "Yin2610",
|
5 |
+
"lr": 5e-05,
|
6 |
+
"epochs": 2,
|
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": "autotrain2",
|
19 |
+
"auto_find_batch_size": false,
|
20 |
+
"mixed_precision": "fp16",
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"push_to_hub": true,
|
23 |
+
"eval_strategy": "epoch",
|
24 |
+
"image_column": "autotrain_image",
|
25 |
+
"target_column": "autotrain_label",
|
26 |
+
"log": "tensorboard",
|
27 |
+
"early_stopping_patience": 5,
|
28 |
+
"early_stopping_threshold": 0.01
|
29 |
+
}
|