CropGuard / README.md
mitraarka27's picture
Update README.md
89129de verified

A newer version of the Gradio SDK is available: 5.29.0

Upgrade
metadata
title: 'CropGuard: Leaf Disease Detector'
colorFrom: green
colorTo: indigo
sdk: gradio
sdk_version: 5.27.1
app_file: app.py
pinned: false

CropGuard: Leaf Disease Detector

CropGuard is a lightweight, deployable machine learning app that detects leaf diseases in Potato, Tomato, and Grape plants from user-uploaded or captured images.

Built using PyTorch, Gradio, Docker, and Hugging Face Spaces, it provides the following capabilities:

  • Upload or capture a leaf image
  • Predict plant health status
  • Identify likely disease (if any)
  • Visualize model attention using GradCAM++ heatmaps
  • Provide quick disease information and treatment suggestions

Project Structure

CropGuard/
β”œβ”€β”€ app.py                # Gradio app
β”œβ”€β”€ Dockerfile            # Docker container definition
β”œβ”€β”€ requirements.txt      # Python dependencies
β”œβ”€β”€ src/                  # Source code (organized into modules)
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ model/
β”‚   └── utils/
β”œβ”€β”€ sample_images/        # Few test images (optional for demo)
β”œβ”€β”€ disease_info.json     # Disease descriptions
└── README.md             # (this file)

License

MIT License.


Acknowledgments


Author

Made by Arka Mitra Β© 2025.