Update README.md
Browse files
README.md
CHANGED
@@ -1,13 +1,44 @@
|
|
1 |
---
|
2 |
title: Bean Plant Health ViT Classifier
|
3 |
-
emoji:
|
4 |
colorFrom: green
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: afl-3.0
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
title: Bean Plant Health ViT Classifier
|
3 |
+
emoji: 🌱📸🩺
|
4 |
colorFrom: green
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.41.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: afl-3.0
|
11 |
---
|
12 |
|
13 |
+
# Bean Plant Health Predictor
|
14 |
+
|
15 |
+
This application is designed to help farmers quickly identify the health of bean plants by analyzing images of their leaves. The app uses a Vision Transformer (ViT) model to classify images into three categories: **angular_leaf_spot**, **bean_rust**, and **healthy**. This tool can be deployed on a drone for real-time monitoring of crops, enabling timely treatment of diseased plants.
|
16 |
+
|
17 |
+
## Use Case
|
18 |
+
|
19 |
+
Farmers need to monitor the health of their bean plants regularly to prevent the spread of diseases. This app provides a machine learning-based solution to automate the identification of plant diseases, which can be particularly useful when integrated with drone technology.
|
20 |
+
|
21 |
+
## Features
|
22 |
+
|
23 |
+
- **Image Classification**: Upload an image of a bean leaf, and the app will classify it into one of the following categories:
|
24 |
+
- Angular Leaf Spot
|
25 |
+
- Bean Rust
|
26 |
+
- Healthy
|
27 |
+
|
28 |
+
## Model Details
|
29 |
+
|
30 |
+
- **Model Used**: [Vision Transformer (ViT) - base-sized model](https://huggingface.co/google/vit-base-patch16-224) fine-tuned on the [Beans dataset](https://huggingface.co/datasets/beans).
|
31 |
+
- **Image Processor**: The app uses the `ViTImageProcessor` for preparing images before classification.
|
32 |
+
- **Labels**: The possible outcomes are `angular_leaf_spot`, `bean_rust`, and `healthy`.
|
33 |
+
|
34 |
+
## How to Use
|
35 |
+
|
36 |
+
1. **Upload an Image**: Click on the image input field and upload a photo of a bean leaf.
|
37 |
+
2. **Get Results**: The app will classify the image and display the probabilities for each category.
|
38 |
+
3. **Interpret the Results**: The app shows the confidence levels for each label, helping farmers identify whether the plant is healthy or requires treatment.
|
39 |
+
|
40 |
+
## Technology Stack
|
41 |
+
|
42 |
+
- **Gradio**: Used to create the user interface.
|
43 |
+
- **PyTorch**: Utilized for running the model inference.
|
44 |
+
- **Hugging Face Transformers**: Provides the pre-trained Vision Transformer model.
|