re: Machine Learning In Node.js With TensorFlow.js VIEW POST

VIEW FULL DISCUSSION
 

Hi James,

i am a newbie to machine learning and its really cool article. This article really helped me in understanding some of the concepts. I have tried your script, it didn't work for the mentioned panda image and got to know that image is corrupted. When i tried with another "cat" image, I am getting this error: Error: browserHTTPRequest is not supported outside the web browser without a fetch polyfill.

I am not sure, why this error is coming, as we are referring the model locally. Please help.

>node script.js mobilenet/model.json panda.jpg 
cpu backend was already registered. Reusing existing backend
2018-10-22 16:47:24.306471: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA
(node:94614) Warning: N-API is an experimental feature and could change at any time.
(node:94614) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: **SOI not found**
(node:94614) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

>node script.js mobilenet/model.json cat.jpg 
cpu backend was already registered. Reusing existing backend
2018-10-22 16:47:17.300905: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA
(node:94615) Warning: N-API is an experimental feature and could change at any time.
(node:94615) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: **browserHTTPRequest is not supported outside the web browser without a fetch polyfill.**
(node:94615) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Thanks!

code of conduct - report abuse