diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-22 13:25:20 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-22 13:25:20 +0100 |
| commit | c8d5c02bae82e506f6bb507c9ed07aeba3a1bb87 (patch) | |
| tree | 418ed484f94fe4d1d3c676d112fde3e64a94d412 /cnn_v3/tools/index.html | |
| parent | 568852fcece343b65c74a44ac8a331c51a98349a (diff) | |
fix(cnn_v3/tools): fix getElementById illegal invocation + auto-preload weights
- Bind document.getElementById in filmParams() to fix 'Illegal invocation' error
- Add preload() that auto-fetches cnn_v3_weights.bin + cnn_v3_film_mlp.bin from
workspaces/main/weights/ on init; skips silently if files not found
- Add '↺ Reload from workspace weights/' button for manual re-fetch
handoff(Gemini): cnn_v3 web tool fixed; serve from repo root via http.server
Diffstat (limited to 'cnn_v3/tools/index.html')
| -rw-r--r-- | cnn_v3/tools/index.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cnn_v3/tools/index.html b/cnn_v3/tools/index.html index eba532e..8494fef 100644 --- a/cnn_v3/tools/index.html +++ b/cnn_v3/tools/index.html @@ -67,6 +67,7 @@ video{display:none} <div class="dz" id="wDrop" onclick="document.getElementById('wFile').click()">Drop cnn_v3_weights.bin</div> <div class="dz" id="fDrop" onclick="document.getElementById('fFile').click()">Drop cnn_v3_film_mlp.bin (optional)</div> + <button onclick="tester.preload()" style="font-size:9px;margin-top:2px">↺ Reload from workspace weights/</button> <div class="panel"> <div class="ph" onclick="togglePanel(this)">Input Mode <span>▼</span></div> |
