AlaaHussien commited on
Commit
176b690
1 Parent(s): 33d9e6b

End of training

Browse files
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: facebook/dinov2-base
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
+ metrics:
10
+ - accuracy
11
+ - f1
12
+ model-index:
13
+ - name: dinov2-base-finetuned-Leukemia
14
+ results:
15
+ - task:
16
+ name: Image Classification
17
+ type: image-classification
18
+ dataset:
19
+ name: imagefolder
20
+ type: imagefolder
21
+ config: default
22
+ split: train
23
+ args: default
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 1.0
28
+ - name: F1
29
+ type: f1
30
+ value: 1.0
31
+ ---
32
+
33
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
34
+ should probably proofread and complete it, then remove this comment. -->
35
+
36
+ # dinov2-base-finetuned-Leukemia
37
+
38
+ This model is a fine-tuned version of [facebook/dinov2-base](https://huggingface.co/facebook/dinov2-base) on the imagefolder dataset.
39
+ It achieves the following results on the evaluation set:
40
+ - Loss: 0.0000
41
+ - Accuracy: 1.0
42
+ - F1: 1.0
43
+
44
+ ## Model description
45
+
46
+ More information needed
47
+
48
+ ## Intended uses & limitations
49
+
50
+ More information needed
51
+
52
+ ## Training and evaluation data
53
+
54
+ More information needed
55
+
56
+ ## Training procedure
57
+
58
+ ### Training hyperparameters
59
+
60
+ The following hyperparameters were used during training:
61
+ - learning_rate: 1e-05
62
+ - train_batch_size: 4
63
+ - eval_batch_size: 4
64
+ - seed: 42
65
+ - gradient_accumulation_steps: 4
66
+ - total_train_batch_size: 16
67
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
68
+ - lr_scheduler_type: linear
69
+ - lr_scheduler_warmup_ratio: 0.1
70
+ - num_epochs: 10
71
+
72
+ ### Training results
73
+
74
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
75
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|
76
+ | 0.0541 | 0.9954 | 162 | 0.8475 | 0.9018 | 0.9047 |
77
+ | 0.0667 | 1.9969 | 325 | 0.0745 | 0.9785 | 0.9780 |
78
+ | 0.1317 | 2.9985 | 488 | 0.0159 | 0.9939 | 0.9939 |
79
+ | 0.0187 | 4.0 | 651 | 0.0771 | 0.9877 | 0.9878 |
80
+ | 0.0762 | 4.9954 | 813 | 0.1135 | 0.9877 | 0.9878 |
81
+ | 0.006 | 5.9969 | 976 | 0.0502 | 0.9969 | 0.9969 |
82
+ | 0.1322 | 6.9985 | 1139 | 0.0357 | 0.9969 | 0.9969 |
83
+ | 0.0332 | 8.0 | 1302 | 0.0000 | 1.0 | 1.0 |
84
+ | 0.0 | 8.9954 | 1464 | 0.0004 | 1.0 | 1.0 |
85
+ | 0.0 | 9.9539 | 1620 | 0.0000 | 1.0 | 1.0 |
86
+
87
+
88
+ ### Framework versions
89
+
90
+ - Transformers 4.44.2
91
+ - Pytorch 2.4.0+cu121
92
+ - Datasets 2.21.0
93
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/dinov2-base",
3
+ "apply_layernorm": true,
4
+ "architectures": [
5
+ "Dinov2ForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "drop_path_rate": 0.0,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Benign",
14
+ "1": "Early",
15
+ "2": "Pre",
16
+ "3": "Pro"
17
+ },
18
+ "image_size": 518,
19
+ "initializer_range": 0.02,
20
+ "label2id": {
21
+ "Benign": 0,
22
+ "Early": 1,
23
+ "Pre": 2,
24
+ "Pro": 3
25
+ },
26
+ "layer_norm_eps": 1e-06,
27
+ "layerscale_value": 1.0,
28
+ "mlp_ratio": 4,
29
+ "model_type": "dinov2",
30
+ "num_attention_heads": 12,
31
+ "num_channels": 3,
32
+ "num_hidden_layers": 12,
33
+ "out_features": [
34
+ "stage12"
35
+ ],
36
+ "out_indices": [
37
+ 12
38
+ ],
39
+ "patch_size": 14,
40
+ "problem_type": "single_label_classification",
41
+ "qkv_bias": true,
42
+ "reshape_hidden_states": true,
43
+ "stage_names": [
44
+ "stem",
45
+ "stage1",
46
+ "stage2",
47
+ "stage3",
48
+ "stage4",
49
+ "stage5",
50
+ "stage6",
51
+ "stage7",
52
+ "stage8",
53
+ "stage9",
54
+ "stage10",
55
+ "stage11",
56
+ "stage12"
57
+ ],
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.44.2",
60
+ "use_swiglu_ffn": false
61
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ec45adaaadf5584ebdf13c8d678ada0a5920b7618f713a06e3c2e53136a6430
3
+ size 346372224
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.485,
13
+ 0.456,
14
+ 0.406
15
+ ],
16
+ "image_processor_type": "BitImageProcessor",
17
+ "image_std": [
18
+ 0.229,
19
+ 0.224,
20
+ 0.225
21
+ ],
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "shortest_edge": 256
26
+ }
27
+ }
runs/Sep08_16-35-04_e18483dcd2bc/events.out.tfevents.1725813337.e18483dcd2bc.1789.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d16b3eb3fa0afa76fee0597a16c7640136d09d17c58d899a109db892a7aef925
3
+ size 7884
runs/Sep08_16-38-56_e18483dcd2bc/events.out.tfevents.1725813547.e18483dcd2bc.1789.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79af337b73a07ffd528e73fad105485f705e387516dece74af1e22aca31da4bc
3
+ size 43627
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab15add3575397e20034d2aceb546da44429cc12ef1515741fb2cda57a3ba32e
3
+ size 5240