SiddharthaM
commited on
Commit
•
8a998d5
1
Parent(s):
5db9bb2
update model card README.md
Browse files
README.md
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- imagefolder
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
model-index:
|
13 |
+
- name: resnet-18-feature-extraction
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Image Classification
|
17 |
+
type: image-classification
|
18 |
+
dataset:
|
19 |
+
name: imagefolder
|
20 |
+
type: imagefolder
|
21 |
+
config: default
|
22 |
+
split: train
|
23 |
+
args: default
|
24 |
+
metrics:
|
25 |
+
- name: Accuracy
|
26 |
+
type: accuracy
|
27 |
+
value: 0.95
|
28 |
+
- name: Precision
|
29 |
+
type: precision
|
30 |
+
value: 0.9652777777777778
|
31 |
+
- name: Recall
|
32 |
+
type: recall
|
33 |
+
value: 0.9788732394366197
|
34 |
+
- name: F1
|
35 |
+
type: f1
|
36 |
+
value: 0.972027972027972
|
37 |
+
---
|
38 |
+
|
39 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
40 |
+
should probably proofread and complete it, then remove this comment. -->
|
41 |
+
|
42 |
+
# resnet-18-feature-extraction
|
43 |
+
|
44 |
+
This model is a fine-tuned version of [microsoft/resnet-18](https://huggingface.co/microsoft/resnet-18) on the imagefolder dataset.
|
45 |
+
It achieves the following results on the evaluation set:
|
46 |
+
- Loss: 0.1485
|
47 |
+
- Accuracy: 0.95
|
48 |
+
- Precision: 0.9653
|
49 |
+
- Recall: 0.9789
|
50 |
+
- F1: 0.9720
|
51 |
+
- Roc Auc: 0.8505
|
52 |
+
|
53 |
+
## Model description
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
|
59 |
+
More information needed
|
60 |
+
|
61 |
+
## Training and evaluation data
|
62 |
+
|
63 |
+
More information needed
|
64 |
+
|
65 |
+
## Training procedure
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
- learning_rate: 2e-05
|
71 |
+
- train_batch_size: 64
|
72 |
+
- eval_batch_size: 64
|
73 |
+
- seed: 42
|
74 |
+
- gradient_accumulation_steps: 4
|
75 |
+
- total_train_batch_size: 256
|
76 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
77 |
+
- lr_scheduler_type: linear
|
78 |
+
- lr_scheduler_warmup_ratio: 0.1
|
79 |
+
- num_epochs: 50
|
80 |
+
|
81 |
+
### Training results
|
82 |
+
|
83 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Roc Auc |
|
84 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:-------:|
|
85 |
+
| No log | 0.8 | 2 | 0.6232 | 0.75 | 0.9636 | 0.7465 | 0.8413 | 0.7621 |
|
86 |
+
| No log | 1.8 | 4 | 0.6971 | 0.4875 | 1.0 | 0.4225 | 0.5941 | 0.7113 |
|
87 |
+
| No log | 2.8 | 6 | 0.7915 | 0.2875 | 1.0 | 0.1972 | 0.3294 | 0.5986 |
|
88 |
+
| No log | 3.8 | 8 | 0.8480 | 0.2875 | 1.0 | 0.1972 | 0.3294 | 0.5986 |
|
89 |
+
| 0.8651 | 4.8 | 10 | 0.9094 | 0.2562 | 1.0 | 0.1620 | 0.2788 | 0.5810 |
|
90 |
+
| 0.8651 | 5.8 | 12 | 0.7470 | 0.5625 | 1.0 | 0.5070 | 0.6729 | 0.7535 |
|
91 |
+
| 0.8651 | 6.8 | 14 | 0.5915 | 0.85 | 1.0 | 0.8310 | 0.9077 | 0.9155 |
|
92 |
+
| 0.8651 | 7.8 | 16 | 0.4817 | 0.8875 | 0.9844 | 0.8873 | 0.9333 | 0.8881 |
|
93 |
+
| 0.8651 | 8.8 | 18 | 0.3455 | 0.9187 | 0.9778 | 0.9296 | 0.9531 | 0.8815 |
|
94 |
+
| 0.5349 | 9.8 | 20 | 0.2966 | 0.9187 | 0.9708 | 0.9366 | 0.9534 | 0.8572 |
|
95 |
+
| 0.5349 | 10.8 | 22 | 0.2347 | 0.95 | 0.9653 | 0.9789 | 0.9720 | 0.8505 |
|
96 |
+
| 0.5349 | 11.8 | 24 | 0.2468 | 0.9313 | 0.9645 | 0.9577 | 0.9611 | 0.8400 |
|
97 |
+
| 0.5349 | 12.8 | 26 | 0.2310 | 0.9563 | 0.9720 | 0.9789 | 0.9754 | 0.8783 |
|
98 |
+
| 0.5349 | 13.8 | 28 | 0.2083 | 0.9313 | 0.9580 | 0.9648 | 0.9614 | 0.8157 |
|
99 |
+
| 0.3593 | 14.8 | 30 | 0.1840 | 0.9375 | 0.9521 | 0.9789 | 0.9653 | 0.7950 |
|
100 |
+
| 0.3593 | 15.8 | 32 | 0.1947 | 0.9375 | 0.9648 | 0.9648 | 0.9648 | 0.8435 |
|
101 |
+
| 0.3593 | 16.8 | 34 | 0.1837 | 0.9313 | 0.9517 | 0.9718 | 0.9617 | 0.7915 |
|
102 |
+
| 0.3593 | 17.8 | 36 | 0.1819 | 0.9437 | 0.9524 | 0.9859 | 0.9689 | 0.7985 |
|
103 |
+
| 0.3593 | 18.8 | 38 | 0.1924 | 0.9437 | 0.9650 | 0.9718 | 0.9684 | 0.8470 |
|
104 |
+
| 0.2737 | 19.8 | 40 | 0.1990 | 0.95 | 0.9653 | 0.9789 | 0.9720 | 0.8505 |
|
105 |
+
| 0.2737 | 20.8 | 42 | 0.1759 | 0.95 | 0.9718 | 0.9718 | 0.9718 | 0.8748 |
|
106 |
+
| 0.2737 | 21.8 | 44 | 0.1804 | 0.9313 | 0.9517 | 0.9718 | 0.9617 | 0.7915 |
|
107 |
+
| 0.2737 | 22.8 | 46 | 0.1666 | 0.9313 | 0.9517 | 0.9718 | 0.9617 | 0.7915 |
|
108 |
+
| 0.2737 | 23.8 | 48 | 0.1534 | 0.9437 | 0.9524 | 0.9859 | 0.9689 | 0.7985 |
|
109 |
+
| 0.2278 | 24.8 | 50 | 0.1612 | 0.9375 | 0.9521 | 0.9789 | 0.9653 | 0.7950 |
|
110 |
+
| 0.2278 | 25.8 | 52 | 0.1535 | 0.9437 | 0.9586 | 0.9789 | 0.9686 | 0.8228 |
|
111 |
+
| 0.2278 | 26.8 | 54 | 0.1568 | 0.9437 | 0.9716 | 0.9648 | 0.9682 | 0.8713 |
|
112 |
+
| 0.2278 | 27.8 | 56 | 0.2107 | 0.9375 | 0.9714 | 0.9577 | 0.9645 | 0.8678 |
|
113 |
+
| 0.2278 | 28.8 | 58 | 0.1592 | 0.9313 | 0.9517 | 0.9718 | 0.9617 | 0.7915 |
|
114 |
+
| 0.2057 | 29.8 | 60 | 0.1557 | 0.9375 | 0.9648 | 0.9648 | 0.9648 | 0.8435 |
|
115 |
+
| 0.2057 | 30.8 | 62 | 0.1714 | 0.9437 | 0.9650 | 0.9718 | 0.9684 | 0.8470 |
|
116 |
+
| 0.2057 | 31.8 | 64 | 0.1571 | 0.95 | 0.9653 | 0.9789 | 0.9720 | 0.8505 |
|
117 |
+
| 0.2057 | 32.8 | 66 | 0.1574 | 0.9375 | 0.9583 | 0.9718 | 0.9650 | 0.8192 |
|
118 |
+
| 0.2057 | 33.8 | 68 | 0.1423 | 0.9563 | 0.9720 | 0.9789 | 0.9754 | 0.8783 |
|
119 |
+
| 0.2 | 34.8 | 70 | 0.1677 | 0.9437 | 0.9650 | 0.9718 | 0.9684 | 0.8470 |
|
120 |
+
| 0.2 | 35.8 | 72 | 0.1560 | 0.9375 | 0.9583 | 0.9718 | 0.9650 | 0.8192 |
|
121 |
+
| 0.2 | 36.8 | 74 | 0.1594 | 0.9375 | 0.9521 | 0.9789 | 0.9653 | 0.7950 |
|
122 |
+
| 0.2 | 37.8 | 76 | 0.1512 | 0.9437 | 0.9586 | 0.9789 | 0.9686 | 0.8228 |
|
123 |
+
| 0.2 | 38.8 | 78 | 0.1396 | 0.9563 | 0.9655 | 0.9859 | 0.9756 | 0.8541 |
|
124 |
+
| 0.1838 | 39.8 | 80 | 0.1509 | 0.9375 | 0.9583 | 0.9718 | 0.9650 | 0.8192 |
|
125 |
+
| 0.1838 | 40.8 | 82 | 0.1529 | 0.95 | 0.9718 | 0.9718 | 0.9718 | 0.8748 |
|
126 |
+
| 0.1838 | 41.8 | 84 | 0.1506 | 0.95 | 0.9653 | 0.9789 | 0.9720 | 0.8505 |
|
127 |
+
| 0.1838 | 42.8 | 86 | 0.1549 | 0.95 | 0.9653 | 0.9789 | 0.9720 | 0.8505 |
|
128 |
+
| 0.1838 | 43.8 | 88 | 0.1331 | 0.9563 | 0.9655 | 0.9859 | 0.9756 | 0.8541 |
|
129 |
+
| 0.1872 | 44.8 | 90 | 0.1409 | 0.9437 | 0.9524 | 0.9859 | 0.9689 | 0.7985 |
|
130 |
+
| 0.1872 | 45.8 | 92 | 0.1639 | 0.9375 | 0.9583 | 0.9718 | 0.9650 | 0.8192 |
|
131 |
+
| 0.1872 | 46.8 | 94 | 0.1391 | 0.95 | 0.9589 | 0.9859 | 0.9722 | 0.8263 |
|
132 |
+
| 0.1872 | 47.8 | 96 | 0.1436 | 0.9563 | 0.9655 | 0.9859 | 0.9756 | 0.8541 |
|
133 |
+
| 0.1872 | 48.8 | 98 | 0.1442 | 0.9437 | 0.9586 | 0.9789 | 0.9686 | 0.8228 |
|
134 |
+
| 0.185 | 49.8 | 100 | 0.1485 | 0.95 | 0.9653 | 0.9789 | 0.9720 | 0.8505 |
|
135 |
+
|
136 |
+
|
137 |
+
### Framework versions
|
138 |
+
|
139 |
+
- Transformers 4.24.0.dev0
|
140 |
+
- Pytorch 1.11.0+cu102
|
141 |
+
- Datasets 2.6.1
|
142 |
+
- Tokenizers 0.13.1
|