hussien commited on
Commit
583386c
1 Parent(s): 63969e2

End of training

Browse files
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/dinov2-base
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ - f1
11
+ model-index:
12
+ - name: dinov2-base-finetuned-ct-iq
13
+ results:
14
+ - task:
15
+ name: Image Classification
16
+ type: image-classification
17
+ dataset:
18
+ name: imagefolder
19
+ type: imagefolder
20
+ config: default
21
+ split: train
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 1.0
27
+ - name: F1
28
+ type: f1
29
+ value: 1.0
30
+ ---
31
+
32
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
33
+ should probably proofread and complete it, then remove this comment. -->
34
+
35
+ # dinov2-base-finetuned-ct-iq
36
+
37
+ This model is a fine-tuned version of [facebook/dinov2-base](https://huggingface.co/facebook/dinov2-base) on the imagefolder dataset.
38
+ It achieves the following results on the evaluation set:
39
+ - Loss: 0.0000
40
+ - Accuracy: 1.0
41
+ - F1: 1.0
42
+
43
+ ## Model description
44
+
45
+ More information needed
46
+
47
+ ## Intended uses & limitations
48
+
49
+ More information needed
50
+
51
+ ## Training and evaluation data
52
+
53
+ More information needed
54
+
55
+ ## Training procedure
56
+
57
+ ### Training hyperparameters
58
+
59
+ The following hyperparameters were used during training:
60
+ - learning_rate: 1e-05
61
+ - train_batch_size: 4
62
+ - eval_batch_size: 4
63
+ - seed: 42
64
+ - gradient_accumulation_steps: 4
65
+ - total_train_batch_size: 16
66
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
67
+ - lr_scheduler_type: linear
68
+ - lr_scheduler_warmup_ratio: 0.1
69
+ - num_epochs: 10
70
+
71
+ ### Training results
72
+
73
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
74
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|
75
+ | 0.0265 | 0.9954 | 162 | 0.2460 | 0.9233 | 0.9295 |
76
+ | 0.0185 | 1.9969 | 325 | 0.0023 | 1.0 | 1.0 |
77
+ | 0.1076 | 2.9985 | 488 | 0.0204 | 0.9939 | 0.9938 |
78
+ | 0.1424 | 4.0 | 651 | 0.0001 | 1.0 | 1.0 |
79
+ | 0.0002 | 4.9954 | 813 | 0.0013 | 1.0 | 1.0 |
80
+ | 0.0414 | 5.9969 | 976 | 0.0000 | 1.0 | 1.0 |
81
+ | 0.0003 | 6.9985 | 1139 | 0.0003 | 1.0 | 1.0 |
82
+ | 0.0011 | 8.0 | 1302 | 0.0163 | 0.9969 | 0.9969 |
83
+ | 0.0 | 8.9954 | 1464 | 0.0010 | 1.0 | 1.0 |
84
+ | 0.0 | 9.9539 | 1620 | 0.0000 | 1.0 | 1.0 |
85
+
86
+
87
+ ### Framework versions
88
+
89
+ - Transformers 4.44.0
90
+ - Pytorch 2.4.0
91
+ - Datasets 2.21.0
92
+ - 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.0",
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:6f1e87dfe8eb76d0b16bab38657d730291666f6695ce3ac67d2b4c95e5bc31c6
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_15-25-32_1f55efa49178/events.out.tfevents.1725809190.1f55efa49178.36.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69c8c2af73403ef479e8d0259245325d0521548e982591fc811487211ad18978
3
+ size 43569
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62425ae1ed22fbca3332072ebc76284bbf3aad454565fe811b09a96e1ef5cd80
3
+ size 5240