From 7c1f937222d0e36294ebd25db949c6227aed6985 Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 13 Feb 2026 21:55:24 +0100 Subject: 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 --- doc/CNN_V2_WEB_TOOL.md | 4 ++++ 1 file changed, 4 insertions(+) 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 ` and update constant - Pure WebGPU (no external dependencies) ### Code Organization -- cgit v1.2.3