Image Classification
Transformers
TensorBoard
Safetensors
mobilenet_v2
Generated from Trainer
Eval Results (legacy)
Instructions to use ozair23/mobilenet_v2_1.0_224-finetuned-plantdisease with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ozair23/mobilenet_v2_1.0_224-finetuned-plantdisease with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ozair23/mobilenet_v2_1.0_224-finetuned-plantdisease") 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("ozair23/mobilenet_v2_1.0_224-finetuned-plantdisease") model = AutoModelForImageClassification.from_pretrained("ozair23/mobilenet_v2_1.0_224-finetuned-plantdisease", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +16 -26
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -23,7 +23,7 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
-
value: 0.
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [google/mobilenet_v2_1.0_224](https://huggingface.co/google/mobilenet_v2_1.0_224) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
-
- Loss: 0.
|
| 37 |
-
- Accuracy: 0.
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
@@ -62,32 +62,22 @@ The following hyperparameters were used during training:
|
|
| 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
|
| 65 |
-
- num_epochs:
|
| 66 |
|
| 67 |
### Training results
|
| 68 |
|
| 69 |
-
| Training Loss | Epoch
|
| 70 |
-
|:-------------:|:------
|
| 71 |
-
|
|
| 72 |
-
| 0.
|
| 73 |
-
| 0.
|
| 74 |
-
| 0.
|
| 75 |
-
| 0.
|
| 76 |
-
| 0.
|
| 77 |
-
| 0.
|
| 78 |
-
| 0.
|
| 79 |
-
| 0.
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.1504 | 10.9948 | 1597 | 0.3021 | 0.8973 |
|
| 82 |
-
| 0.1456 | 12.0 | 1743 | 0.2422 | 0.9225 |
|
| 83 |
-
| 0.119 | 12.9983 | 1888 | 0.2836 | 0.9021 |
|
| 84 |
-
| 0.114 | 13.9966 | 2033 | 0.2038 | 0.9293 |
|
| 85 |
-
| 0.1378 | 14.9948 | 2178 | 0.2173 | 0.9239 |
|
| 86 |
-
| 0.1249 | 16.0 | 2324 | 0.2467 | 0.9186 |
|
| 87 |
-
| 0.1504 | 16.9983 | 2469 | 0.2322 | 0.9254 |
|
| 88 |
-
| 0.0972 | 17.9966 | 2614 | 0.0841 | 0.9782 |
|
| 89 |
-
| 0.1293 | 18.9948 | 2759 | 0.1512 | 0.9467 |
|
| 90 |
-
| 0.1072 | 19.9656 | 2900 | 0.1663 | 0.9448 |
|
| 91 |
|
| 92 |
|
| 93 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.9750797937638105
|
| 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 [google/mobilenet_v2_1.0_224](https://huggingface.co/google/mobilenet_v2_1.0_224) on the imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.0750
|
| 37 |
+
- Accuracy: 0.9751
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 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
|
| 65 |
+
- num_epochs: 10
|
| 66 |
|
| 67 |
### Training results
|
| 68 |
|
| 69 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
+
|:-------------:|:------:|:-----:|:---------------:|:--------:|
|
| 71 |
+
| 0.3974 | 0.9996 | 1145 | 0.3599 | 0.8979 |
|
| 72 |
+
| 0.2155 | 2.0 | 2291 | 0.1525 | 0.9603 |
|
| 73 |
+
| 0.2058 | 2.9996 | 3436 | 0.1492 | 0.9559 |
|
| 74 |
+
| 0.1524 | 4.0 | 4582 | 0.1025 | 0.9694 |
|
| 75 |
+
| 0.1274 | 4.9996 | 5727 | 0.0928 | 0.9706 |
|
| 76 |
+
| 0.1141 | 6.0 | 6873 | 0.0874 | 0.9723 |
|
| 77 |
+
| 0.1275 | 6.9996 | 8018 | 0.1226 | 0.9620 |
|
| 78 |
+
| 0.1323 | 8.0 | 9164 | 0.0702 | 0.9777 |
|
| 79 |
+
| 0.1212 | 8.9996 | 10309 | 0.1257 | 0.9607 |
|
| 80 |
+
| 0.0981 | 9.9956 | 11450 | 0.0750 | 0.9751 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
|
| 83 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9264680
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c97c32b7a50a8ac61bcb910fa045e509d703b3cd18aa9bc33b8ded050b40d74c
|
| 3 |
size 9264680
|