diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-13 16:50:52 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-13 16:50:52 +0100 |
| commit | 250491dc3044549edee8418d680d1e47920833f4 (patch) | |
| tree | 66b2f21a7538821f3d50c573b4409fa4a901f4c2 /src/tests/util/test_maths.cc | |
| parent | ced248b0a8973db6d11b79e8290e2f5bb17ffcaa (diff) | |
CNN v2 HTML tool: Support binary format v2 with mip_level
Parse v2 header (20 bytes) and read mip_level field.
Display mip_level in metadata panel, set UI dropdown on load.
Changes:
- parseWeights(): Handle v1 (16-byte) and v2 (20-byte) headers
- Read mip_level from header[4] for version 2
- Return mipLevel in parsed weights object
- updateWeightsPanel(): Display mip level in metadata
- loadWeights(): Set this.mipLevel and update UI dropdown
Backward compatible: v1 weights → mipLevel=0
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/tests/util/test_maths.cc')
0 files changed, 0 insertions, 0 deletions
