Image Classification
Transformers
TensorBoard
Safetensors
convnext
Generated from Trainer
Eval Results (legacy)
Instructions to use rukundob451/convnext-tiny-224-finetuned-papsmear with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rukundob451/convnext-tiny-224-finetuned-papsmear with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="rukundob451/convnext-tiny-224-finetuned-papsmear") 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("rukundob451/convnext-tiny-224-finetuned-papsmear") model = AutoModelForImageClassification.from_pretrained("rukundob451/convnext-tiny-224-finetuned-papsmear", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +25 -24
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: facebook/convnext-tiny-224
|
| 4 |
tags:
|
|
@@ -22,7 +23,7 @@ model-index:
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
-
value: 0.
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -32,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 32 |
|
| 33 |
This model is a fine-tuned version of [facebook/convnext-tiny-224](https://huggingface.co/facebook/convnext-tiny-224) on the imagefolder dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
-
- Loss: 0.
|
| 36 |
-
- Accuracy: 0.
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
@@ -53,11 +54,11 @@ More information needed
|
|
| 53 |
|
| 54 |
The following hyperparameters were used during training:
|
| 55 |
- learning_rate: 5e-05
|
| 56 |
-
- train_batch_size:
|
| 57 |
-
- eval_batch_size:
|
| 58 |
- seed: 42
|
| 59 |
- gradient_accumulation_steps: 4
|
| 60 |
-
- total_train_batch_size:
|
| 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
|
|
@@ -67,26 +68,26 @@ The following hyperparameters were used during training:
|
|
| 67 |
|
| 68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
| 70 |
-
| 1.
|
| 71 |
-
| 1.
|
| 72 |
-
|
|
| 73 |
-
|
|
| 74 |
-
|
|
| 75 |
-
| 0.
|
| 76 |
-
| 0.
|
| 77 |
-
| 0.
|
| 78 |
-
| 0.
|
| 79 |
-
| 0.
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
|
| 86 |
|
| 87 |
### Framework versions
|
| 88 |
|
| 89 |
-
- Transformers 4.44.
|
| 90 |
-
- Pytorch 2.4.
|
| 91 |
-
- Datasets
|
| 92 |
- Tokenizers 0.19.1
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: facebook/convnext-tiny-224
|
| 5 |
tags:
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.8529411764705882
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [facebook/convnext-tiny-224](https://huggingface.co/facebook/convnext-tiny-224) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.4485
|
| 37 |
+
- Accuracy: 0.8529
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 54 |
|
| 55 |
The following hyperparameters were used during training:
|
| 56 |
- learning_rate: 5e-05
|
| 57 |
+
- train_batch_size: 8
|
| 58 |
+
- eval_batch_size: 8
|
| 59 |
- seed: 42
|
| 60 |
- gradient_accumulation_steps: 4
|
| 61 |
+
- total_train_batch_size: 32
|
| 62 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 63 |
- lr_scheduler_type: linear
|
| 64 |
- lr_scheduler_warmup_ratio: 0.1
|
|
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 1.4789 | 0.9935 | 38 | 1.4474 | 0.3235 |
|
| 72 |
+
| 1.2481 | 1.9869 | 76 | 1.0898 | 0.6397 |
|
| 73 |
+
| 0.9694 | 2.9804 | 114 | 0.9261 | 0.6471 |
|
| 74 |
+
| 0.8414 | 4.0 | 153 | 0.8016 | 0.7059 |
|
| 75 |
+
| 0.7675 | 4.9935 | 191 | 0.7258 | 0.7426 |
|
| 76 |
+
| 0.7131 | 5.9869 | 229 | 0.7147 | 0.7353 |
|
| 77 |
+
| 0.5973 | 6.9804 | 267 | 0.7040 | 0.7353 |
|
| 78 |
+
| 0.5543 | 8.0 | 306 | 0.6064 | 0.7941 |
|
| 79 |
+
| 0.4903 | 8.9935 | 344 | 0.5418 | 0.8382 |
|
| 80 |
+
| 0.3942 | 9.9869 | 382 | 0.5043 | 0.8456 |
|
| 81 |
+
| 0.3721 | 10.9804 | 420 | 0.4922 | 0.8456 |
|
| 82 |
+
| 0.4036 | 12.0 | 459 | 0.4944 | 0.8309 |
|
| 83 |
+
| 0.3444 | 12.9935 | 497 | 0.4760 | 0.8529 |
|
| 84 |
+
| 0.3385 | 13.9869 | 535 | 0.4597 | 0.8603 |
|
| 85 |
+
| 0.3161 | 14.9020 | 570 | 0.4485 | 0.8529 |
|
| 86 |
|
| 87 |
|
| 88 |
### Framework versions
|
| 89 |
|
| 90 |
+
- Transformers 4.44.2
|
| 91 |
+
- Pytorch 2.4.1+cu121
|
| 92 |
+
- Datasets 3.0.0
|
| 93 |
- Tokenizers 0.19.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 111320240
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75191f86def14e1b3bb3f3f25b0f3cabb9d0e3cdf6c6ee7673fda2e3f3fcefc7
|
| 3 |
size 111320240
|