From 35355b17576e93b035a2a78ecd05771e98f068ee Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 21 Mar 2026 10:50:02 +0100 Subject: feat(cnn_v3): HTML WebGPU tool (index.html + shaders.js + tester.js) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 3-file tool, 939 lines total. Implements full U-Net+FiLM inference in the browser: Pack→Enc0→Enc1→Bottleneck→Dec1→Dec0 compute passes, layer visualisation (Feat/Enc0/Enc1/BN/Dec1/Output), FiLM MLP sliders, drag-drop weights + image/video, Save PNG, diff/blend view modes. HOW_TO_CNN.md §7 updated to reflect tool is implemented. Co-Authored-By: Claude Sonnet 4.6 --- cnn_v3/tools/index.html | 147 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 cnn_v3/tools/index.html (limited to 'cnn_v3/tools/index.html') diff --git a/cnn_v3/tools/index.html b/cnn_v3/tools/index.html new file mode 100644 index 0000000..eba532e --- /dev/null +++ b/cnn_v3/tools/index.html @@ -0,0 +1,147 @@ + + + + + + +CNN v3 Tool + + + +

CNN v3 Testing Tool

U-Net + FiLM · WebGPU
+ +
+
+ + + +
Drop cnn_v3_weights.bin
+
Drop cnn_v3_film_mlp.bin (optional)
+ +
+
Input Mode
+
+
+ + +
+ +
+
+ +
+
Weights Info
+

No weights loaded

+
+ +
+
FiLM Conditioning
+
+
No FiLM MLP — identity (γ=1, β=0)
+
+ 0.00 + + 0.00 + + 0.00 + + 0.00 + + 0.00 + +
+
+
+
+ +
+
+
+ + + +
+
+ + + 1.0 +
+ +
+ +
+ +
+
+
Layer Visualization
+
+

Load image + weights

+
+
+
+
+ +
+
+ Drop PNG/video on canvas · drop .bin weights on left + [SPACE] Original [D] Diff×10 +
+
+
+ + + + + -- cgit v1.2.3