- Switch Flask dev server -> waitress (8 threads, production WSGI) - Only refresh frame.jpg when frame_index changes, not every second - Safety try/except on send_file for edge-case file conflicts - Fix test_run.sh: export PYTHONPATH, use venv python - Update service file to use venv python
16 lines
492 B
Bash
Executable File
16 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
export PYTHONPATH=/media/jetson/DATA/.Codes/chicken-counting-sukawarna-det/src
|
|
PYTHON=/media/jetson/DATA/karung-sukawarna/venv/bin/python
|
|
|
|
dates=(
|
|
"2026-06-10" "2026-06-11" "2026-06-12" "2026-06-13" "2026-06-14"
|
|
"2026-06-15" "2026-06-16" "2026-06-17" "2026-06-18" "2026-06-19"
|
|
)
|
|
|
|
for date in "${dates[@]}"; do
|
|
echo "=== Processing $date ==="
|
|
$PYTHON -m chicken_counter.cli batch --config configs/cycle7_batch.yaml --date "$date" --no-video
|
|
done
|