Model Settings
Local inference configuration for AgroLens
Production Model
AgroLens uses the locally trained EfficientNet-B1 plant disease model through the Next.js API route. External AI gateway configuration is no longer used.
Runtime
Local server-side inference with ONNX Runtime and Sharp image preprocessing.
- Route
- /api/predict
- Model
- EfficientNet-B1 ONNX
- Input
- JPEG, PNG, WebP
- Classes
- 38 PlantVillage labels
Upload Rules
- One image per prediction
- Maximum upload size is 8 MB
- Images are normalized to 224 x 224
Confidence Bands
- High
- 85%+
- Medium
- 50-85%
- Low
- Below 50%
Output
- Top five disease predictions
- Crop and condition labels
- Confidence score for each result