This code runs a mobilenet model (Pre-trained Tensorflow CNN) on multiple worker threads using threads.js with the browser's asynchronous multi-threading capability.
Useful links:
https://www.kevinhoyt.com/2018/10/23/image-processing-in-a-web-worker/ https://www.kevinhoyt.com/2018/10/31/transferable-imagedata/ https://stackoverflow.com/questions/54359728/tensorflow-js-in-webworkers tensorflow/tfjs#102 https://developer.mozilla.org/en-US/docs/Web/API/NavigatorConcurrentHardware/hardwareConcurrency https://www.sitepoint.com/parcel-hyperapp-github-pages/