Files
chicken-counting-sukawarna-det/test_run_hybrid.sh
T
proitlab 010f6e1493 feat: add engine auto-recompilation, mortality detection, multi-execution batching, and dashboard updates
- Add engine_utils for TensorRT compatibility verification, auto-recompilation from .pt models, and YAML auto-updates
- Add mortality detection pipeline (mortality.py, test_run_mortality.sh, mortality_config.yaml)
- Add multi-execution batch modes (parallel_processes, tensor_batching, hybrid) in batch_runner.py
- Add daily test run automation scripts and video processing runners
- Add dashboard REST API, live stream endpoints, and web UI templates
- Clean up git tracking by ignoring __pycache__, .pyc, and build artifacts
2026-08-19 10:17:17 +07:00

37 lines
1017 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export PYTHONPATH="$SCRIPT_DIR/src"
# Use project-local venv if available
if [ -f "$SCRIPT_DIR/venv/bin/python" ]; then
PYTHON="$SCRIPT_DIR/venv/bin/python"
else
PYTHON="python3"
fi
# Allow passing a specific date as $1 (e.g. ./test_run_hybrid.sh 2026-06-18)
# Or default to all dates 2026-06-10 through 2026-06-19
if [ -n "${1:-}" ]; then
dates=("$1")
else
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"
)
fi
echo "=== Starting Hybrid Execution Mode (Threaded CPU + Batched GPU) ==="
for date in "${dates[@]}"; do
echo "=== Running hybrid batch for date: $date ==="
$PYTHON -m chicken_counter.cli batch \
--config configs/cycle7_batch_optimized.yaml \
--date "$date" \
--mode hybrid \
--no-video
done
echo "=== All hybrid batch processing completed ==="