BeckerAnas commited on
Commit
c77a943
·
verified ·
1 Parent(s): 36e8869

Model save

Browse files
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: grateful-shape-212
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
+ # grateful-shape-212
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: 1.3777
25
+ - Accuracy: 0.2708
26
+ - Precision: 0.4203
27
+ - Recall: 0.2708
28
+ - F1: 0.3127
29
+ - Roc Auc: 0.5428
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - learning_rate: 0.0001
49
+ - train_batch_size: 256
50
+ - eval_batch_size: 256
51
+ - seed: 42
52
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
53
+ - lr_scheduler_type: cosine
54
+ - lr_scheduler_warmup_ratio: 0.1
55
+ - num_epochs: 5
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Roc Auc |
60
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:-------:|
61
+ | 1.4367 | 1.0 | 17 | 1.3810 | 0.0898 | 0.4478 | 0.0898 | 0.1092 | 0.5060 |
62
+ | 1.3894 | 2.0 | 34 | 1.3751 | 0.1823 | 0.4052 | 0.1823 | 0.2266 | 0.5250 |
63
+ | 1.3619 | 3.0 | 51 | 1.3766 | 0.2422 | 0.4100 | 0.2422 | 0.2876 | 0.5369 |
64
+ | 1.3523 | 4.0 | 68 | 1.3776 | 0.2708 | 0.4238 | 0.2708 | 0.3132 | 0.5422 |
65
+ | 1.3475 | 5.0 | 85 | 1.3777 | 0.2708 | 0.4203 | 0.2708 | 0.3127 | 0.5428 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.52.3
71
+ - Pytorch 2.7.0+cpu
72
+ - Datasets 3.6.0
73
+ - Tokenizers 0.21.0
best_model/config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ConvNextV2ForImageClassification"
4
+ ],
5
+ "depths": [
6
+ 3,
7
+ 3,
8
+ 9,
9
+ 3
10
+ ],
11
+ "drop_path_rate": 0.0,
12
+ "hidden_act": "gelu",
13
+ "hidden_sizes": [
14
+ 96,
15
+ 192,
16
+ 384,
17
+ 768
18
+ ],
19
+ "id2label": {
20
+ "0": "Mild_Demented",
21
+ "1": "Moderate_Demented",
22
+ "2": "Non_Demented",
23
+ "3": "Very_Mild_Demented"
24
+ },
25
+ "image_size": 224,
26
+ "initializer_range": 0.02,
27
+ "label2id": {
28
+ "Mild_Demented": 0,
29
+ "Moderate_Demented": 1,
30
+ "Non_Demented": 2,
31
+ "Very_Mild_Demented": 3
32
+ },
33
+ "layer_norm_eps": 1e-12,
34
+ "model_type": "convnextv2",
35
+ "num_channels": 3,
36
+ "num_stages": 4,
37
+ "out_features": [
38
+ "stage4"
39
+ ],
40
+ "out_indices": [
41
+ 4
42
+ ],
43
+ "patch_size": 4,
44
+ "stage_names": [
45
+ "stem",
46
+ "stage1",
47
+ "stage2",
48
+ "stage3",
49
+ "stage4"
50
+ ],
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.52.3"
53
+ }
best_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc933cc203834f39b52e4974139bf9fb0f126d481ac9007da2d9eb73bb563398
3
+ size 111501976
best_model/preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ConvNextImageProcessor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "shortest_edge": 224
21
+ }
22
+ }
best_model/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe349f1943e660411273e37e731a16a3ebed896c26d2aa12dfd84075b6b3012c
3
+ size 5777
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7f289bbadece0154dad676159693b23c47db61e0134e6f4b2b69fd2548dbfac0
3
  size 111501976
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc933cc203834f39b52e4974139bf9fb0f126d481ac9007da2d9eb73bb563398
3
  size 111501976