35 ms·
I've been looking into re-implementing my Loss.jpg detector in TensorFlow.js, but I'm a little concerned with the speed achievable in the Chrome sandbox. Loadin
by eigenloss 8y ago
I've been looking into re-implementing my Loss.jpg detector in TensorFlow.js, but I'm a little concerned with the speed achievable in the Chrome sandbox. Loading the linked page on my laptop was tremendously slow and shot my CPU up to 100%.
Is it safe to assume this is entirely due to the app doing training in the browser, while inference should have significantly lower requirements?
- BucketSort 8y agoThe poor performance here isn't due to TensorFlow.js itself. It has to do with how I'm updating the DOM with the colors as the network is being trained. I could make a few tweaks here to get a dramatic improvement in performance. You are also correct that it would be even less resource intensive if we just served the model instead of training it in the browser. You should try what you are thinking of doing. I think you will be pleasantly surprised at how well it does.
- eigenloss 8y agoThanks for the reply!