summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-13 21:55:24 +0100
committerskal <pascal.massimino@gmail.com>2026-02-13 21:55:24 +0100
commit7c1f937222d0e36294ebd25db949c6227aed6985 (patch)
tree72c9f6d132ab5cbb284209e73126a2fc70e42c55
parentaa4ed8dd63291c4a04ff617f78e9c04a55492ea6 (diff)
CNN v2 web tool: Document embedded default weights
Add documentation for DEFAULT_WEIGHTS_B64 constant: - Current config: 4 layers, mip_level=2 - Update procedure: base64 encode and replace Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
-rw-r--r--doc/CNN_V2_WEB_TOOL.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/CNN_V2_WEB_TOOL.md b/doc/CNN_V2_WEB_TOOL.md
index 25f4ec7..b6f5b0b 100644
--- a/doc/CNN_V2_WEB_TOOL.md
+++ b/doc/CNN_V2_WEB_TOOL.md
@@ -54,6 +54,10 @@ Browser-based WebGPU tool for validating CNN v2 inference with layer visualizati
- Single-file HTML tool (~1100 lines)
- Embedded shaders: STATIC_SHADER, CNN_SHADER, DISPLAY_SHADER, LAYER_VIZ_SHADER
- Shared WGSL component: FULLSCREEN_QUAD_VS (reused across render pipelines)
+- **Embedded default weights:** DEFAULT_WEIGHTS_B64 (base64-encoded binary v2)
+ - Current: 4 layers (3×3, 5×5, 3×3, 3×3), 2496 f16 weights, mip_level=2
+ - Source: `workspaces/main/weights/cnn_v2_weights.bin`
+ - Updates: Re-encode binary with `base64 -i <file>` and update constant
- Pure WebGPU (no external dependencies)
### Code Organization