chaichy commited on
Commit
6c66396
·
verified ·
1 Parent(s): 5dccf7a

chaichy/vit-setting-forschungssem

Browse files
Files changed (5) hide show
  1. README.md +81 -0
  2. config.json +35 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +23 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: best-model
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # best-model
21
+
22
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the None dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.5533
25
+ - Accuracy: 0.8289
26
+ - Precision: 0.8457
27
+ - Recall: 0.8289
28
+ - F1: 0.8320
29
+ - Precision Indoor: 0.6897
30
+ - Recall Indoor: 0.8696
31
+ - F1 Indoor: 0.7692
32
+ - Support Indoor: 23
33
+ - Precision Notapplicable: 0.8182
34
+ - Recall Notapplicable: 0.6923
35
+ - F1 Notapplicable: 0.75
36
+ - Support Notapplicable: 13
37
+ - Precision Outdoor: 0.9444
38
+ - Recall Outdoor: 0.85
39
+ - F1 Outdoor: 0.8947
40
+ - Support Outdoor: 40
41
+
42
+ ## Model description
43
+
44
+ More information needed
45
+
46
+ ## Intended uses & limitations
47
+
48
+ More information needed
49
+
50
+ ## Training and evaluation data
51
+
52
+ More information needed
53
+
54
+ ## Training procedure
55
+
56
+ ### Training hyperparameters
57
+
58
+ The following hyperparameters were used during training:
59
+ - learning_rate: 0.01
60
+ - train_batch_size: 16
61
+ - eval_batch_size: 8
62
+ - seed: 42
63
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
64
+ - lr_scheduler_type: linear
65
+ - lr_scheduler_warmup_ratio: 0.05
66
+ - num_epochs: 2
67
+
68
+ ### Training results
69
+
70
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Precision Indoor | Recall Indoor | F1 Indoor | Support Indoor | Precision Notapplicable | Recall Notapplicable | F1 Notapplicable | Support Notapplicable | Precision Outdoor | Recall Outdoor | F1 Outdoor | Support Outdoor |
71
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:----------------:|:-------------:|:---------:|:--------------:|:-----------------------:|:--------------------:|:----------------:|:---------------------:|:-----------------:|:--------------:|:----------:|:---------------:|
72
+ | No log | 1.0 | 19 | 0.9758 | 0.7237 | 0.8166 | 0.7237 | 0.7386 | 0.7059 | 0.5217 | 0.6 | 23 | 0.4483 | 1.0 | 0.6190 | 13 | 1.0 | 0.75 | 0.8571 | 40 |
73
+ | 0.9607 | 2.0 | 38 | 0.5533 | 0.8289 | 0.8457 | 0.8289 | 0.8320 | 0.6897 | 0.8696 | 0.7692 | 23 | 0.8182 | 0.6923 | 0.75 | 13 | 0.9444 | 0.85 | 0.8947 | 40 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.57.6
79
+ - Pytorch 2.9.0+cu126
80
+ - Datasets 4.0.0
81
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "CustomViTForImageClassification"
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": "Indoor",
13
+ "1": "NotApplicable",
14
+ "2": "Outdoor"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "Indoor": 0,
21
+ "NotApplicable": 1,
22
+ "Outdoor": 2
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "model_type": "vit",
26
+ "num_attention_heads": 12,
27
+ "num_channels": 3,
28
+ "num_hidden_layers": 12,
29
+ "patch_size": 16,
30
+ "pooler_act": "tanh",
31
+ "pooler_output_size": 768,
32
+ "problem_type": "single_label_classification",
33
+ "qkv_bias": true,
34
+ "transformers_version": "4.57.6"
35
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0549046b9c5db7b931be0c7b74ca65aaf205d15240d41b2f1dde28542351abf9
3
+ size 343227052
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:178b070e1da932ed99a59948b019a82d2afb982fd00f3be1035436ed87da4067
3
+ size 5841