itsLeen commited on
Commit
0908706
1 Parent(s): a0cfbb5

itsLeen/swin-large-ai-or-not

Browse files
Files changed (6) hide show
  1. README.md +61 -0
  2. all_results.json +8 -0
  3. config.json +53 -0
  4. model.safetensors +3 -0
  5. train_results.json +8 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: itsLeen/vit-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
15
+ 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/vit-large-ai-or-not](https://huggingface.co/itsLeen/vit-large-ai-or-not) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.3914
22
+ - Accuracy: 0.9048
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 1e-05
42
+ - train_batch_size: 8
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 2
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
+ | No log | 1.0 | 31 | 0.2801 | 0.9206 |
54
+ | No log | 2.0 | 62 | 0.3914 | 0.9048 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.44.2
60
+ - Pytorch 2.5.0+cu121
61
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "total_flos": 3.885939559150387e+16,
4
+ "train_loss": 0.41833576079337825,
5
+ "train_runtime": 107.6715,
6
+ "train_samples_per_second": 4.607,
7
+ "train_steps_per_second": 0.576
8
+ }
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "itsLeen/vit-large-ai-or-not",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 18,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 128,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 1024,
19
+ "image_size": 224,
20
+ "initializer_range": 0.02,
21
+ "layer_norm_eps": 1e-05,
22
+ "mlp_ratio": 4.0,
23
+ "model_type": "swin",
24
+ "num_channels": 3,
25
+ "num_heads": [
26
+ 4,
27
+ 8,
28
+ 16,
29
+ 32
30
+ ],
31
+ "num_layers": 4,
32
+ "out_features": [
33
+ "stage4"
34
+ ],
35
+ "out_indices": [
36
+ 4
37
+ ],
38
+ "patch_size": 4,
39
+ "path_norm": true,
40
+ "problem_type": "single_label_classification",
41
+ "qkv_bias": true,
42
+ "stage_names": [
43
+ "stem",
44
+ "stage1",
45
+ "stage2",
46
+ "stage3",
47
+ "stage4"
48
+ ],
49
+ "torch_dtype": "float32",
50
+ "transformers_version": "4.44.2",
51
+ "use_absolute_embeddings": false,
52
+ "window_size": 7
53
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:754f96ad02322143802ffd4fc750c5c62c4ac05718f770cd4364b23e83db7f8c
3
+ size 347498816
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "total_flos": 3.885939559150387e+16,
4
+ "train_loss": 0.41833576079337825,
5
+ "train_runtime": 107.6715,
6
+ "train_samples_per_second": 4.607,
7
+ "train_steps_per_second": 0.576
8
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b35cf376809255214d244822c67f698816e0928ba8445e0fe54d8826755b1216
3
+ size 5176