diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-25 19:14:28 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-25 19:14:28 +0100 |
| commit | 4ad0e121108261884cdf49374481e04095a6d9c7 (patch) | |
| tree | 16dbe3c26d63372c3be16f93fd8d62095d167514 /cnn_v3/tools/tester.js | |
| parent | 3b2c9c04d3380c2bfd87e2fea1ba92574590766b (diff) | |
fix(cnn_v3/tools): rename Output→Dec0 in viz panel; fix BN weight cnt 72→584
- Layer viz button was labeled 'Output' instead of 'Dec0'
- BN parseWeights cnt was stale (old 1×1 conv size); now 8×8×9+8=584
handoff(Gemini): web tool only, no C++ or shader changes
Diffstat (limited to 'cnn_v3/tools/tester.js')
| -rw-r--r-- | cnn_v3/tools/tester.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cnn_v3/tools/tester.js b/cnn_v3/tools/tester.js index 81c869d..69f358b 100644 --- a/cnn_v3/tools/tester.js +++ b/cnn_v3/tools/tester.js @@ -106,7 +106,7 @@ class CNNv3Tester { if (u32.length < TOTAL_U32) throw new Error(`Too small: ${u32.length} u32, need ${TOTAL_U32}`); const layers = [ {n:'enc0',off:ENC0_OFF,cnt:724},{n:'enc1',off:ENC1_OFF,cnt:296}, - {n:'bn', off:BN_OFF, cnt: 72},{n:'dec1',off:DEC1_OFF,cnt:580}, + {n:'bn', off:BN_OFF, cnt:584},{n:'dec1',off:DEC1_OFF,cnt:580}, {n:'dec0',off:DEC0_OFF,cnt:292}, ]; let html=`<div style="margin-bottom:7px"><b>Size:</b> ${(buf.byteLength/1024).toFixed(1)} KB <b>Weights:</b> ${TOTAL_F16} f16</div> @@ -387,7 +387,7 @@ class CNNv3Tester { // Store for layer viz & redisplay this.destroyLayerTex(); - this.layerTextures={feat0:f0,feat1:f1,enc0:e0,enc1:e1,bn,dec1:d1,output:ot}; + this.layerTextures={feat0:f0,feat1:f1,enc0:e0,enc1:e1,bn,dec1:d1,dec0:ot}; this.lastResult={ot,itex:this.inputTex,uDp,dispPL:this.getDisp(),w,h}; this.updateVizPanel(); this.refreshZoom(); @@ -446,7 +446,7 @@ class CNNv3Tester { {id:'enc1', lbl:'Enc1', t:'u32',nch:8, ch:['c0','c1','c2','c3','c4','c5','c6','c7']}, {id:'bn', lbl:'BN', t:'u32',nch:8, ch:['c0','c1','c2','c3','c4','c5','c6','c7']}, {id:'dec1', lbl:'Dec1', t:'f32',nch:4, ch:['c0','c1','c2','c3']}, - {id:'output',lbl:'Output', t:'f32',nch:4, ch:['R','G','B','A']}, + {id:'dec0', lbl:'Dec0', t:'f32',nch:4, ch:['R','G','B','A']}, ]; this.vizDefs=DEFS; const panel=document.getElementById('layerViz'); @@ -454,7 +454,7 @@ class CNNv3Tester { for(const d of DEFS) html+=`<button id="vb_${d.id}" onclick="tester.vizLayer('${d.id}')">${d.lbl}</button>`; html+='</div><div class="chgrid" id="chgrid"></div>'; panel.innerHTML=html; - this.vizLayer('output'); + this.vizLayer('dec0'); } async vizLayer(id) { |
