Image Classification
Transformers
TensorBoard
Safetensors
resnet
Generated from Trainer
Eval Results (legacy)
Instructions to use goodcasper/exp_result1_resnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use goodcasper/exp_result1_resnet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="goodcasper/exp_result1_resnet") 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("goodcasper/exp_result1_resnet") model = AutoModelForImageClassification.from_pretrained("goodcasper/exp_result1_resnet", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +100 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: microsoft/resnet-50
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- imagefolder
|
| 9 |
+
metrics:
|
| 10 |
+
- accuracy
|
| 11 |
+
- precision
|
| 12 |
+
- recall
|
| 13 |
+
- f1
|
| 14 |
+
model-index:
|
| 15 |
+
- name: exp_result1_resnet
|
| 16 |
+
results:
|
| 17 |
+
- task:
|
| 18 |
+
name: Image Classification
|
| 19 |
+
type: image-classification
|
| 20 |
+
dataset:
|
| 21 |
+
name: imagefolder
|
| 22 |
+
type: imagefolder
|
| 23 |
+
config: default
|
| 24 |
+
split: test
|
| 25 |
+
args: default
|
| 26 |
+
metrics:
|
| 27 |
+
- name: Accuracy
|
| 28 |
+
type: accuracy
|
| 29 |
+
value: 0.8670306965761512
|
| 30 |
+
- name: Precision
|
| 31 |
+
type: precision
|
| 32 |
+
value: 0.8883902785977921
|
| 33 |
+
- name: Recall
|
| 34 |
+
type: recall
|
| 35 |
+
value: 0.8670306965761512
|
| 36 |
+
- name: F1
|
| 37 |
+
type: f1
|
| 38 |
+
value: 0.8764560257962113
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 42 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 43 |
+
|
| 44 |
+
# exp_result1_resnet
|
| 45 |
+
|
| 46 |
+
This model is a fine-tuned version of [microsoft/resnet-50](https://huggingface.co/microsoft/resnet-50) on the imagefolder dataset.
|
| 47 |
+
It achieves the following results on the evaluation set:
|
| 48 |
+
- Loss: 0.6451
|
| 49 |
+
- Accuracy: 0.8670
|
| 50 |
+
- Precision: 0.8884
|
| 51 |
+
- Recall: 0.8670
|
| 52 |
+
- F1: 0.8765
|
| 53 |
+
|
| 54 |
+
## Model description
|
| 55 |
+
|
| 56 |
+
More information needed
|
| 57 |
+
|
| 58 |
+
## Intended uses & limitations
|
| 59 |
+
|
| 60 |
+
More information needed
|
| 61 |
+
|
| 62 |
+
## Training and evaluation data
|
| 63 |
+
|
| 64 |
+
More information needed
|
| 65 |
+
|
| 66 |
+
## Training procedure
|
| 67 |
+
|
| 68 |
+
### Training hyperparameters
|
| 69 |
+
|
| 70 |
+
The following hyperparameters were used during training:
|
| 71 |
+
- learning_rate: 0.0001
|
| 72 |
+
- train_batch_size: 24
|
| 73 |
+
- eval_batch_size: 4
|
| 74 |
+
- seed: 42
|
| 75 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 76 |
+
- lr_scheduler_type: linear
|
| 77 |
+
- num_epochs: 10
|
| 78 |
+
|
| 79 |
+
### Training results
|
| 80 |
+
|
| 81 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
| 82 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
| 83 |
+
| 0.2343 | 1.0 | 759 | 0.4630 | 0.8271 | 0.8560 | 0.8271 | 0.8405 |
|
| 84 |
+
| 0.0895 | 2.0 | 1518 | 0.5436 | 0.8557 | 0.8589 | 0.8557 | 0.8573 |
|
| 85 |
+
| 0.0576 | 3.0 | 2277 | 0.6000 | 0.8709 | 0.8675 | 0.8709 | 0.8692 |
|
| 86 |
+
| 0.0442 | 4.0 | 3036 | 0.5490 | 0.8676 | 0.8808 | 0.8676 | 0.8738 |
|
| 87 |
+
| 0.0353 | 5.0 | 3795 | 0.6611 | 0.8612 | 0.8758 | 0.8612 | 0.8680 |
|
| 88 |
+
| 0.0234 | 6.0 | 4554 | 0.6407 | 0.8556 | 0.8932 | 0.8556 | 0.8710 |
|
| 89 |
+
| 0.0232 | 7.0 | 5313 | 0.6700 | 0.8738 | 0.8735 | 0.8738 | 0.8736 |
|
| 90 |
+
| 0.0206 | 8.0 | 6072 | 0.6441 | 0.8717 | 0.8925 | 0.8717 | 0.8808 |
|
| 91 |
+
| 0.0197 | 9.0 | 6831 | 0.7248 | 0.8517 | 0.8927 | 0.8517 | 0.8684 |
|
| 92 |
+
| 0.0161 | 10.0 | 7590 | 0.6451 | 0.8670 | 0.8884 | 0.8670 | 0.8765 |
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
### Framework versions
|
| 96 |
+
|
| 97 |
+
- Transformers 4.53.0.dev0
|
| 98 |
+
- Pytorch 2.7.1+cu126
|
| 99 |
+
- Datasets 3.6.0
|
| 100 |
+
- Tokenizers 0.21.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 94302952
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:091329edfaebf787e58c5b8440451dda91d2d5129bf56c7aa2af57193a7edaa8
|
| 3 |
size 94302952
|