summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-12 12:23:17 +0100
committerskal <pascal.massimino@gmail.com>2026-02-12 12:23:17 +0100
commit9dd123e1d25325f09167134e98c04fd6d7e91970 (patch)
tree887656ec247850c3796152665d6dbe617ea1bf70 /scripts
parentdbbabc0b2f819e5e2e550ed20c03806dfd089252 (diff)
Update docs and help messages for CNN v2 completion
Updated: - HOWTO.md: Complete pipeline, storage buffer, --validate mode - TODO.md: Mark CNN v2 complete, add QAT TODO - PROJECT_CONTEXT.md: Update Effects status - CNN_V2.md: Mark complete, add storage buffer notes - train_cnn_v2_full.sh: Add --help message All documentation now reflects: - Storage buffer architecture - Binary weight format - Live training progress - Validation-only mode - 8-bit quantization TODO
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/train_cnn_v2_full.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/scripts/train_cnn_v2_full.sh b/scripts/train_cnn_v2_full.sh
index b3ece8a..fc9355a 100755
--- a/scripts/train_cnn_v2_full.sh
+++ b/scripts/train_cnn_v2_full.sh
@@ -1,7 +1,18 @@
#!/bin/bash
# Complete CNN v2 Training Pipeline
# Train → Export → Build → Validate
-# Usage: ./train_cnn_v2_full.sh [--validate [checkpoint.pth]]
+# Usage: ./train_cnn_v2_full.sh [OPTIONS]
+#
+# OPTIONS:
+# (none) Run complete pipeline: train → export → build → validate
+# --validate Validate only (skip training, use existing weights)
+# --validate CHECKPOINT Validate with specific checkpoint file
+# --help Show this help message
+#
+# Examples:
+# ./train_cnn_v2_full.sh
+# ./train_cnn_v2_full.sh --validate
+# ./train_cnn_v2_full.sh --validate checkpoints/checkpoint_epoch_50.pth
set -e
@@ -12,6 +23,11 @@ cd "$PROJECT_ROOT"
VALIDATE_ONLY=false
VALIDATE_CHECKPOINT=""
+if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
+ head -20 "$0" | grep "^#" | grep -v "^#!/" | sed 's/^# *//'
+ exit 0
+fi
+
if [ "$1" = "--validate" ]; then
VALIDATE_ONLY=true
if [ -n "$2" ]; then