"Looked into javascript tools for using deep learning. ONNX.js is good for saving saved models in a format that can be read and loaded into browser for inference but cannot handle training. tensorflow.js has slower inference but can handle in-browser training. With the sizes of images, it might make most sense to train models locally, then just upload the model for inference via ONNX.js in the browser."