summaryrefslogtreecommitdiff
path: root/doc/HOWTO.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/HOWTO.md')
-rw-r--r--doc/HOWTO.md5
1 files changed, 5 insertions, 0 deletions
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)