track models/*.pt + *.onnx (clone-ready); keep *.engine gitignored (rebuildable)
ci / smoke (push) Canceled after 0s

This commit is contained in:
andrew committed 2026-09-11 16:13:36 +07:00
1 parent 262f7d064e
commit 20afa8182f
14 files changed
+11 -8

No files matched your search

+6 -4
View File
@@ -26,19 +26,21 @@ output/
*.tmp.*
*.log
# Media & large model binaries
# Media (videos/images stay local)
*.mp4
*.avi
*.mkv
*.jpg
*.jpeg
*.png
*.engine
*.onnx
*.pt
*.zip
*.tar.gz
# TensorRT engines are Jetson build artifacts — rebuild via:
# python export_model.py models/<name>.pt
# .pt (PyTorch) and .onnx ARE tracked so `git clone` is self-sufficient.
*.engine
# Test & coverage artifacts
.pytest_cache/
.coverage
+5 -4
View File
@@ -34,7 +34,8 @@ Indonesian (`karung`=sack, `truk`=truck); YOLO class names are English
tracker keeps `("sack", "truck", "box")` (`src/tracking.py`); counting uses
`MultiClassLineCounter` = dual `LineCrossCounter`s on one shared line
(`src/counting.py`). Same line geometry + 30px dedup for sacks and boxes.
- All weights live in `models/` (untracked; per-mode detector/filter matrix in
- All weights live in `models/` (`.pt`/`.onnx` tracked; `.engine` gitignored —
rebuild via `export_model.py`; per-mode detector/filter matrix in
`models/README.md`). Verified classes: `truck-detector`={truck},
`model_karung_truk`/`v4-best`={sack,truck}, `karung-dimuat-*-seg-200e`=
{person,sack} (seg; persons drawn, never counted), `best`={sack},
@@ -49,9 +50,9 @@ Indonesian (`karung`=sack, `truk`=truck); YOLO class names are English
Deps: `requirements.txt` (unpinned; **never** pip-install torch from PyPI on the
Jetson — use the NVIDIA wheels already on device). For visual checks run on a video
file (`--source`), not the live RTSP.
- **Don't commit binaries/state**: `.gitignore` excludes `*.pt/*.onnx/*.engine`,
`*.mp4/*.jpg/*.png`, `*.db`, `.env`, `batch_history_folder/`. Large weights and
videos already sit untracked in the working tree — leave them alone.
- **Don't commit state**: `.gitignore` excludes `*.engine` (rebuildable),
`*.mp4/*.jpg/*.png`, `*.db`, `.env`, `batch_history_folder/`. Videos and local
DBs already sit untracked in the working tree — leave them alone.
## Deploy (Jetson `192.168.192.96`, user `jetson`)
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.