summaryrefslogtreecommitdiff
path: root/doc/CNN_EFFECT.md
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-10 20:05:37 +0100
committerskal <pascal.massimino@gmail.com>2026-02-10 20:05:37 +0100
commitbbef66d114ddd8091f79c8b27e6877c80236031b (patch)
treea881e60548494d2d7e2bb424313d87c7a4ce0a4c /doc/CNN_EFFECT.md
parent0d5775a2295ed9323330ecf577c7927c8d4b65e8 (diff)
docs: Add inference mode to training documentationHEADmain
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'doc/CNN_EFFECT.md')
-rw-r--r--doc/CNN_EFFECT.md8
1 files changed, 8 insertions, 0 deletions
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`: