iqramukhtiar commited on
Commit
8f14179
·
verified ·
1 Parent(s): 82d2020

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +86 -0
README.md CHANGED
@@ -13,6 +13,92 @@ This application helps farmers and gardeners identify plant diseases and get tre
13
  1. **Image-based disease detection**: Upload an image of your plant to identify potential diseases
14
  2. **Question answering**: Ask questions about plant diseases and treatments
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ## Features
17
 
18
  - Image analysis for disease detection
 
13
  1. **Image-based disease detection**: Upload an image of your plant to identify potential diseases
14
  2. **Question answering**: Ask questions about plant diseases and treatments
15
 
16
+
17
+ # Plant Disease Treatment Assistant
18
+
19
+ This application helps identify plant diseases from images and provides treatment recommendations. It uses a deep learning model trained on the PlantVillage dataset to classify plant diseases from uploaded images.
20
+
21
+ ## Features
22
+
23
+ - **Image-based Disease Detection**: Upload an image of a plant leaf to identify diseases
24
+ - **Treatment Recommendations**: Get specific treatment advice for identified diseases
25
+ - **Q&A System**: Ask questions about plant diseases and treatments
26
+
27
+ ## Dataset
28
+
29
+ This application uses the PlantVillage dataset, which contains images of healthy and diseased plant leaves across various crops including:
30
+ - Apple
31
+ - Cherry
32
+ - Corn
33
+ - Grape
34
+ - Peach
35
+ - Pepper
36
+ - Potato
37
+ - Strawberry
38
+ - Tomato
39
+
40
+ ## Setup Instructions
41
+
42
+ ### For Hugging Face Spaces Deployment
43
+
44
+ 1. Create a new Space on Hugging Face
45
+ 2. Upload all the files in this repository
46
+ 3. The Space will automatically install dependencies and launch the application
47
+
48
+ ### For Local Development
49
+
50
+ 1. Clone this repository
51
+ 2. Install dependencies:
52
+ \`\`\`
53
+ pip install -r requirements.txt
54
+ \`\`\`
55
+ 3. Download the PlantVillage dataset
56
+ 4. Prepare the dataset:
57
+ \`\`\`
58
+ python create_dataset.py
59
+ \`\`\`
60
+ 5. Create the treatments database:
61
+ \`\`\`
62
+ python create_treatments_csv.py
63
+ \`\`\`
64
+ 6. Train the model (optional, pre-trained weights are included):
65
+ \`\`\`
66
+ python train_model.py
67
+ \`\`\`
68
+ 7. Run the application:
69
+ \`\`\`
70
+ python app.py
71
+ \`\`\`
72
+
73
+ ## How to Use
74
+
75
+ 1. **Image Analysis**:
76
+ - Upload a clear image of a plant leaf
77
+ - Click "Analyze Image"
78
+ - View the diagnosis and treatment recommendations
79
+
80
+ 2. **Q&A**:
81
+ - Type a question about plant diseases or treatments
82
+ - Click "Get Answer"
83
+ - View the response with relevant information
84
+
85
+ ## Model Details
86
+
87
+ The application uses a ResNet-50 model fine-tuned on the PlantVillage dataset. The model achieves approximately 95% accuracy on the validation set.
88
+
89
+ ## Citation
90
+
91
+ If you use this application or the model in your research, please cite:
92
+
93
+ \`\`\`
94
+ @article{hughes2015open,
95
+ title={An open access repository of images on plant health to enable the development of mobile disease diagnostics},
96
+ author={Hughes, David P and Salath{\'e}, Marcel},
97
+ journal={arXiv preprint arXiv:1511.08060},
98
+ year={2015}
99
+ }
100
+
101
+
102
  ## Features
103
 
104
  - Image analysis for disease detection