From a101d76e3eab4ee4d93357d71e2c7d4e0114f56f Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 13 Feb 2026 12:41:35 +0100 Subject: CNN v2: Restore per-layer kernel sizes support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Training: - train_cnn_v2.py: Accept --kernel-sizes as comma-separated list - CNNv2 model: Per-layer kernel sizes (e.g., [1,3,5]) - Single value replicates across layers (e.g., "3" → [3,3,3]) Export: - export_cnn_v2_weights.py: Backward compatible with old checkpoints - Handles both kernel_size (old) and kernel_sizes (new) format Documentation: - CNN_V2.md: Updated code examples and config format - HOWTO.md: Updated training examples to show comma-separated syntax Binary format: Already supports per-layer kernel sizes (no changes) Co-Authored-By: Claude Sonnet 4.5 --- doc/HOWTO.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/HOWTO.md') diff --git a/doc/HOWTO.md b/doc/HOWTO.md index e909a5d..9c67106 100644 --- a/doc/HOWTO.md +++ b/doc/HOWTO.md @@ -161,10 +161,10 @@ Config: 100 epochs, 3×3 kernels, 8→4→4 channels, patch-based (harris detect --input training/input/ --target training/target_2/ \ --epochs 100 --batch-size 16 --checkpoint-every 5 -# Custom architecture +# Custom architecture (per-layer kernel sizes) ./training/train_cnn_v2.py \ --input training/input/ --target training/target_2/ \ - --kernel-sizes 1 3 5 --channels 16 8 4 \ + --kernel-sizes 1,3,5 \ --epochs 5000 --batch-size 16 ``` -- cgit v1.2.3