ScoreVision / README.md
ninja990621's picture
scorevision: push artifact
d7df189 verified
|
Raw History Blame Contribute Delete
2.33 kB
---
license: agpl-3.0
base_model: crimedetector/room-dirtinessR
tags:
- object-detection
- onnx
- yolo
- bittensor
- scorevision
---
# Room-dirtiness detector, YOLO11n at 640 px (Score / SN44)
Detector for the Score element `manako/Detect-room-dirtiness-detection`.
| cls_id | class |
|---|---|
| 0 | liquid spillage |
| 1 | bin |
| 2 | litter |
| 3 | mould |
| 4 | stain |
## Base model
This model is a fine-tune of [crimedetector/room-dirtinessR](https://huggingface.co/crimedetector/room-dirtinessR) (revision `cb11ab1bb19d3b3f51a70f0567bc19c92f27fd89`), a public Ultralytics YOLO11n detector for the same element. Credit for the base weights goes to its author.
## How it runs
- `model.onnx` is a YOLO11n detector with a 640x640 input. For each of 8,400 anchors it gives one box (centre, width and height) and 5 class scores. There is no NMS inside the graph.
- `miner.py` letterbox-resizes the frame to 640x640 (centred, grey 114 border) and runs onnxruntime on CPU with 2 threads. Per anchor it keeps the best class, keeps scores of at least 0.25, maps the boxes back to picture pixels, clips them, runs class-wise NMS at IoU 0.5 and returns at most 100 boxes.
## Training
- The base model's exported weights (convolution and batch-norm folded together) were rebuilt into a trainable Ultralytics YOLO11n. The rebuilt network reproduces the base model's raw outputs (largest score difference 4e-6 on test pictures).
- It was fine-tuned for 20 epochs with SGD (lr0 0.002, cosine schedule, batch 32, 640 px, Ultralytics' default augmentation with mosaic). All batch-norm layers stayed frozen.
- Training data: Score's public test pictures for this element. The 20 most recent tests up to block 9432300 were used, each 20 times, when their reconstructed answer key reproduces reference miners' published scores (13 tests). 132 older test pictures were used twice each. The labels are those reconstructed answer keys.
## Results
No result on tests after training exists yet. Score's own records will show how it does on new tests.
## Licence
The base model's ONNX file carries Ultralytics' AGPL-3.0 licence notice. This model, a derivative of it, and the `miner.py` in this repository are released under the GNU Affero General Public License v3.0 (AGPL-3.0): https://www.gnu.org/licenses/agpl-3.0.html