File size: 708 Bytes
ab56984
 
 
 
637fa38
 
 
ab56984
 
637fa38
1
2
3
4
5
6
7
8
9
10
11
# Beverage detector (cup / can / bottle) for manak0/Detect-beverage-detect

- `weights.onnx`: single-scale (stride 8) YOLO-style detector, input 960x960 RGB, output [1, 7, N]
  (cx, cy, w, h in input pixels, then per-class sigmoid scores for cup, can, bottle).
- `miner.py`: CPU onnxruntime with 2 intra-op threads, letterbox to 960, per-class NMS, then the set of boxes
  with the highest expected score is sent (the numbers are in the `esm` block of `config.json`).
  Deterministic numpy / onnxruntime only.
- `chute_config.yml`: Chutes runtime with the package versions the miner was tested with.

p95 latency on 2 pinned CPU cores (AMD EPYC 7542): 91 to 95 ms per 1024x1024 image, PNG decoding included.