Companion to firmware-v002.ino. Trains both models on this device's camera; weight files are byte-compatible with the firmware.
Camera: not enabled
Any square size works - try 32, 64, 96, 128, 160... higher resolutions train slower (roughly with the square of the size) but may resolve finer detail; lower resolutions are much faster to iterate with, especially for the SNN.
Storage: in-browser (IndexedDB) - use Export to get real files.
ANN
SNN
Filenames match the device exactly: myWeights.bin and mySnnWeights.bin, in the SD card's /header/ folder. A weight file only loads if its size matches the CURRENT resolution/channels/ class count exactly - same safety check the device uses.