-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialization of backend tensorflow failed Error: The specified module could not be found. #1599
Comments
@davidsoergel can you please help me address this issue |
I currently have the same exact issue, but weirdly enough it still works. Not only that but it runs faster than the regular version even though it shows this error before running. I got about a 4-5x speed increase compared to using @tensorflow/tfjs-node. Not sure if it is actually using the gpu though. When I look at my task manager I still see the same spike in cpu usage as shown when running the non-gpu version and no spike in gpu usage. I am running in the same environment as @billTeston just with a RTX 2070. @davidsoergel Any help would be very much appreciated. |
@billTeston @samfultonschool I installed CUDA 10.0 from https://developer.nvidia.com/cuda-10.0-download-archive and now it works without problems for me. Have a nice day :) |
@Turtlefight Once I have that information, I could install the corresponding version of Cuda |
@CharlesCousyn I used Process Monitor from Sysinternals However it seems like Tensorflow only supports CUDA 10.0 (see Software Requirements ). Have a nice day :) |
I'm running into the same issue on a windows machine. Running:
Produces:
I can install tfjs-node-gpu successfully with `npm install @tensorflow/tfjs-node-gpu I've also made sure ahead of time that python 2.7 is installed. Running When I run my program: I get an error:
Just to make sure, I ran the below command successfully:
I've then followed the instruction on running
|
In my case it turns out cudnn was not installed! smh! I followed the instructions here: And now it works for me :) |
@oveddan thank you , @billTeston could you check above steps let us know if it is working ? |
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks! |
Yes! Installing cuDNN was the fix for this for me. YAY! |
To get help from the community, we encourage using Stack Overflow and the
tensorflow.js
tag.TensorFlow.js version
Browser version
Describe the problem or feature request
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. (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
The text was updated successfully, but these errors were encountered: