hassaanik commited on
Commit
5a02685
·
verified ·
1 Parent(s): e053ae7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -16
README.md CHANGED
@@ -1,19 +1,21 @@
1
  ---
2
  license: gpl-3.0
3
  ---
4
- # Potato and Tomato Disease Classification Web Application
5
- ---
6
 
7
- ## Overview
8
  This project is a web application developed using Flask that allows users to upload images of potato or tomato leaves and receive predictions regarding potential diseases. The application utilizes two deep learning models: one trained to classify potato leaf diseases and another for tomato leaf diseases. Both models were trained using convolutional neural networks (CNNs) and implemented using PyTorch.
9
 
10
- ## Key Features
 
11
  - **Image Upload:** Users can upload images of potato or tomato leaves.
12
  - **Disease Prediction:** The application predicts whether the leaf is healthy or affected by specific diseases.
13
  - **Dynamic Background:** The background image of the web page dynamically changes based on whether the user selects potato or tomato.
14
  - **Probability Display:** The probability of the predicted class is displayed as a percentage.
 
15
 
16
- ## Technologies Used
17
  - **Python:** Core programming language used for model development and Flask backend.
18
  - **Flask:** Web framework for developing the web application.
19
  - **PyTorch:** Deep learning framework used to develop and train the models.
@@ -21,28 +23,30 @@ This project is a web application developed using Flask that allows users to upl
21
  - **PIL (Pillow):** For image processing.
22
  - **OpenCV:** For image display and preprocessing.
23
  - **Torchvision:** For image transformation utilities.
 
24
 
25
- ## Models
26
- 1. **Potato Disease Classification Model**
27
- - **Classes:**
28
  Potato Early Blight
29
  Potato Late Blight
30
  Potato Healthy
31
- - **Techniques Used:**
32
  Convolutional layers for feature extraction.
33
  Batch normalization and max pooling for enhanced training stability and performance.
34
  Dropout layers to prevent overfitting.
35
 
36
- 2. **Tomato Disease Classification Model**
37
- - **Classes:**
38
  Tomato Early Blight
39
  Tomato Late Blight
40
  Tomato Healthy
41
- - **Techniques Used:**
42
  Similar architecture to the potato model with appropriate adjustments for tomato disease classification.
43
  Batch normalization, max pooling, and dropout layers are also used here.
44
 
45
- ## Web Application
 
46
  - **Backend**
47
  The backend of the application is powered by Flask. It loads the trained models, handles image uploads, processes images, and returns predictions to the frontend.
48
 
@@ -57,10 +61,11 @@ The frontend is developed using HTML and CSS, with Bootstrap for responsive desi
57
  - **Prediction Display:** After processing, the application displays the predicted disease class and the associated probability.
58
  - **Dynamic Background:** The background image changes depending on whether the user is predicting for potato or tomato.
59
 
60
- ## Outcome
 
61
  - **Performance**
62
- - **Potato Model:** Achieved an accuracy of 95% on the validation set, with strong performance in classifying Early Blight, Late Blight, and Healthy leaves.
63
- - **Tomato Model:** Achieved an accuracy of 93% on the validation set, effectively distinguishing between Early Blight, Late Blight, and Healthy leaves.
64
  - **Benefits**
65
  - **Disease Detection:** Helps farmers and agriculturists detect diseases in potato and tomato plants early, potentially preventing crop losses.
66
  - **User-Friendly Interface:** The web application provides a simple interface for non-technical users to diagnose plant diseases.
 
1
  ---
2
  license: gpl-3.0
3
  ---
4
+ # Potato and Tomato Disease Classification Web Application
5
+
6
 
7
+ ### Overview
8
  This project is a web application developed using Flask that allows users to upload images of potato or tomato leaves and receive predictions regarding potential diseases. The application utilizes two deep learning models: one trained to classify potato leaf diseases and another for tomato leaf diseases. Both models were trained using convolutional neural networks (CNNs) and implemented using PyTorch.
9
 
10
+
11
+ ### Key Features
12
  - **Image Upload:** Users can upload images of potato or tomato leaves.
13
  - **Disease Prediction:** The application predicts whether the leaf is healthy or affected by specific diseases.
14
  - **Dynamic Background:** The background image of the web page dynamically changes based on whether the user selects potato or tomato.
15
  - **Probability Display:** The probability of the predicted class is displayed as a percentage.
16
+
17
 
18
+ ### Technologies Used
19
  - **Python:** Core programming language used for model development and Flask backend.
20
  - **Flask:** Web framework for developing the web application.
21
  - **PyTorch:** Deep learning framework used to develop and train the models.
 
23
  - **PIL (Pillow):** For image processing.
24
  - **OpenCV:** For image display and preprocessing.
25
  - **Torchvision:** For image transformation utilities.
26
+
27
 
28
+ ### Models
29
+ - **Potato Disease Classification Model**
30
+ - **Classes:**
31
  Potato Early Blight
32
  Potato Late Blight
33
  Potato Healthy
34
+ - **Techniques Used:**
35
  Convolutional layers for feature extraction.
36
  Batch normalization and max pooling for enhanced training stability and performance.
37
  Dropout layers to prevent overfitting.
38
 
39
+ - **Tomato Disease Classification Model**
40
+ - **Classes:**
41
  Tomato Early Blight
42
  Tomato Late Blight
43
  Tomato Healthy
44
+ - **Techniques Used:**
45
  Similar architecture to the potato model with appropriate adjustments for tomato disease classification.
46
  Batch normalization, max pooling, and dropout layers are also used here.
47
 
48
+
49
+ ### Web Application
50
  - **Backend**
51
  The backend of the application is powered by Flask. It loads the trained models, handles image uploads, processes images, and returns predictions to the frontend.
52
 
 
61
  - **Prediction Display:** After processing, the application displays the predicted disease class and the associated probability.
62
  - **Dynamic Background:** The background image changes depending on whether the user is predicting for potato or tomato.
63
 
64
+
65
+ ### Outcome
66
  - **Performance**
67
+ - **Potato Model:** Achieved an accuracy of 98% on the validation set, with strong performance in classifying Early Blight, Late Blight, and Healthy leaves.
68
+ - **Tomato Model:** Achieved an accuracy of 97% on the validation set, effectively distinguishing between Early Blight, Late Blight, and Healthy leaves.
69
  - **Benefits**
70
  - **Disease Detection:** Helps farmers and agriculturists detect diseases in potato and tomato plants early, potentially preventing crop losses.
71
  - **User-Friendly Interface:** The web application provides a simple interface for non-technical users to diagnose plant diseases.