From bbef66d114ddd8091f79c8b27e6877c80236031b Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 10 Feb 2026 20:05:37 +0100 Subject: docs: Add inference mode to training documentation Co-Authored-By: Claude Sonnet 4.5 --- doc/HOWTO.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/HOWTO.md') diff --git a/doc/HOWTO.md b/doc/HOWTO.md index a57a161..5ea6afd 100644 --- a/doc/HOWTO.md +++ b/doc/HOWTO.md @@ -97,6 +97,11 @@ Generate shaders from checkpoint: ./training/train_cnn.py --export-only training/checkpoints/checkpoint_epoch_7000.pth ``` +Generate ground truth (for shader validation): +```bash +./training/train_cnn.py --infer input.png --export-only checkpoints/checkpoint_epoch_7000.pth --output ground_truth.png +``` + **Note:** Kernel sizes must match shader functions: - 3×3 kernel → `cnn_conv3x3_7to4` (36 weights: 9 pos × 4 channels) - 5×5 kernel → `cnn_conv5x5_7to4` (100 weights: 25 pos × 4 channels) -- cgit v1.2.3