Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: en
|
3 |
+
tags:
|
4 |
+
- tensorflow
|
5 |
+
- classification
|
6 |
+
- plant-disease-detection
|
7 |
+
license: mit
|
8 |
+
---
|
9 |
+
|
10 |
+
# Leafy Vegetable Disease Detection Model
|
11 |
+
|
12 |
+
## Model Description
|
13 |
+
This model is trained to detect diseases in leafy vegetables using images. It utilizes the PlantVillage dataset to identify various plant diseases.
|
14 |
+
|
15 |
+
## Intended Use
|
16 |
+
This model can be used for:
|
17 |
+
- Detecting diseases in images of leafy vegetables.
|
18 |
+
- Providing feedback and recommendations for farmers and agricultural specialists.
|
19 |
+
|
20 |
+
## How to Use
|
21 |
+
You can use this model by sending an image of a leafy vegetable to the Inference API endpoint.
|
22 |
+
|
23 |
+
## Model Details
|
24 |
+
- **Input**: Image (JPEG/PNG)
|
25 |
+
- **Output**: Prediction of disease type with confidence scores.
|
26 |
+
|
27 |
+
## Training Data
|
28 |
+
This model is trained on the PlantVillage dataset, which contains labeled images of healthy and diseased plants.
|
29 |
+
|
30 |
+
## Limitations
|
31 |
+
- The model's performance may vary based on image quality and environmental conditions.
|
32 |
+
- It may not recognize diseases not present in the training dataset.
|
33 |
+
|
34 |
+
## Example
|
35 |
+
Here’s an example of how to use this model with the Inference API:
|
36 |
+
|
37 |
+
```python
|
38 |
+
import requests
|
39 |
+
|
40 |
+
url = "https://api-inference.huggingface.co/models/JayGab/Leafy-Vegetable-Disease-Detection"
|
41 |
+
|
42 |
+
files = {'file': open('path_to_image.jpg', 'rb')}
|
43 |
+
response = requests.post(url, files=files)
|
44 |
+
print(response.json())
|