SodaXII commited on
Commit
8f89412
·
verified ·
1 Parent(s): fe7c811

Model save

Browse files
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ base_model: apple/mobilevit-small
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: mobilevit-small_rice-leaf-disease-augmented-v4_fft
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
+ # mobilevit-small_rice-leaf-disease-augmented-v4_fft
18
+
19
+ This model is a fine-tuned version of [apple/mobilevit-small](https://huggingface.co/apple/mobilevit-small) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.2911
22
+ - Accuracy: 0.9228
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: 5e-05
42
+ - train_batch_size: 64
43
+ - eval_batch_size: 64
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: cosine_with_restarts
47
+ - lr_scheduler_warmup_steps: 256
48
+ - num_epochs: 15
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
55
+ | 2.0561 | 0.5 | 64 | 2.0213 | 0.2886 |
56
+ | 1.9819 | 1.0 | 128 | 1.8788 | 0.5503 |
57
+ | 1.771 | 1.5 | 192 | 1.5291 | 0.6107 |
58
+ | 1.3911 | 2.0 | 256 | 1.0706 | 0.7349 |
59
+ | 1.0026 | 2.5 | 320 | 0.7560 | 0.8054 |
60
+ | 0.7657 | 3.0 | 384 | 0.6180 | 0.8356 |
61
+ | 0.6082 | 3.5 | 448 | 0.5422 | 0.8389 |
62
+ | 0.5313 | 4.0 | 512 | 0.4946 | 0.8523 |
63
+ | 0.4623 | 4.5 | 576 | 0.4512 | 0.8758 |
64
+ | 0.4212 | 5.0 | 640 | 0.4322 | 0.8792 |
65
+ | 0.4025 | 5.5 | 704 | 0.4259 | 0.8893 |
66
+ | 0.3892 | 6.0 | 768 | 0.4238 | 0.8859 |
67
+ | 0.3959 | 6.5 | 832 | 0.4083 | 0.8859 |
68
+ | 0.3279 | 7.0 | 896 | 0.3750 | 0.8826 |
69
+ | 0.2793 | 7.5 | 960 | 0.3350 | 0.8993 |
70
+ | 0.222 | 8.0 | 1024 | 0.3208 | 0.8960 |
71
+ | 0.1862 | 8.5 | 1088 | 0.3128 | 0.8993 |
72
+ | 0.1717 | 9.0 | 1152 | 0.3049 | 0.9027 |
73
+ | 0.1408 | 9.5 | 1216 | 0.3010 | 0.9027 |
74
+ | 0.1507 | 10.0 | 1280 | 0.3240 | 0.9161 |
75
+ | 0.1369 | 10.5 | 1344 | 0.3063 | 0.9060 |
76
+ | 0.1389 | 11.0 | 1408 | 0.3045 | 0.9060 |
77
+ | 0.1199 | 11.5 | 1472 | 0.3062 | 0.9094 |
78
+ | 0.1003 | 12.0 | 1536 | 0.3131 | 0.9128 |
79
+ | 0.0756 | 12.5 | 1600 | 0.3002 | 0.9228 |
80
+ | 0.0636 | 13.0 | 1664 | 0.3177 | 0.9128 |
81
+ | 0.058 | 13.5 | 1728 | 0.3143 | 0.9228 |
82
+ | 0.0566 | 14.0 | 1792 | 0.3136 | 0.9195 |
83
+ | 0.0516 | 14.5 | 1856 | 0.3447 | 0.9161 |
84
+ | 0.0426 | 15.0 | 1920 | 0.2911 | 0.9228 |
85
+
86
+
87
+ ### Framework versions
88
+
89
+ - Transformers 4.48.3
90
+ - Pytorch 2.5.1+cu124
91
+ - Datasets 3.3.2
92
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "apple/mobilevit-small",
3
+ "architectures": [
4
+ "MobileViTForImageClassification"
5
+ ],
6
+ "aspp_dropout_prob": 0.1,
7
+ "aspp_out_channels": 256,
8
+ "atrous_rates": [
9
+ 6,
10
+ 12,
11
+ 18
12
+ ],
13
+ "attention_probs_dropout_prob": 0.0,
14
+ "classifier_dropout_prob": 0.1,
15
+ "conv_kernel_size": 3,
16
+ "expand_ratio": 4.0,
17
+ "hidden_act": "silu",
18
+ "hidden_dropout_prob": 0.1,
19
+ "hidden_sizes": [
20
+ 144,
21
+ 192,
22
+ 240
23
+ ],
24
+ "id2label": {
25
+ "0": "Bacterial Leaf Blight",
26
+ "1": "Brown Spot",
27
+ "2": "Healthy Rice Leaf",
28
+ "3": "Leaf Blast",
29
+ "4": "Leaf scald",
30
+ "5": "Narrow Brown Leaf Spot",
31
+ "6": "Rice Hispa",
32
+ "7": "Sheath Blight"
33
+ },
34
+ "image_size": 256,
35
+ "initializer_range": 0.02,
36
+ "label2id": {
37
+ "Bacterial Leaf Blight": 0,
38
+ "Brown Spot": 1,
39
+ "Healthy Rice Leaf": 2,
40
+ "Leaf Blast": 3,
41
+ "Leaf scald": 4,
42
+ "Narrow Brown Leaf Spot": 5,
43
+ "Rice Hispa": 6,
44
+ "Sheath Blight": 7
45
+ },
46
+ "layer_norm_eps": 1e-05,
47
+ "mlp_ratio": 2.0,
48
+ "model_type": "mobilevit",
49
+ "neck_hidden_sizes": [
50
+ 16,
51
+ 32,
52
+ 64,
53
+ 96,
54
+ 128,
55
+ 160,
56
+ 640
57
+ ],
58
+ "num_attention_heads": 4,
59
+ "num_channels": 3,
60
+ "output_stride": 32,
61
+ "patch_size": 2,
62
+ "problem_type": "single_label_classification",
63
+ "qkv_bias": true,
64
+ "semantic_loss_ignore_index": 255,
65
+ "torch_dtype": "float32",
66
+ "transformers_version": "4.48.3"
67
+ }
logs/events.out.tfevents.1741862948.2f737851e969.927.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4f2ec752915469cf35a3f68e3648816ed05c7be422832315a18a95e341c7f43
3
+ size 22363
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88efac3e41e6a5cb664c17226da11827d130297cf7b077d3159b01819e932d06
3
+ size 19866952
preprocessor_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 256,
4
+ "width": 256
5
+ },
6
+ "do_center_crop": true,
7
+ "do_flip_channel_order": true,
8
+ "do_flip_channels": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_processor_type": "MobileViTImageProcessor",
12
+ "resample": 2,
13
+ "rescale_factor": 0.00392156862745098,
14
+ "size": {
15
+ "shortest_edge": 288
16
+ }
17
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46df04962540106071084ba7459a16300b3186544bf3cbb04bce688583d183d4
3
+ size 5496
training_metrics.xlsx ADDED
Binary file (8.33 kB). View file