From 130d70ea130242533a0fd3a7ffeabdb68598c88e Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 26 Mar 2026 07:10:19 +0100 Subject: fix(cnn_v3/training): fix defaults and help strings across py tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - train_cnn_v3.py: enc-channels 4,8→8,16; checkpoint-every 50→100; add help strings for epochs/batch-size/lr/checkpoint-dir - gen_test_vectors.py: add help strings for --W/--H/--seed - export_cnn_v3_weights.py: fix --output help string (export/→export) --- cnn_v3/training/gen_test_vectors.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cnn_v3/training/gen_test_vectors.py') diff --git a/cnn_v3/training/gen_test_vectors.py b/cnn_v3/training/gen_test_vectors.py index cdda5a5..3f81247 100644 --- a/cnn_v3/training/gen_test_vectors.py +++ b/cnn_v3/training/gen_test_vectors.py @@ -405,9 +405,12 @@ def main(): parser = argparse.ArgumentParser(description="CNN v3 parity test vector generator") parser.add_argument('--header', action='store_true', help='Emit C header to stdout') - parser.add_argument('--W', type=int, default=8) - parser.add_argument('--H', type=int, default=8) - parser.add_argument('--seed', type=int, default=42) + parser.add_argument('--W', type=int, default=8, + help='Test image width (default 8)') + parser.add_argument('--H', type=int, default=8, + help='Test image height (default 8)') + parser.add_argument('--seed', type=int, default=42, + help='Random seed (default 42)') args = parser.parse_args() # Send self-test output to stderr so --header stdout stays clean -- cgit v1.2.3