32health/non-ada-classification
Browse files- README.md +78 -0
- config.json +82 -0
- model.safetensors +3 -0
- preprocessor_config.json +28 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: facebook/dinov2-large
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
- f1
|
| 11 |
+
model-index:
|
| 12 |
+
- name: output_dinov2_large
|
| 13 |
+
results: []
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
+
|
| 19 |
+
# output_dinov2_large
|
| 20 |
+
|
| 21 |
+
This model is a fine-tuned version of [facebook/dinov2-large](https://huggingface.co/facebook/dinov2-large) on an unknown dataset.
|
| 22 |
+
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.0294
|
| 24 |
+
- Precision: 0.9810
|
| 25 |
+
- Recall: 0.9748
|
| 26 |
+
- F1: 0.9779
|
| 27 |
+
|
| 28 |
+
## Model description
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Intended uses & limitations
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training and evaluation data
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training procedure
|
| 41 |
+
|
| 42 |
+
### Training hyperparameters
|
| 43 |
+
|
| 44 |
+
The following hyperparameters were used during training:
|
| 45 |
+
- learning_rate: 2e-06
|
| 46 |
+
- train_batch_size: 2
|
| 47 |
+
- eval_batch_size: 1
|
| 48 |
+
- seed: 42
|
| 49 |
+
- gradient_accumulation_steps: 16
|
| 50 |
+
- total_train_batch_size: 32
|
| 51 |
+
- optimizer: Use 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: 100
|
| 54 |
+
- num_epochs: 10
|
| 55 |
+
- mixed_precision_training: Native AMP
|
| 56 |
+
|
| 57 |
+
### Training results
|
| 58 |
+
|
| 59 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
|
| 60 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|
|
| 61 |
+
| No log | 1.0 | 145 | 0.0585 | 0.9332 | 0.9538 | 0.9434 |
|
| 62 |
+
| No log | 2.0 | 290 | 0.0367 | 0.9527 | 0.9727 | 0.9626 |
|
| 63 |
+
| No log | 3.0 | 435 | 0.0338 | 0.9776 | 0.9622 | 0.9698 |
|
| 64 |
+
| 1.3658 | 4.0 | 580 | 0.0265 | 0.9718 | 0.9769 | 0.9743 |
|
| 65 |
+
| 1.3658 | 5.0 | 725 | 0.0250 | 0.9708 | 0.9790 | 0.9749 |
|
| 66 |
+
| 1.3658 | 6.0 | 870 | 0.0323 | 0.9809 | 0.9695 | 0.9752 |
|
| 67 |
+
| 0.0959 | 7.0 | 1015 | 0.0285 | 0.9749 | 0.9800 | 0.9775 |
|
| 68 |
+
| 0.0959 | 8.0 | 1160 | 0.0319 | 0.9820 | 0.9727 | 0.9773 |
|
| 69 |
+
| 0.0959 | 9.0 | 1305 | 0.0313 | 0.9810 | 0.9737 | 0.9773 |
|
| 70 |
+
| 0.0959 | 10.0 | 1450 | 0.0294 | 0.9810 | 0.9748 | 0.9779 |
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
### Framework versions
|
| 74 |
+
|
| 75 |
+
- Transformers 5.0.0
|
| 76 |
+
- Pytorch 2.10.0+cu128
|
| 77 |
+
- Datasets 4.5.0
|
| 78 |
+
- Tokenizers 0.22.2
|
config.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"apply_layernorm": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Dinov2ForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"drop_path_rate": 0.0,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.0,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "Pano",
|
| 14 |
+
"1": "FMX",
|
| 15 |
+
"2": "BW",
|
| 16 |
+
"3": "PA",
|
| 17 |
+
"4": "PC",
|
| 18 |
+
"5": "IOP",
|
| 19 |
+
"6": "Photo",
|
| 20 |
+
"7": "NA"
|
| 21 |
+
},
|
| 22 |
+
"image_size": 518,
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"label2id": {
|
| 25 |
+
"BW": 2,
|
| 26 |
+
"FMX": 1,
|
| 27 |
+
"IOP": 5,
|
| 28 |
+
"NA": 7,
|
| 29 |
+
"PA": 3,
|
| 30 |
+
"PC": 4,
|
| 31 |
+
"Pano": 0,
|
| 32 |
+
"Photo": 6
|
| 33 |
+
},
|
| 34 |
+
"layer_norm_eps": 1e-06,
|
| 35 |
+
"layerscale_value": 1.0,
|
| 36 |
+
"mlp_ratio": 4,
|
| 37 |
+
"model_type": "dinov2",
|
| 38 |
+
"num_attention_heads": 16,
|
| 39 |
+
"num_channels": 3,
|
| 40 |
+
"num_hidden_layers": 24,
|
| 41 |
+
"out_features": [
|
| 42 |
+
"stage24"
|
| 43 |
+
],
|
| 44 |
+
"out_indices": [
|
| 45 |
+
24
|
| 46 |
+
],
|
| 47 |
+
"patch_size": 14,
|
| 48 |
+
"problem_type": "multi_label_classification",
|
| 49 |
+
"qkv_bias": true,
|
| 50 |
+
"reshape_hidden_states": true,
|
| 51 |
+
"stage_names": [
|
| 52 |
+
"stem",
|
| 53 |
+
"stage1",
|
| 54 |
+
"stage2",
|
| 55 |
+
"stage3",
|
| 56 |
+
"stage4",
|
| 57 |
+
"stage5",
|
| 58 |
+
"stage6",
|
| 59 |
+
"stage7",
|
| 60 |
+
"stage8",
|
| 61 |
+
"stage9",
|
| 62 |
+
"stage10",
|
| 63 |
+
"stage11",
|
| 64 |
+
"stage12",
|
| 65 |
+
"stage13",
|
| 66 |
+
"stage14",
|
| 67 |
+
"stage15",
|
| 68 |
+
"stage16",
|
| 69 |
+
"stage17",
|
| 70 |
+
"stage18",
|
| 71 |
+
"stage19",
|
| 72 |
+
"stage20",
|
| 73 |
+
"stage21",
|
| 74 |
+
"stage22",
|
| 75 |
+
"stage23",
|
| 76 |
+
"stage24"
|
| 77 |
+
],
|
| 78 |
+
"transformers_version": "5.0.0",
|
| 79 |
+
"use_cache": false,
|
| 80 |
+
"use_mask_token": true,
|
| 81 |
+
"use_swiglu_ffn": false
|
| 82 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad4df401f0ea555eea8a699cdc5a42ab2bcfbce5d3e87a3cae058fc9f954a748
|
| 3 |
+
size 1217591688
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 224,
|
| 4 |
+
"width": 224
|
| 5 |
+
},
|
| 6 |
+
"data_format": "channels_first",
|
| 7 |
+
"do_center_crop": true,
|
| 8 |
+
"do_convert_rgb": true,
|
| 9 |
+
"do_normalize": true,
|
| 10 |
+
"do_rescale": true,
|
| 11 |
+
"do_resize": true,
|
| 12 |
+
"image_mean": [
|
| 13 |
+
0.485,
|
| 14 |
+
0.456,
|
| 15 |
+
0.406
|
| 16 |
+
],
|
| 17 |
+
"image_processor_type": "BitImageProcessorFast",
|
| 18 |
+
"image_std": [
|
| 19 |
+
0.229,
|
| 20 |
+
0.224,
|
| 21 |
+
0.225
|
| 22 |
+
],
|
| 23 |
+
"resample": 3,
|
| 24 |
+
"rescale_factor": 0.00392156862745098,
|
| 25 |
+
"size": {
|
| 26 |
+
"shortest_edge": 256
|
| 27 |
+
}
|
| 28 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:baab5a65c7796696f889c100871960b3db63b5f99eda718fef4b90ba83c15843
|
| 3 |
+
size 5201
|