distill-beans-vit-224-to-mobile-net-v2
Browse files- README.md +75 -0
- config.json +34 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
datasets:
|
5 |
+
- beans
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: distill-beans-vit-224-to-mobile-net-v2
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
name: Image Classification
|
13 |
+
type: image-classification
|
14 |
+
dataset:
|
15 |
+
name: beans
|
16 |
+
type: beans
|
17 |
+
config: default
|
18 |
+
split: validation
|
19 |
+
args: default
|
20 |
+
metrics:
|
21 |
+
- name: Accuracy
|
22 |
+
type: accuracy
|
23 |
+
value: 0.421875
|
24 |
+
---
|
25 |
+
|
26 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
27 |
+
should probably proofread and complete it, then remove this comment. -->
|
28 |
+
|
29 |
+
# distill-beans-vit-224-to-mobile-net-v2
|
30 |
+
|
31 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on the beans dataset.
|
32 |
+
It achieves the following results on the evaluation set:
|
33 |
+
- Loss: 0.7831
|
34 |
+
- Accuracy: 0.4219
|
35 |
+
|
36 |
+
## Model description
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Intended uses & limitations
|
41 |
+
|
42 |
+
More information needed
|
43 |
+
|
44 |
+
## Training and evaluation data
|
45 |
+
|
46 |
+
More information needed
|
47 |
+
|
48 |
+
## Training procedure
|
49 |
+
|
50 |
+
### Training hyperparameters
|
51 |
+
|
52 |
+
The following hyperparameters were used during training:
|
53 |
+
- learning_rate: 5e-05
|
54 |
+
- train_batch_size: 16
|
55 |
+
- eval_batch_size: 16
|
56 |
+
- seed: 42
|
57 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
58 |
+
- lr_scheduler_type: linear
|
59 |
+
- num_epochs: 2
|
60 |
+
- mixed_precision_training: Native AMP
|
61 |
+
|
62 |
+
### Training results
|
63 |
+
|
64 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
65 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
66 |
+
| 0.9165 | 1.0 | 65 | 0.7967 | 0.4361 |
|
67 |
+
| 0.8929 | 2.0 | 130 | 0.7908 | 0.4211 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.35.2
|
73 |
+
- Pytorch 2.0.0
|
74 |
+
- Datasets 2.15.0
|
75 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"MobileNetV2ForImageClassification"
|
4 |
+
],
|
5 |
+
"classifier_dropout_prob": 0.8,
|
6 |
+
"depth_divisible_by": 8,
|
7 |
+
"depth_multiplier": 1.0,
|
8 |
+
"expand_ratio": 6.0,
|
9 |
+
"finegrained_output": true,
|
10 |
+
"first_layer_is_expansion": true,
|
11 |
+
"hidden_act": "relu6",
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2"
|
16 |
+
},
|
17 |
+
"image_size": 224,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"label2id": {
|
20 |
+
"LABEL_0": 0,
|
21 |
+
"LABEL_1": 1,
|
22 |
+
"LABEL_2": 2
|
23 |
+
},
|
24 |
+
"layer_norm_eps": 0.001,
|
25 |
+
"min_depth": 8,
|
26 |
+
"model_type": "mobilenet_v2",
|
27 |
+
"num_channels": 3,
|
28 |
+
"output_stride": 32,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"semantic_loss_ignore_index": 255,
|
31 |
+
"tf_padding": true,
|
32 |
+
"torch_dtype": "float32",
|
33 |
+
"transformers_version": "4.35.2"
|
34 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2c60fc0b90c1c101a4e396f37c4a84f5b0a32148f6c9964c38157012dbf2084
|
3 |
+
size 9085340
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b73361cff2bcc06e114e868c444f3c5733342de7e97a008c491b432511d4ed65
|
3 |
+
size 4219
|