Instructions to use Moussito/tpmlops with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Moussito/tpmlops with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Moussito/tpmlops") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Moussito/tpmlops", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,212 Bytes
9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f 306e2e4 9b1a66f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
---
library_name: transformers
pipeline_tag: image-classification
tags:
- image-classification
- vit
- beans
datasets:
- AI-Lab-Makerere/beans
---
# ViT Beans Classifier
This model is a Vision Transformer fine-tuned for bean leaf disease classification.
## Model
Repository: Moussito/tpmlops
Base architecture: Vision Transformer (ViT)
## Dataset
Dataset: AI-Lab-Makerere/beans
The model classifies bean leaf images into three classes:
- angular_leaf_spot
- bean_rust
- healthy
## Evaluation
Accuracy: 0.9849624060150376
Evaluation loss: 0.08576356619596481
## Usage
Use the model with the Hugging Face image-classification pipeline and the repository Moussito/tpmlops.
## Example result
The published model was successfully tested on the Beans test dataset.
True class: angular_leaf_spot
Predicted class: angular_leaf_spot
Confidence: approximately 96 percent.
## MLOps
This project demonstrates:
- Model fine-tuning
- Model evaluation
- Publication to Hugging Face Hub
- Model Card documentation
- Inference from Hugging Face Hub
- Deployment with Hugging Face Spaces
## Limitations
This model was created for educational purposes and was fine-tuned specifically on the Beans dataset.
|