End of training
Browse files- README.md +63 -0
- config.json +96 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: microsoft/swin-base-patch4-window7-224
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- pascal_voc
|
| 9 |
+
model-index:
|
| 10 |
+
- name: multilabel_classification
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# multilabel_classification
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [microsoft/swin-base-patch4-window7-224](https://huggingface.co/microsoft/swin-base-patch4-window7-224) on the pascal_voc dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.2309
|
| 22 |
+
- Roc Auc: 0.7662
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 0.0001
|
| 42 |
+
- train_batch_size: 16
|
| 43 |
+
- eval_batch_size: 16
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 3.0
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss | Roc Auc |
|
| 52 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|
|
| 53 |
+
| 0.4603 | 1.0 | 157 | 0.3015 | 0.6697 |
|
| 54 |
+
| 0.2922 | 2.0 | 314 | 0.2428 | 0.7435 |
|
| 55 |
+
| 0.2561 | 3.0 | 471 | 0.2309 | 0.7662 |
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
### Framework versions
|
| 59 |
+
|
| 60 |
+
- Transformers 4.55.3
|
| 61 |
+
- Pytorch 2.8.0+cu128
|
| 62 |
+
- Datasets 3.6.0
|
| 63 |
+
- Tokenizers 0.21.2
|
config.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"SwinForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"depths": [
|
| 7 |
+
2,
|
| 8 |
+
2,
|
| 9 |
+
18,
|
| 10 |
+
2
|
| 11 |
+
],
|
| 12 |
+
"drop_path_rate": 0.1,
|
| 13 |
+
"embed_dim": 128,
|
| 14 |
+
"encoder_stride": 32,
|
| 15 |
+
"hidden_act": "gelu",
|
| 16 |
+
"hidden_dropout_prob": 0.0,
|
| 17 |
+
"hidden_size": 1024,
|
| 18 |
+
"id2label": {
|
| 19 |
+
"0": "Aeroplane",
|
| 20 |
+
"1": "Bicycle",
|
| 21 |
+
"2": "Bird",
|
| 22 |
+
"3": "Boat",
|
| 23 |
+
"4": "Bottle",
|
| 24 |
+
"5": "Bus",
|
| 25 |
+
"6": "Car",
|
| 26 |
+
"7": "Cat",
|
| 27 |
+
"8": "Chair",
|
| 28 |
+
"9": "Cow",
|
| 29 |
+
"10": "Diningtable",
|
| 30 |
+
"11": "Dog",
|
| 31 |
+
"12": "Horse",
|
| 32 |
+
"13": "Motorbike",
|
| 33 |
+
"14": "Person",
|
| 34 |
+
"15": "Potted plant",
|
| 35 |
+
"16": "Sheep",
|
| 36 |
+
"17": "Sofa",
|
| 37 |
+
"18": "Train",
|
| 38 |
+
"19": "Tv/monitor"
|
| 39 |
+
},
|
| 40 |
+
"image_size": 224,
|
| 41 |
+
"initializer_range": 0.02,
|
| 42 |
+
"label2id": {
|
| 43 |
+
"Aeroplane": 0,
|
| 44 |
+
"Bicycle": 1,
|
| 45 |
+
"Bird": 2,
|
| 46 |
+
"Boat": 3,
|
| 47 |
+
"Bottle": 4,
|
| 48 |
+
"Bus": 5,
|
| 49 |
+
"Car": 6,
|
| 50 |
+
"Cat": 7,
|
| 51 |
+
"Chair": 8,
|
| 52 |
+
"Cow": 9,
|
| 53 |
+
"Diningtable": 10,
|
| 54 |
+
"Dog": 11,
|
| 55 |
+
"Horse": 12,
|
| 56 |
+
"Motorbike": 13,
|
| 57 |
+
"Person": 14,
|
| 58 |
+
"Potted plant": 15,
|
| 59 |
+
"Sheep": 16,
|
| 60 |
+
"Sofa": 17,
|
| 61 |
+
"Train": 18,
|
| 62 |
+
"Tv/monitor": 19
|
| 63 |
+
},
|
| 64 |
+
"layer_norm_eps": 1e-05,
|
| 65 |
+
"mlp_ratio": 4.0,
|
| 66 |
+
"model_type": "swin",
|
| 67 |
+
"num_channels": 3,
|
| 68 |
+
"num_heads": [
|
| 69 |
+
4,
|
| 70 |
+
8,
|
| 71 |
+
16,
|
| 72 |
+
32
|
| 73 |
+
],
|
| 74 |
+
"num_layers": 4,
|
| 75 |
+
"out_features": [
|
| 76 |
+
"stage4"
|
| 77 |
+
],
|
| 78 |
+
"out_indices": [
|
| 79 |
+
4
|
| 80 |
+
],
|
| 81 |
+
"patch_size": 4,
|
| 82 |
+
"path_norm": true,
|
| 83 |
+
"problem_type": "multi_label_classification",
|
| 84 |
+
"qkv_bias": true,
|
| 85 |
+
"stage_names": [
|
| 86 |
+
"stem",
|
| 87 |
+
"stage1",
|
| 88 |
+
"stage2",
|
| 89 |
+
"stage3",
|
| 90 |
+
"stage4"
|
| 91 |
+
],
|
| 92 |
+
"torch_dtype": "float32",
|
| 93 |
+
"transformers_version": "4.55.3",
|
| 94 |
+
"use_absolute_embeddings": false,
|
| 95 |
+
"window_size": 7
|
| 96 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73e56907922f512ba972b090a2d9e8e31f5d5f4fd76911440c0020184259fd4c
|
| 3 |
+
size 347572616
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92ef616127bdcbf20e859946968ea26378f11d9cdb56f13927158423d78a830f
|
| 3 |
+
size 5777
|