ML-Network is only 24.0 Kb
Attach USB-Cam Open public_html/index.html is browser.
It will start in auto-mode
SUBSET=30;
# Can be 10-50, or your own value, higher the value == increase train time && quality
# 10-30 will produce good result
node --max-old-space-size=8192 create-dataset.SUBSET.js $SUBSET
it will train 10 times && save network
while true; do node --max-old-space-size=8192 "./train.brainjs.$SUBSET.js" "./dataset.512x512.SUBSET.$SUBSET.json"; sync; done
node ask.brainjs.SUBSET.js "brain.SUBSET.$SUBSET.json" "./any/dark/image.png" && <your-image-viewer> "out.SUBSET.$SUBSET.png"