Initialization of backend tensorflow failed Error: The specified module could not be found.
See original GitHub issueTo get help from the community, we encourage using Stack Overflow and the tensorflow.js
tag.
TensorFlow.js version
"@tensorflow/tfjs-node-gpu": "^1.1.2"
Browser version
N?A
Describe the problem or feature request
error when initializing index.js
Initialization of backend tensorflow failed
Error: The specified module could not be found. \?\C:\video_object_detector\node_modules@tensorflow\tfjs-node-gpu\build\Release\tfjs_binding.node at Object.Module._extensions…node (internal/modules/cjs/loader.js:800:18) at Module.load (internal/modules/cjs/loader.js:628:32) at Function.Module._load (internal/modules/cjs/loader.js:555:12) at Module.require (internal/modules/cjs/loader.js:666:19) at require (internal/modules/cjs/helpers.js:16:16) at bindings (C:\video_object_detector\node_modules\bindings\bindings.js:84:48) at Object.factory (C:\video_object_detector\node_modules@tensorflow\tfjs-node-gpu\dist\index.js:48:60) at Engine.initializeBackend (C:\video_object_detector\node_modules@tensorflow\tfjs-core\dist\engine.js:237:48) at Engine.<anonymous> (C:\video_object_detector\node_modules@tensorflow\tfjs-core\dist\engine.js:200:35) at step (C:\video_object_detector\node_modules@tensorflow\tfjs-core\dist\engine.js:48:23)
Code to reproduce the bug / link to feature request
npm install -g rollup npm install g node-gyp npm install @tensorflow/tfjs-node-gpu node-gyp configure --verbose npm --add-python-to-path=‘true’ --debug install --global windows-build-tools
windows 10 Home single language v 1803 GEFORCE GTX 950M Cuda 9.0 with cudnn 7.5.0.56 Python 2.7.16
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
In my case it turns out cudnn was not installed! smh! I followed the instructions here: https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installwindows
And now it works for me 😃
@CharlesCousyn I used Process Monitor from Sysinternals If you filter for only the node process, you can see the files it is opening (including the dlls it loads / tries to load).
However it seems like Tensorflow only supports CUDA 10.0 (see Software Requirements ). I also didn’t notice this, the error message it gives is pretty cryptic 😉
Have a nice day 😃