File size: 1,341 Bytes
c198fd1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language: en
tags:
  - tensorflow
  - classification
  - plant-disease-detection
license: mit
---

# Leafy Vegetable Disease Detection Model

## Model Description
This model is trained to detect diseases in leafy vegetables using images. It utilizes the PlantVillage dataset to identify various plant diseases.

## Intended Use
This model can be used for:
- Detecting diseases in images of leafy vegetables.
- Providing feedback and recommendations for farmers and agricultural specialists.

## How to Use
You can use this model by sending an image of a leafy vegetable to the Inference API endpoint.

## Model Details
- **Input**: Image (JPEG/PNG)
- **Output**: Prediction of disease type with confidence scores.

## Training Data
This model is trained on the PlantVillage dataset, which contains labeled images of healthy and diseased plants.

## Limitations
- The model's performance may vary based on image quality and environmental conditions.
- It may not recognize diseases not present in the training dataset.

## Example
Here’s an example of how to use this model with the Inference API:

```python
import requests

url = "https://api-inference.huggingface.co/models/JayGab/Leafy-Vegetable-Disease-Detection"

files = {'file': open('path_to_image.jpg', 'rb')}
response = requests.post(url, files=files)
print(response.json())