Image Classification
timm
English
classifier-lab
embry-os
automated-ml
beans
plant-disease
Eval Results (legacy)
Instructions to use grahamaco/beans-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use grahamaco/beans-classifier with timm:
import timm model = timm.create_model("hf_hub:grahamaco/beans-classifier", pretrained=True) - Notebooks
- Google Colab
- Kaggle
| { | |
| "model": "efficientnet_b0", | |
| "dataset": "AI-Lab-Makerere/beans", | |
| "test_samples": 128, | |
| "classes": [ | |
| "angular_leaf_spot", | |
| "bean_rust", | |
| "healthy" | |
| ], | |
| "classification_report": { | |
| "angular_leaf_spot": { | |
| "precision": 0.9230769230769231, | |
| "recall": 0.8372093023255814, | |
| "f1-score": 0.8780487804878049, | |
| "support": 43.0 | |
| }, | |
| "bean_rust": { | |
| "precision": 0.8723404255319149, | |
| "recall": 0.9534883720930233, | |
| "f1-score": 0.9111111111111111, | |
| "support": 43.0 | |
| }, | |
| "healthy": { | |
| "precision": 0.9761904761904762, | |
| "recall": 0.9761904761904762, | |
| "f1-score": 0.9761904761904762, | |
| "support": 42.0 | |
| }, | |
| "accuracy": 0.921875, | |
| "macro avg": { | |
| "precision": 0.9238692749331047, | |
| "recall": 0.922296050203027, | |
| "f1-score": 0.9217834559297974, | |
| "support": 128.0 | |
| }, | |
| "weighted avg": { | |
| "precision": 0.9234605155482816, | |
| "recall": 0.921875, | |
| "f1-score": 0.9213584010840108, | |
| "support": 128.0 | |
| } | |
| }, | |
| "confusion_matrix": [ | |
| [ | |
| 36, | |
| 6, | |
| 1 | |
| ], | |
| [ | |
| 2, | |
| 41, | |
| 0 | |
| ], | |
| [ | |
| 1, | |
| 0, | |
| 41 | |
| ] | |
| ], | |
| "macro_f1": 0.9217834559297974, | |
| "accuracy": 0.921875, | |
| "per_class": { | |
| "angular_leaf_spot": { | |
| "precision": 0.9230769230769231, | |
| "recall": 0.8372093023255814, | |
| "f1": 0.8780487804878049, | |
| "support": 43.0 | |
| }, | |
| "bean_rust": { | |
| "precision": 0.8723404255319149, | |
| "recall": 0.9534883720930233, | |
| "f1": 0.9111111111111111, | |
| "support": 43.0 | |
| }, | |
| "healthy": { | |
| "precision": 0.9761904761904762, | |
| "recall": 0.9761904761904762, | |
| "f1": 0.9761904761904762, | |
| "support": 42.0 | |
| } | |
| }, | |
| "holdout_passed": true, | |
| "self_improvement_history": [ | |
| { | |
| "round": 1, | |
| "config": { | |
| "epochs": 10, | |
| "lr": 0.0002, | |
| "augment": 1 | |
| }, | |
| "val_f1": 0.9328, | |
| "test_f1": 0.8762, | |
| "passed": false | |
| }, | |
| { | |
| "round": 2, | |
| "config": { | |
| "epochs": 15, | |
| "lr": 0.0001, | |
| "augment": 2 | |
| }, | |
| "val_f1": 0.924, | |
| "test_f1": 0.9218, | |
| "passed": true | |
| } | |
| ], | |
| "winning_round": 2, | |
| "winning_config": { | |
| "epochs": 15, | |
| "lr": 0.0001, | |
| "augment": 2 | |
| } | |
| } |