From ef091948ecb9bf83b71b28cb47d529732ad54c17 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 01:36:30 +0100 Subject: Streamline CNN v2 training pipeline output - Add --quiet flag to export script (single-line summary) - Compact validation output (all images on one line) - Reduce noise: export 3 layers, 912 weights, 1904 bytes Co-Authored-By: Claude Sonnet 4.5 --- scripts/train_cnn_v2_full.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/train_cnn_v2_full.sh b/scripts/train_cnn_v2_full.sh index 1c683c2..766bd8b 100755 --- a/scripts/train_cnn_v2_full.sh +++ b/scripts/train_cnn_v2_full.sh @@ -52,7 +52,7 @@ cd "$PROJECT_ROOT" # Helper functions export_weights() { - python3 training/export_cnn_v2_weights.py "$1" --output-weights "$2" + python3 training/export_cnn_v2_weights.py "$1" --output-weights "$2" --quiet } find_latest_checkpoint() { @@ -378,11 +378,13 @@ fi build_target cnn_test # Process all input images +echo -n " Processing images: " for input_image in "$INPUT_DIR"/*.png; do basename=$(basename "$input_image" .png) - echo " Processing $basename..." - build/cnn_test "$input_image" "$VALIDATION_DIR/${basename}_output.png" --weights "$OUTPUT_WEIGHTS" 2>/dev/null + echo -n "$basename " + build/cnn_test "$input_image" "$VALIDATION_DIR/${basename}_output.png" --weights "$OUTPUT_WEIGHTS" > /dev/null 2>&1 done +echo "✓" # Build demo only if not in validate mode [ "$VALIDATE_ONLY" = false ] && build_target demo64k -- cgit v1.2.3