diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-22 16:44:51 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-22 16:44:51 +0100 |
| commit | 3573654c3a60b8bd7545f4240273ed767699f1ae (patch) | |
| tree | a5daeb6c27f2c893fd4cb923eb55f5d3ada6e90c /cnn_v3/tools | |
| parent | ba224677cbd183f6e5e592c58162383e18e8e7c7 (diff) | |
fix(cnn_v3/tools): don't destroy feat textures after runFromFeat (breaks viz)
Diffstat (limited to 'cnn_v3/tools')
| -rw-r--r-- | cnn_v3/tools/tester.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cnn_v3/tools/tester.js b/cnn_v3/tools/tester.js index c1eb9f0..dbc7414 100644 --- a/cnn_v3/tools/tester.js +++ b/cnn_v3/tools/tester.js @@ -699,9 +699,8 @@ class CNNv3Tester { st.textContent = `✓ ${found}`; this.log(`Sample packed: ${w}×${h}, ${((performance.now()-t0)).toFixed(0)}ms`); - // Run inference from packed feat textures + // Run inference — runFromFeat takes ownership of f0/f1 (stored in layerTextures) await this.runFromFeat(f0, f1, w, h); - f0.destroy(); f1.destroy(); } catch(e) { st.textContent = `✗ ${e.message}`; |
