mirror of
https://github.com/Dasemu/skipredictor.git
synced 2026-11-26 15:26:15 +00:00
fix(setup): enforce webcam crowd labels
This commit is contained in:
1 parent
f6a65f41d9
commit
f63913b23c
5 files changed
+261
-31
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user