fix(setup): enforce webcam crowd labels

This commit is contained in:
dasemu committed 2026-03-13 12:09:42 +01:00
1 parent f6a65f41d9
commit f63913b23c
5 files changed
+261 -31

No files matched your search

+12 -6
View File
@@ -4,8 +4,8 @@
# Usage: ./setup.sh
#
# This script sets up the environment, downloads historical data,
# and trains the ML models. After running it, start the unified
# daemon with:
# performs historical webcam crowd analysis, and trains ML models.
# After running it, start the unified daemon with:
#
# source .venv/bin/activate
# export TELEGRAM_BOT_TOKEN='your_token'
@@ -57,16 +57,22 @@ if [ -f "$ENV_FILE" ]; then
fi
# ---------------------------------------------------------------
# 4. Download historical station data + weather + train models
# 4. Build historical station+weather datasets (no training yet)
# ---------------------------------------------------------------
info "Building full dataset (station history + weather + feature engineering + training)..."
"$PYTHON" -m scripts.build_full_dataset
info "Building full dataset (station history + weather + feature engineering, no training)..."
"$PYTHON" -m scripts.build_full_dataset --skip-training
# ---------------------------------------------------------------
# 5. Download historical webcam images + crowd detection
# ---------------------------------------------------------------
info "Collecting historical webcam snapshots and crowd analysis..."
"$PYTHON" -m scripts.collect_historical_webcams
"$PYTHON" -m scripts.collect_historical_webcams --auto
# ---------------------------------------------------------------
# 6. Rebuild featured dataset with webcam labels (if available) + train models
# ---------------------------------------------------------------
info "Rebuilding dataset and training models..."
"$PYTHON" -m scripts.build_full_dataset
# ---------------------------------------------------------------
# Summary