32health/non-ada-classification
Browse files- README.md +82 -0
- config.json +72 -0
- model.safetensors +3 -0
- preprocessor_config.json +27 -0
- runs/Mar05_07-05-14_ravindra-instance-20231107-124412/events.out.tfevents.1709622329.ravindra-instance-20231107-124412 +3 -0
- runs/Mar05_08-51-21_ravindra-instance-20231107-124412/events.out.tfevents.1709628697.ravindra-instance-20231107-124412 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/dinov2-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
model-index:
|
11 |
+
- name: outputs
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# outputs
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [facebook/dinov2-base](https://huggingface.co/facebook/dinov2-base) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.0742
|
23 |
+
- Precision: 0.9306
|
24 |
+
- Recall: 0.8969
|
25 |
+
- F1: 0.9135
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- learning_rate: 1e-06
|
45 |
+
- train_batch_size: 16
|
46 |
+
- eval_batch_size: 16
|
47 |
+
- seed: 42
|
48 |
+
- gradient_accumulation_steps: 8
|
49 |
+
- total_train_batch_size: 128
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_ratio: 0.1
|
53 |
+
- num_epochs: 15
|
54 |
+
- mixed_precision_training: Native AMP
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|
|
60 |
+
| 0.5948 | 0.98 | 39 | 0.4487 | 0.1103 | 0.0658 | 0.0824 |
|
61 |
+
| 0.2211 | 1.98 | 79 | 0.2079 | 0.8179 | 0.5614 | 0.6658 |
|
62 |
+
| 0.1241 | 2.98 | 119 | 0.1378 | 0.8880 | 0.7390 | 0.8067 |
|
63 |
+
| 0.0954 | 3.99 | 159 | 0.1117 | 0.8916 | 0.8114 | 0.8496 |
|
64 |
+
| 0.0801 | 4.99 | 199 | 0.0980 | 0.9167 | 0.8322 | 0.8724 |
|
65 |
+
| 0.0716 | 5.99 | 239 | 0.0875 | 0.9245 | 0.8596 | 0.8909 |
|
66 |
+
| 0.0641 | 7.0 | 279 | 0.0871 | 0.9231 | 0.8421 | 0.8807 |
|
67 |
+
| 0.0615 | 8.0 | 319 | 0.0804 | 0.9318 | 0.8838 | 0.9071 |
|
68 |
+
| 0.056 | 8.98 | 358 | 0.0793 | 0.9257 | 0.8882 | 0.9065 |
|
69 |
+
| 0.0541 | 9.98 | 398 | 0.0761 | 0.9335 | 0.8925 | 0.9126 |
|
70 |
+
| 0.0532 | 10.98 | 438 | 0.0767 | 0.9339 | 0.8827 | 0.9076 |
|
71 |
+
| 0.053 | 11.99 | 478 | 0.0758 | 0.9312 | 0.8904 | 0.9103 |
|
72 |
+
| 0.048 | 12.99 | 518 | 0.0743 | 0.9324 | 0.8925 | 0.9120 |
|
73 |
+
| 0.047 | 13.99 | 558 | 0.0750 | 0.9303 | 0.8925 | 0.9110 |
|
74 |
+
| 0.0476 | 14.67 | 585 | 0.0742 | 0.9306 | 0.8969 | 0.9135 |
|
75 |
+
|
76 |
+
|
77 |
+
### Framework versions
|
78 |
+
|
79 |
+
- Transformers 4.37.0
|
80 |
+
- Pytorch 1.13.1+cu117
|
81 |
+
- Datasets 2.18.0
|
82 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"finetuning_task": "image-classification",
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.0,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "Pano",
|
15 |
+
"1": "FMX",
|
16 |
+
"2": "BW",
|
17 |
+
"3": "PA",
|
18 |
+
"4": "PC",
|
19 |
+
"5": "Narr",
|
20 |
+
"6": "IOP",
|
21 |
+
"7": "Photo",
|
22 |
+
"8": "NA"
|
23 |
+
},
|
24 |
+
"image_size": 518,
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"label2id": {
|
27 |
+
"BW": 2,
|
28 |
+
"FMX": 1,
|
29 |
+
"IOP": 6,
|
30 |
+
"NA": 8,
|
31 |
+
"Narr": 5,
|
32 |
+
"PA": 3,
|
33 |
+
"PC": 4,
|
34 |
+
"Pano": 0,
|
35 |
+
"Photo": 7
|
36 |
+
},
|
37 |
+
"layer_norm_eps": 1e-06,
|
38 |
+
"layerscale_value": 1.0,
|
39 |
+
"mlp_ratio": 4,
|
40 |
+
"model_type": "dinov2",
|
41 |
+
"num_attention_heads": 12,
|
42 |
+
"num_channels": 3,
|
43 |
+
"num_hidden_layers": 12,
|
44 |
+
"out_features": [
|
45 |
+
"stage12"
|
46 |
+
],
|
47 |
+
"out_indices": [
|
48 |
+
12
|
49 |
+
],
|
50 |
+
"patch_size": 14,
|
51 |
+
"problem_type": "multi_label_classification",
|
52 |
+
"qkv_bias": true,
|
53 |
+
"reshape_hidden_states": true,
|
54 |
+
"stage_names": [
|
55 |
+
"stem",
|
56 |
+
"stage1",
|
57 |
+
"stage2",
|
58 |
+
"stage3",
|
59 |
+
"stage4",
|
60 |
+
"stage5",
|
61 |
+
"stage6",
|
62 |
+
"stage7",
|
63 |
+
"stage8",
|
64 |
+
"stage9",
|
65 |
+
"stage10",
|
66 |
+
"stage11",
|
67 |
+
"stage12"
|
68 |
+
],
|
69 |
+
"torch_dtype": "float32",
|
70 |
+
"transformers_version": "4.37.0",
|
71 |
+
"use_swiglu_ffn": false
|
72 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20b5b8df24eaa0bf4ae349ee7c7cfe98aae9af613278cacc44b6985b8ab097c0
|
3 |
+
size 346402964
|
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/Mar05_07-05-14_ravindra-instance-20231107-124412/events.out.tfevents.1709622329.ravindra-instance-20231107-124412
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec56fcfccfdda147bc951ab2247a5a058ce37dd1ca2e779acfb95dd551ffcbbd
|
3 |
+
size 21893
|
runs/Mar05_08-51-21_ravindra-instance-20231107-124412/events.out.tfevents.1709628697.ravindra-instance-20231107-124412
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60b43b9d7e539d9970f4604eb4d338ce47a3b46b0640717806e728b89cb029fa
|
3 |
+
size 20682
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43e97549ae4367ab7a6c1947b81f85e49a84d6f5e0314181bb72b3f347f86d43
|
3 |
+
size 4283
|