Downloads · 30 days
37
34% of all-time downloads
sinuosity/okuafo-cassavaguard-edge-v1.0
okuafo-cassavaguard-edge-v1.0 is a image classification model from sinuosity. Use it when you need a label for an image. It is set up for tensorflow. The card lists the license as apache-2.0.
Downloads · 30 days
37
34% of all-time downloads
All-time downloads
108
Public
Repo size
123 MB
Likes
0
Public
Click a slice to open those files.
.tflite70.5 MB · 57%
From the Hugging Face model README

An offline, two-stage TensorFlow Lite research model for cassava image screening. Stage 1 rejects non-cassava or unclear images. Stage 2 screens accepted images for bacterial blight, brown leaf spot, green mite damage, healthy, mosaic disease, or whitefly pressure. The locked policy abstains when confidence is below its validation-calibrated thresholds.
This package passed its internal, leakage-audited held-out test gates and is ready to publish for independent review. Agronomist review, prospective field validation, geographic robustness testing, and production approval are still pending. It is not a substitute for a plant-health professional and must not be used alone for pesticide or treatment decisions.
| Stage-2 class | Raw recall | Selective coverage | Accepted accuracy | Test images |
|---|---|---|---|---|
| bacterial blight | 91.24% | 90.40% | 94.38% | 354 |
| brown leaf spot | 88.73% | 80.39% | 94.51% | 204 |
| green mite damage | 91.49% | 85.11% | 96.67% | 141 |
| healthy | 96.47% | 92.35% | 99.36% | 170 |
| mosaic disease | 94.87% | 91.03% | 96.48% | 156 |
| whitefly pressure | 100.00% | 99.76% | 100.00% | 423 |
The test set was evaluated once after seed selection, temperature calibration, and confidence thresholds were locked on validation data.
The prepared dataset contains 21,993 unique retained images: 12,289 train, 6,598 validation, and 3,106 test. Exact decoded-pixel hashes, perceptual groups, and capture groups were kept split-disjoint. Unresolved near-duplicate review items were quarantined before training.
The first held-out audit was preserved after narrowly missing one conservative
confidence-bound gate. For the final refit, a fresh test set was selected
without reading image pixels or model outputs from whole duplicate-safe groups
in the former training pool. Those samples had appeared in earlier
recipe-development training, but were excluded from every final from-scratch
refit and had no per-record outcomes inspected before the policy lock. The
full disclosure and deterministic selection protocol are included under
provenance/.
Sources:
No dataset images are redistributed in this model repository.
Three independently seeded candidates were trained per stage. The selected
stage-1 seed is 1501 and the selected
stage-2 seed is 1517. Selection first
required at least 85% validation recall for every class, then used validation
macro F1; test data were not used. Detailed seed, calibration, test, provenance,
duplicate-audit, and TFLite parity reports are included under reports/ and
provenance/.
python -m pip install -r requirements.txt
python inference/verify_bundle.py
python inference/predict.py path/to/cassava_image.jpg
The runtime verifies the policy and FP16 model checksums before inference.
It returns not_cassava_or_unclear, uncertain, or an accepted screening
label. Raw RGB input is resized to 320 by 320 pixels.
Research, offline field-trial support, and user-led validation. Do not use the output as the sole basis for treatment, pesticide, financial, or regulatory decisions.