forked from andrew/karung-counting-feedmill-semarang
docs: fix documentation drift (deploy sync list, active_mode G, best task)
- deploy_to_jetson.py: sync history.html + analytics.html, interfaces.py + streaming.py; drop nonexistent clip_jobs.py - AGENTS.md: active_mode default now G; deploy sync list updated - docs/deployment.md: deploy sync list + engine files updated - docs/models.md: best task bbox (not seg); modes A-G, active_mode default G
This commit is contained in:
1 parent
ba04c57334
commit
e88f99667b
4 files changed
+17
-12
No files matched your search
@@ -15,9 +15,9 @@ Indonesian (`karung`=sack, `truk`=truck); YOLO class names are English
|
||||
Zero flags = systemd behaviour (`config.yaml` + `.env`).
|
||||
Model modes are DATA in `config.yaml` `models.modes` (engines + class filters
|
||||
only; conf/iou/min_bbox in `models.detection_params`):
|
||||
A=combined only; B=v4 truck + yolo11n sack+box; C=A + yolo11n box-only (default);
|
||||
A=combined only; B=v4 truck + yolo11n sack+box; C=A + yolo11n box-only; G=single unified yolo26n sack+box+truck (default, active_mode=G);
|
||||
D=v4 truck + best sack-only + yolo11n box-only; E=single unified yolo11n sack+box+truck;
|
||||
F=single unified yolo8n sack+box+truck (imgsz 320); G=single unified yolo26n sack+box+truck. New modes need no code change.
|
||||
F=single unified yolo8n sack+box+truck (imgsz 320). New modes need no code change.
|
||||
All modes load `.engine` files (2-3 coexist, ~24 MB peak); never mix load
|
||||
order assumptions — PyTorch `.pt` must load before TensorRT `.engine`.
|
||||
- `src/` = shared library (detection/tracking/counting/batch). `python -m src.main`
|
||||
@@ -114,9 +114,10 @@ Indonesian (`karung`=sack, `truk`=truck); YOLO class names are English
|
||||
## Deploy (Jetson `192.168.192.96`, user `jetson`)
|
||||
|
||||
- `deploy_to_jetson.py` syncs `predict.py`, `counter_dashboard.py`,
|
||||
`templates/{operator,monitoring,base}.html`, `.env`, **plus `models/*.engine`**
|
||||
(skips missing local files; creates remote `models/`). `.pt`/`.onnx` stay local.
|
||||
Edits elsewhere (e.g. `src/`, `zones.json`) need manual sync.
|
||||
`templates/{operator,monitoring,base,history,analytics}.html`, `.env`,
|
||||
`src/` modules (see `SRC_MODULES`), **plus `models/*.engine`**
|
||||
(skips missing local files; creates remote `models/`/`src/`). `.pt`/`.onnx` stay local.
|
||||
Edits elsewhere (e.g. `zones.json`, `cfg/tracker.yaml`) need manual sync.
|
||||
- Services: `karung-counter` (`predict.py`), `karung-counter-dashboard`
|
||||
(`counter_dashboard.py`, ports 5000/5721). TensorRT export:
|
||||
`python export_model.py models/<name>.pt` — run on the Jetson.
|
||||
+3
-1
@@ -18,7 +18,8 @@ SRC_MODULES = [
|
||||
"__init__.py",
|
||||
"batch.py",
|
||||
"clip.py",
|
||||
"clip_jobs.py",
|
||||
"interfaces.py",
|
||||
"streaming.py",
|
||||
"config.py",
|
||||
"config_loader.py",
|
||||
"counting.py",
|
||||
@@ -43,6 +44,7 @@ files_to_sync = [
|
||||
("templates/monitoring.html", "/home/jetson/karung/templates/monitoring.html"),
|
||||
("templates/base.html", "/home/jetson/karung/templates/base.html"),
|
||||
("templates/history.html", "/home/jetson/karung/templates/history.html"),
|
||||
("templates/analytics.html", "/home/jetson/karung/templates/analytics.html"),
|
||||
("counter_dashboard.py", "/home/jetson/karung/counter_dashboard.py"),
|
||||
("predict.py", "/home/jetson/karung/predict.py"),
|
||||
("config.yaml", "/home/jetson/karung/config.yaml"),
|
||||
|
||||
+4
-3
@@ -20,9 +20,10 @@ systemctl status karung-counter karung-counter-dashboard --no-pager
|
||||
```
|
||||
|
||||
## Deploy flow (`deploy_to_jetson.py`)
|
||||
Paramiko sync of `templates/{operator,monitoring,base}.html`, `counter_dashboard.py`,
|
||||
`predict.py`, `config.yaml`, `.env` **plus `models/*.engine`** (v4-best,
|
||||
yolo11n-sack+box, best, truck-detector, model_karung_truk) →
|
||||
Paramiko sync of `templates/{operator,monitoring,base,history,analytics}.html`,
|
||||
`counter_dashboard.py`, `predict.py`, `config.yaml`, `.env` **plus `models/*.engine`**
|
||||
(v4-best, yolo11n-sack+box, best, truck-detector, model_karung_truk,
|
||||
yolo11n-sack+box+truck, yolo8n-sack+box+truck, yolo26n-sack+box+truck) →
|
||||
`192.168.192.96:/home/jetson/karung/` (creates remote `models/` if missing,
|
||||
skips missing local files), then restarts both services and checks status +
|
||||
ports (5000/5721). Run from the dev machine. `.pt`/`.onnx` stay local-only
|
||||
|
||||
+4
-3
@@ -19,7 +19,7 @@ All weights live in `models/` — full per-mode detector/filter matrix in
|
||||
| `models/yolo11n-bbox-200ep-sack+box+truck-20261104-best.{pt,onnx,engine}` | `{0: sack, 1: box, 2: truck}` | bbox | Unified sack+box+truck (Mode E) |
|
||||
| `models/yolo8n-bbox-100ep-sack+box+truck-imgsz320-20261110.{pt,onnx,engine}` | `{0: sack, 1: box, 2: truck}` | bbox | Unified sack+box+truck, imgsz 320 (Mode F) |
|
||||
| `models/yolo26n-bbox-200ep-sack+box+truck-20261118-best.{pt,onnx,engine}` | `{0: sack, 1: box, 2: truck}` | bbox | Unified sack+box+truck (Mode G) |
|
||||
| `models/best.{pt,onnx,engine}` | `{0: sack}` | seg | Sack-only specialist (Mode D sack; `src/config.py` default) |
|
||||
| `models/best.{pt,onnx,engine}` | `{0: sack}` | bbox | Sack-only specialist (Mode D sack; `src/config.py` default) |
|
||||
|
||||
Model registry for the `rpo_iki` engine: `rpo_iki/configs/model_registry.json`
|
||||
(currently pins `karung-dimuat-seg-200e`, mAP50-mask 0.899, val MAE 0.67).
|
||||
@@ -48,14 +48,15 @@ Two dedicated models run in parallel on the same frames:
|
||||
- Rule of thumb: **only the sack/karung class is ever counted**; other classes are
|
||||
auxiliary (ROI, visualization, exclusion).
|
||||
|
||||
### 3. Hybrid multi-model — YES (modes A/B/C/D, default C)
|
||||
### 3. Hybrid multi-model — YES (modes A–G, active_mode default G)
|
||||
- `predict.py --model-mode` (or `MODEL_MODE` env / dashboard `/api/batch/mode`):
|
||||
|
||||
| Mode | Truck | Sack | Box |
|
||||
|---|---|---|---|
|
||||
| A | v4 (sack+truck) | v4 | — |
|
||||
| B | v4 (truck-only) | yolo11n | yolo11n |
|
||||
| C (default) | v4 (sack+truck) | v4 | yolo11n (box-only) | | D | v4 (truck-only) | best (sack-only) | yolo11n (box-only) |
|
||||
| C | v4 (sack+truck) | v4 | yolo11n (box-only) |
|
||||
| D | v4 (truck-only) | best (sack-only) | yolo11n (box-only) |
|
||||
| E | unified yolo11n (imgsz 640) | same handle | same handle |
|
||||
| F | unified yolo8n (imgsz 320) | same handle | same handle |
|
||||
| G | unified yolo26n (imgsz 640) | same handle | same handle |
|
||||
|
||||
Reference in new issue
Block a user