itsLeen commited on
Commit
0455ba4
1 Parent(s): 46dc68f

itsLeen/swin-large-ai-or-nott

Browse files
README.md CHANGED
@@ -4,11 +4,26 @@ license: apache-2.0
4
  base_model: itsLeen/swin-large-ai-or-not
5
  tags:
6
  - generated_from_trainer
 
 
7
  metrics:
8
  - accuracy
9
  model-index:
10
  - name: swin-large-ai-or-not
11
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ---
13
 
14
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -16,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  # swin-large-ai-or-not
18
 
19
- This model is a fine-tuned version of [itsLeen/swin-large-ai-or-not](https://huggingface.co/itsLeen/swin-large-ai-or-not) on an unknown dataset.
20
  It achieves the following results on the evaluation set:
21
- - Loss: 0.3141
22
- - Accuracy: 0.95
23
 
24
  ## Model description
25
 
@@ -38,14 +53,14 @@ More information needed
38
  ### Training hyperparameters
39
 
40
  The following hyperparameters were used during training:
41
- - learning_rate: 1e-05
42
- - train_batch_size: 16
43
  - eval_batch_size: 8
44
  - seed: 42
45
  - gradient_accumulation_steps: 2
46
- - total_train_batch_size: 32
47
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
- - lr_scheduler_type: linear
49
  - num_epochs: 20
50
  - mixed_precision_training: Native AMP
51
 
@@ -53,18 +68,19 @@ The following hyperparameters were used during training:
53
 
54
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
55
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
56
- | 0.3817 | 2.0 | 50 | 0.2489 | 0.92 |
57
- | 0.0787 | 4.0 | 100 | 0.3381 | 0.92 |
58
- | 0.0361 | 6.0 | 150 | 0.3256 | 0.93 |
59
- | 0.012 | 8.0 | 200 | 0.3192 | 0.94 |
60
- | 0.0062 | 10.0 | 250 | 0.2874 | 0.955 |
61
- | 0.0026 | 12.0 | 300 | 0.3379 | 0.95 |
62
- | 0.003 | 14.0 | 350 | 0.3620 | 0.945 |
63
- | 0.003 | 16.0 | 400 | 0.3141 | 0.95 |
64
 
65
 
66
  ### Framework versions
67
 
68
  - Transformers 4.44.2
69
  - Pytorch 2.5.0+cu121
 
70
  - Tokenizers 0.19.1
 
4
  base_model: itsLeen/swin-large-ai-or-not
5
  tags:
6
  - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
  metrics:
10
  - accuracy
11
  model-index:
12
  - name: swin-large-ai-or-not
13
+ results:
14
+ - task:
15
+ name: Image Classification
16
+ type: image-classification
17
+ dataset:
18
+ name: imagefolder
19
+ type: imagefolder
20
+ config: default
21
+ split: train[:2000]
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.9625
27
  ---
28
 
29
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
31
 
32
  # swin-large-ai-or-not
33
 
34
+ This model is a fine-tuned version of [itsLeen/swin-large-ai-or-not](https://huggingface.co/itsLeen/swin-large-ai-or-not) on the imagefolder dataset.
35
  It achieves the following results on the evaluation set:
36
+ - Loss: 0.2540
37
+ - Accuracy: 0.9625
38
 
39
  ## Model description
40
 
 
53
  ### Training hyperparameters
54
 
55
  The following hyperparameters were used during training:
56
+ - learning_rate: 3e-05
57
+ - train_batch_size: 8
58
  - eval_batch_size: 8
59
  - seed: 42
60
  - gradient_accumulation_steps: 2
61
+ - total_train_batch_size: 16
62
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
63
+ - lr_scheduler_type: cosine
64
  - num_epochs: 20
65
  - mixed_precision_training: Native AMP
66
 
 
68
 
69
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
70
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
71
+ | 0.1485 | 1.0 | 100 | 0.2140 | 0.93 |
72
+ | 0.0185 | 2.0 | 200 | 0.1999 | 0.9625 |
73
+ | 0.0122 | 3.0 | 300 | 0.1703 | 0.9575 |
74
+ | 0.0044 | 4.0 | 400 | 0.1952 | 0.9575 |
75
+ | 0.0 | 5.0 | 500 | 0.2642 | 0.965 |
76
+ | 0.0 | 6.0 | 600 | 0.2600 | 0.965 |
77
+ | 0.0 | 7.0 | 700 | 0.3664 | 0.9625 |
78
+ | 0.0 | 8.0 | 800 | 0.2540 | 0.9625 |
79
 
80
 
81
  ### Framework versions
82
 
83
  - Transformers 4.44.2
84
  - Pytorch 2.5.0+cu121
85
+ - Datasets 3.1.0
86
  - Tokenizers 0.19.1
all_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 16.0,
3
  "total_flos": 1.0028231120388096e+18,
4
- "train_loss": 0.06541787043213844,
5
- "train_runtime": 1788.9812,
6
- "train_samples_per_second": 8.944,
7
- "train_steps_per_second": 0.279
8
  }
 
1
  {
2
+ "epoch": 8.0,
3
  "total_flos": 1.0028231120388096e+18,
4
+ "train_loss": 0.03964285453781485,
5
+ "train_runtime": 2016.2985,
6
+ "train_samples_per_second": 15.871,
7
+ "train_steps_per_second": 0.992
8
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8616bc58b4fa8d256f08240e9a9e71c41273c61bd6a76d09081522507a72d6b3
3
  size 347498816
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c49b17008b5fa8e6fe35e45d2bff15f60ac98f912bb0cd32bde3187b637ef6b2
3
  size 347498816
runs/Nov05_19-59-26_dbf8ab450a93/events.out.tfevents.1730836768.dbf8ab450a93.798.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3d4c2dd4f5e469757d1c472fea6aced9ae2ff7307a1fa1c141dd18cc306cfb2
3
+ size 11967
runs/Nov05_20-33-53_dbf8ab450a93/events.out.tfevents.1730838835.dbf8ab450a93.798.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7df323e5c2eb31860f903da7f548af6db988bd46f50655346d6978e0cf0857e
3
+ size 11968
runs/Nov05_21-09-20_dbf8ab450a93/events.out.tfevents.1730840969.dbf8ab450a93.798.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2709b64d7144afff4b7cd813b91e41b6891f3cd23e9644216a58c4bf106f639
3
+ size 14892
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 16.0,
3
  "total_flos": 1.0028231120388096e+18,
4
- "train_loss": 0.06541787043213844,
5
- "train_runtime": 1788.9812,
6
- "train_samples_per_second": 8.944,
7
- "train_steps_per_second": 0.279
8
  }
 
1
  {
2
+ "epoch": 8.0,
3
  "total_flos": 1.0028231120388096e+18,
4
+ "train_loss": 0.03964285453781485,
5
+ "train_runtime": 2016.2985,
6
+ "train_samples_per_second": 15.871,
7
+ "train_steps_per_second": 0.992
8
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a04433f297c998d5da5994ba9e737e1c5111cddbedd621134203217302a8966
3
  size 5176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f71648cc0aa416296e2b8c942150816176f175ccd7e9d3c4e9dda8976c83f8d
3
  size 5176