vikas117 commited on
Commit
80e1efa
·
verified ·
1 Parent(s): 2b4ebf5

Model save

Browse files
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  library_name: transformers
3
  license: apache-2.0
4
- base_model: vikas117/finetuned-ai-real
5
  tags:
6
  - generated_from_trainer
7
  datasets:
@@ -23,7 +23,7 @@ model-index:
23
  metrics:
24
  - name: Accuracy
25
  type: accuracy
26
- value: 0.8842975206611571
27
  ---
28
 
29
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -31,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
31
 
32
  # finetuned-ai-real
33
 
34
- This model is a fine-tuned version of [vikas117/finetuned-ai-real](https://huggingface.co/vikas117/finetuned-ai-real) on the imagefolder dataset.
35
  It achieves the following results on the evaluation set:
36
- - Loss: 0.2323
37
- - Accuracy: 0.8843
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: 5
63
  - mixed_precision_training: Native AMP
64
 
65
  ### Training results
66
 
67
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
68
  |:-------------:|:------:|:----:|:---------------:|:--------:|
69
- | 0.1995 | 2.2727 | 50 | 0.2829 | 0.8843 |
70
- | 0.2106 | 4.5455 | 100 | 0.2323 | 0.8843 |
71
 
72
 
73
  ### Framework versions
 
1
  ---
2
  library_name: transformers
3
  license: apache-2.0
4
+ base_model: google/vit-large-patch16-224
5
  tags:
6
  - generated_from_trainer
7
  datasets:
 
23
  metrics:
24
  - name: Accuracy
25
  type: accuracy
26
+ value: 0.9173553719008265
27
  ---
28
 
29
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
31
 
32
  # finetuned-ai-real
33
 
34
+ This model is a fine-tuned version of [google/vit-large-patch16-224](https://huggingface.co/google/vit-large-patch16-224) on the imagefolder dataset.
35
  It achieves the following results on the evaluation set:
36
+ - Loss: 0.3759
37
+ - Accuracy: 0.9174
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: 4
63
  - mixed_precision_training: Native AMP
64
 
65
  ### Training results
66
 
67
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
68
  |:-------------:|:------:|:----:|:---------------:|:--------:|
69
+ | 0.068 | 2.2727 | 50 | 0.3759 | 0.9174 |
 
70
 
71
 
72
  ### Framework versions
config.json CHANGED
@@ -1,44 +1,29 @@
1
  {
2
- "_name_or_path": "vikas117/finetuned-ai-real",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
7
- "depths": [
8
- 3,
9
- 8,
10
- 36,
11
- 3
12
- ],
13
- "downsample_in_first_stage": false,
14
- "embedding_size": 64,
15
  "encoder_stride": 16,
16
- "hidden_act": "relu",
17
  "hidden_dropout_prob": 0.0,
18
- "hidden_size": 768,
19
- "hidden_sizes": [
20
- 256,
21
- 512,
22
- 1024,
23
- 2048
24
- ],
25
  "id2label": {
26
  "0": "AI",
27
  "1": "Real"
28
  },
29
  "image_size": 224,
30
  "initializer_range": 0.02,
31
- "intermediate_size": 3072,
32
  "label2id": {
33
  "AI": "0",
34
  "Real": "1"
35
  },
36
  "layer_norm_eps": 1e-12,
37
- "layer_type": "bottleneck",
38
  "model_type": "vit",
39
- "num_attention_heads": 12,
40
  "num_channels": 3,
41
- "num_hidden_layers": 12,
42
  "patch_size": 16,
43
  "problem_type": "single_label_classification",
44
  "qkv_bias": true,
 
1
  {
2
+ "_name_or_path": "google/vit-large-patch16-224",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
 
 
 
 
 
 
 
 
7
  "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
  "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 1024,
 
 
 
 
 
 
11
  "id2label": {
12
  "0": "AI",
13
  "1": "Real"
14
  },
15
  "image_size": 224,
16
  "initializer_range": 0.02,
17
+ "intermediate_size": 4096,
18
  "label2id": {
19
  "AI": "0",
20
  "Real": "1"
21
  },
22
  "layer_norm_eps": 1e-12,
 
23
  "model_type": "vit",
24
+ "num_attention_heads": 16,
25
  "num_channels": 3,
26
+ "num_hidden_layers": 24,
27
  "patch_size": 16,
28
  "problem_type": "single_label_classification",
29
  "qkv_bias": true,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab05b278e596869f216e30119c89da42979ecf48bd22071b3f7800e022328188
3
- size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5805fb053fda7d9ca3beafa9755ce0ead1c3731d86f1865c037f9c16232b9d1
3
+ size 1213261264
preprocessor_config.json CHANGED
@@ -1,21 +1,20 @@
1
  {
2
- "crop_pct": 0.875,
3
  "do_convert_rgb": null,
4
  "do_normalize": true,
5
  "do_rescale": true,
6
  "do_resize": true,
7
  "image_mean": [
8
- 0.485,
9
- 0.456,
10
- 0.406
11
  ],
12
  "image_processor_type": "ViTFeatureExtractor",
13
  "image_std": [
14
- 0.229,
15
- 0.224,
16
- 0.225
17
  ],
18
- "resample": 3,
19
  "rescale_factor": 0.00392156862745098,
20
  "size": {
21
  "height": 224,
 
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": "ViTFeatureExtractor",
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,
runs/Dec31_07-42-40_3dcd8bc8b582/events.out.tfevents.1735630970.3dcd8bc8b582.519.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bde6e1572921bee87789a588c0286f80e820a54d503ec52bfc7aa27a79bc9d9f
3
+ size 7210
runs/Dec31_07-45-03_3dcd8bc8b582/events.out.tfevents.1735631111.3dcd8bc8b582.519.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:114c9a99405f771bcc65c78e8f6daa8b4306df541ac8f837b4e702e851cc9fae
3
+ size 7350
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c0ef7cd3b5085ce6fa0e411c88c8eccfb54e4b757a3d0d75a7641d11bccd472a
3
  size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97c30a7a9b3fe7e7420f8506165095d7bbd6eb5dcbcd6513ba9a6c171d58879d
3
  size 5304