Downloads · 30 days
3
5% of all-time downloads
cstria0106/shit-detector
shit-detector is a image classification model from cstria0106. Use it when you need a label for an image. It is set up for onnx. The card lists the license as mit.
ONNX image classifier for detecting whether an image contains feces or toilet waste/staining under this project's labeling policy.
Downloads · 30 days
3
5% of all-time downloads
All-time downloads
62
Public
Repo size
16.1 MB
Likes
0
Public
Click a slice to open those files.
.onnx16.1 MB · 100%
From the Hugging Face model README
ONNX image classifier for detecting whether an image contains feces or toilet waste/staining under this project's labeling policy.
Live browser demo: https://huggingface.co/spaces/cstria0106/shit-detector-browser
Runs fully client-side: the demo downloads this ONNX model in the browser and runs inference locally with ONNX Runtime Web.
shit_detector.onnx: ONNX model exported with dynamic batch axis.metadata.json: preprocessing values, threshold, class names, evaluation metrics, and deployment notes.inference.py: minimal ONNX Runtime inference helper.requirements.txt: runtime dependencies for the helper.Class order: ['shit', 'not_shit'].
The positive class is shit. The default decision threshold is 0.149 on the positive-class probability.
The model was trained on a project-specific binary image dataset.
| Split | shit | not_shit |
|---|---|---|
| Train | 483 | 2,894 |
| Validation | 120 | 686 |
| Test | 189 | 1,003 |
1.5e-40.010.40tf_efficientnet_b0.ns_jft_in1k17256 x 256 RGB image401011015.34 MB['shit', 'not_shit']0.149These metrics come from the local evaluation set recorded in metadata.json; they are not a public benchmark.
This model is intended for project-specific binary image triage. It may produce false positives on visually similar brown food, stains, mud, and other hard negatives, and false negatives on small, occluded, color-shifted, or unusual positive cases.
pip install -r requirements.txt
python inference.py path/to/image.jpg
lattepanda_n4120Intel Celeron N4120401011015.341004371643066