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/CNN_EFFECT.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/CNN_EFFECT.md') diff --git a/doc/CNN_EFFECT.md b/doc/CNN_EFFECT.md index d51c187..4659fd3 100644 --- a/doc/CNN_EFFECT.md +++ b/doc/CNN_EFFECT.md @@ -151,6 +151,14 @@ python3 training/train_cnn.py \ --output workspaces/main/shaders/cnn/cnn_weights_generated.wgsl ``` +**Generate ground truth (for shader validation):** +```bash +python3 training/train_cnn.py \ + --infer training/input/img_000.png \ + --export-only training/checkpoints/checkpoint_epoch_200.pth \ + --output training/ground_truth.png +``` + ### 3. Rebuild Demo Training script auto-generates both `cnn_weights_generated.wgsl` and `cnn_layer.wgsl`: -- cgit v1.2.3