From 2f9877c745372cf7ec519bfa639ee92bb272106c Mon Sep 17 00:00:00 2001 From: MasterPhooey Date: Wed, 31 Dec 2025 08:43:09 -0600 Subject: [PATCH] Suppress Validation Batch in training --- microWakeWord_training_notebook.ipynb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/microWakeWord_training_notebook.ipynb b/microWakeWord_training_notebook.ipynb index 118128d..19b54dc 100644 --- a/microWakeWord_training_notebook.ipynb +++ b/microWakeWord_training_notebook.ipynb @@ -854,6 +854,7 @@ "source": [ "# Train + export with GPU first, then automatic CPU fallback on GPU/VRAM errors\n", "# (LIVE streaming output + full log capture for error detection)\n", + "# NOTE: Suppress ONLY the noisy \"Validation Batch #...\" lines (everything else still streams)\n", "import os, sys, subprocess, textwrap\n", "\n", "# ---- Common TF env (applies to BOTH attempts) ----\n", @@ -931,8 +932,14 @@ " # Stream lines live AND capture them for OOM detection / error messages\n", " assert proc.stdout is not None\n", " for line in proc.stdout:\n", - " print(line, end=\"\")\n", " full_log.append(line)\n", + "\n", + " # Hide ONLY the per-minibatch validation spam\n", + " if line.startswith(\"Validation Batch #\"):\n", + " continue\n", + "\n", + " # Everything else streams live\n", + " print(line, end=\"\")\n", " finally:\n", " returncode = proc.wait()\n", "\n",