How sankalpapesitm/gan-enhanced-paddy-leaf-disease-detection works
PaddyScan AI is a web-based rice-leaf disease diagnostic system: users submit front-only, paired front/back, or folder-based images and receive class predictions, confidence, and batch summaries. The frontend provides upload and result views; the Flask backend validates images, prepares inputs, and runs a checkpoint-backed Siamese EfficientNet model. The README documents CSV exports, disease advice, and batch charting. Backend implementation is only partially excerpted, so internal links not directly shown are omitted.
Main entry points: app.py Flask API · index.html Dashboard UI · script.js Batch analysis · best_dual_efficientnet_b0.pth Model checkpoint
Components 16
Diagnostic dashboard
- Dashboard UI
frontend/index.html - Front-view analysis
frontend/js/script.js - Dual-view analysis
frontend/js/script.js - Batch analysis
frontend/js/script.js
Inference service
- Flask API
backend/app.py - Pairing and modes
backend/app.py - Leaf validation
backend/app.py - Image preparation
backend/app.py - Prediction inference
backend/app.py
Model runtime
- Siamese classifier
backend/app.py - Model checkpoint
backend/models/best_dual_efficientnet_b0.pth
Diagnostic results
- Predictions and metrics
backend/app.py - Disease guidance
backend/app.py - Batch chart and table
frontend/js/script.js - CSV export
frontend/js/script.js
Other components
- User
Connections 19
- User → Dashboard UI: uses
README.md - Dashboard UI → Front-view analysis: opens
README.md - Dashboard UI → Dual-view analysis: opens
README.md - Dashboard UI → Batch analysis: opens
README.md - Front-view analysis → Flask API: submits images
README.md - Dual-view analysis → Flask API: submits pair
README.md - Batch analysis → Flask API: submits files
README.md - Flask API → Pairing and modes: dispatches batch
backend/app.py - Flask API → Leaf validation: validates views
backend/app.py - Flask API → Image preparation: prepares images
README.md - Flask API → Prediction inference: runs prediction
backend/app.py - Prediction inference → Siamese classifier: calls model
backend/app.py - Siamese classifier → Model checkpoint: loads weights
README.md - Prediction inference → Predictions and metrics: returns classes
backend/app.py - Predictions and metrics → Disease guidance: includes guidance
README.md - Flask API → Batch chart and table: returns batch summary
README.md - Batch analysis → Batch chart and table: renders results
frontend/js/script.js - Predictions and metrics → CSV export: exports result
README.md - Batch chart and table → CSV export: exports batch
README.md