Foxasdf commited on
Commit
aaa5381
·
verified ·
1 Parent(s): 610a6ce

Training complete: ConvNeXtV2 Tiny with 2.5x weighted recall bias

Browse files
Files changed (5) hide show
  1. README.md +81 -0
  2. config.json +51 -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: facebook/convnextv2-tiny-1k-224
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: ConvNeXtV2_Tiny_v5
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
+ # ConvNeXtV2_Tiny_v5
21
+
22
+ This model is a fine-tuned version of [facebook/convnextv2-tiny-1k-224](https://huggingface.co/facebook/convnextv2-tiny-1k-224) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0440
25
+ - Accuracy: 0.9915
26
+ - Precision: 0.9957
27
+ - Recall: 0.9860
28
+ - F1: 0.9908
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 0.0001
48
+ - train_batch_size: 128
49
+ - eval_batch_size: 128
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - lr_scheduler_warmup_steps: 143
54
+ - num_epochs: 13
55
+ - mixed_precision_training: Native AMP
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
60
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
61
+ | 0.1871 | 1.0 | 111 | 0.2640 | 0.7658 | 0.6656 | 0.9902 | 0.7961 |
62
+ | 0.1994 | 2.0 | 222 | 0.0950 | 0.9729 | 0.9667 | 0.9750 | 0.9708 |
63
+ | 0.2047 | 3.0 | 333 | 0.0681 | 0.9862 | 0.9956 | 0.9744 | 0.9849 |
64
+ | 0.1691 | 4.0 | 444 | 0.0697 | 0.9848 | 0.9901 | 0.9768 | 0.9834 |
65
+ | 0.1664 | 5.0 | 555 | 0.0673 | 0.9887 | 0.9950 | 0.9805 | 0.9877 |
66
+ | 0.1318 | 6.0 | 666 | 0.0747 | 0.9772 | 0.9642 | 0.9872 | 0.9756 |
67
+ | 0.1367 | 7.0 | 777 | 0.0461 | 0.9896 | 0.9938 | 0.9835 | 0.9886 |
68
+ | 0.1134 | 8.0 | 888 | 0.0431 | 0.9910 | 0.9951 | 0.9853 | 0.9902 |
69
+ | 0.1782 | 9.0 | 999 | 0.0526 | 0.9896 | 0.9951 | 0.9823 | 0.9886 |
70
+ | 0.1513 | 10.0 | 1110 | 0.0520 | 0.9901 | 0.9957 | 0.9829 | 0.9892 |
71
+ | 0.1352 | 11.0 | 1221 | 0.0469 | 0.9901 | 0.9938 | 0.9847 | 0.9893 |
72
+ | 0.1377 | 12.0 | 1332 | 0.0448 | 0.9907 | 0.9957 | 0.9841 | 0.9899 |
73
+ | 0.1107 | 13.0 | 1443 | 0.0440 | 0.9915 | 0.9957 | 0.9860 | 0.9908 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 5.2.0
79
+ - Pytorch 2.9.0+cu126
80
+ - Datasets 4.0.0
81
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ConvNextV2ForImageClassification"
4
+ ],
5
+ "depths": [
6
+ 3,
7
+ 3,
8
+ 9,
9
+ 3
10
+ ],
11
+ "drop_path_rate": 0.0,
12
+ "dtype": "float32",
13
+ "hidden_act": "gelu",
14
+ "hidden_sizes": [
15
+ 96,
16
+ 192,
17
+ 384,
18
+ 768
19
+ ],
20
+ "id2label": {
21
+ "0": "0",
22
+ "1": "1"
23
+ },
24
+ "image_size": 224,
25
+ "initializer_range": 0.02,
26
+ "label2id": {
27
+ "0": 0,
28
+ "1": 1
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "model_type": "convnextv2",
32
+ "num_channels": 3,
33
+ "num_stages": 4,
34
+ "out_features": [
35
+ "stage4"
36
+ ],
37
+ "out_indices": [
38
+ 4
39
+ ],
40
+ "patch_size": 4,
41
+ "problem_type": "single_label_classification",
42
+ "stage_names": [
43
+ "stem",
44
+ "stage1",
45
+ "stage2",
46
+ "stage3",
47
+ "stage4"
48
+ ],
49
+ "transformers_version": "5.2.0",
50
+ "use_cache": false
51
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b6e8b82762663acd7b9528dd911408c97c06dd1634f92c0b060ca1f3e1e3ed1
3
+ size 111495808
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "data_format": "channels_first",
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": "ConvNextImageProcessorFast",
13
+ "image_std": [
14
+ 0.229,
15
+ 0.224,
16
+ 0.225
17
+ ],
18
+ "resample": 3,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "shortest_edge": 224
22
+ }
23
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ebb41ece1275fce017f7d955220837691eeaa2dbd315c4b0deee4600e83f357
3
+ size 5201