Instructions to use aaa12963337/msi-resnet-18-pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aaa12963337/msi-resnet-18-pretrain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="aaa12963337/msi-resnet-18-pretrain") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("aaa12963337/msi-resnet-18-pretrain") model = AutoModelForImageClassification.from_pretrained("aaa12963337/msi-resnet-18-pretrain", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
ef7008f
1
Parent(s): 5ed6ae1
End of training
Browse files- README.md +28 -9
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -5,9 +5,24 @@ tags:
|
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
| 7 |
- imagefolder
|
|
|
|
|
|
|
| 8 |
model-index:
|
| 9 |
- name: msi-resnet-18-pretrain
|
| 10 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -17,13 +32,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [microsoft/resnet-18](https://huggingface.co/microsoft/resnet-18) on the imagefolder dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
- eval_runtime: 45.6695
|
| 23 |
-
- eval_samples_per_second: 157.216
|
| 24 |
-
- eval_steps_per_second: 9.831
|
| 25 |
-
- epoch: 2.0
|
| 26 |
-
- step: 3125
|
| 27 |
|
| 28 |
## Model description
|
| 29 |
|
|
@@ -51,7 +61,16 @@ The following hyperparameters were used during training:
|
|
| 51 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 52 |
- lr_scheduler_type: linear
|
| 53 |
- lr_scheduler_warmup_ratio: 0.1
|
| 54 |
-
- num_epochs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
### Framework versions
|
| 57 |
|
|
|
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
| 7 |
- imagefolder
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
model-index:
|
| 11 |
- name: msi-resnet-18-pretrain
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Image Classification
|
| 15 |
+
type: image-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: imagefolder
|
| 18 |
+
type: imagefolder
|
| 19 |
+
config: default
|
| 20 |
+
split: validation
|
| 21 |
+
args: default
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.8675487465181059
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 32 |
|
| 33 |
This model is a fine-tuned version of [microsoft/resnet-18](https://huggingface.co/microsoft/resnet-18) on the imagefolder dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.4121
|
| 36 |
+
- Accuracy: 0.8675
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
|
|
| 61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
- lr_scheduler_type: linear
|
| 63 |
- lr_scheduler_warmup_ratio: 0.1
|
| 64 |
+
- num_epochs: 3
|
| 65 |
+
|
| 66 |
+
### Training results
|
| 67 |
+
|
| 68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
+
| 0.1724 | 1.0 | 1562 | 0.3597 | 0.8806 |
|
| 71 |
+
| 0.0543 | 2.0 | 3125 | 0.3707 | 0.8875 |
|
| 72 |
+
| 0.0834 | 3.0 | 4686 | 0.4121 | 0.8675 |
|
| 73 |
+
|
| 74 |
|
| 75 |
### Framework versions
|
| 76 |
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 44778700
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f846819b6d30be6b510dbda3e42b31cb291224b57f2d12fae6135e6a8d830ca6
|
| 3 |
size 44778700
|