GithubHelp home page GithubHelp logo

Comments (8)

gaikwadrahul8 avatar gaikwadrahul8 commented on July 23, 2024

Hi, @82318179

I apologize for the delay in responding, following the instructions mentioned in my #8081 (comment) with these Node.js versions Node.js v19.9.0 and Node.js v18.16.1 it should work with Python version 3.x and less than Python version 3.12.x (e.g 3.11.x,3.10.x or 3.9.x) and at the moment it's not working as expected with Node.js v20.9.0

I believe you're following these official documentation Ref-1, Ref-2 and node-gyp - Node.js native addon build tool for Windows

In general you'll have to follow below steps to install @tensorflow/tfjs-node on Windows system:

  • Edit the path user or system variable, ensure that the path to python is added to the path variable.
  • Install Visual Studio community edition with desktop development with C++ Link
  • Install visual studio build tools with the help of Visual Studio Installer
  • Ensure that node-gyp is available: npm install -g node-gyp
  • Install tfjs-node: npm install @tensorflow/tfjs-node

tfjs-node requires AVX processors and tfjs-node library uses AVX instructions to improve the performance of its operations. If your CPU does not support AVX, as far I know you will not be able to use tfjs-node if I'm not wrong so to check AVX support please follow below steps

  • Right-click on the Start button and select "System Information."
  • Expand the "Processor" category in the left-hand pane.
  • Look for "Instruction Set" or "Extended Instructions" in the right-hand pane. If AVX is supported, you should see it listed there (e.g., "AVX2").

NOTE : If the above workaround does not work please try using your mobile phone's hotspot to connect your computer to the internet. This alternative connection might fix the installation issue.

Please let us know after trying the above steps is it resolving your issue or not ? if not please help us with the error log to investigate this issue further

Thank you for your cooperation and patience.

from tfjs.

github-actions avatar github-actions commented on July 23, 2024

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

from tfjs.

82318179 avatar 82318179 commented on July 23, 2024

Why does the node version must specify v19.9.0 and Node.js v18.16.1? Why is it not supported in versions 20 and above

from tfjs.

gaikwadrahul8 avatar gaikwadrahul8 commented on July 23, 2024

Hi, @82318179

I apologize for the delayed response and at the moment temporary workaround is to use Node.js v19.9.0 and Node.js v18.16.1 it should work with Python version 3.x and less than Python version 3.12.x (e.g 3.11.x,3.10.x or 3.9.x) and at the moment it's not working as expected with Node.js v20.x.x and our team is working on this issue and will update you soon.

EDIT :

  1. If you don't want to rebuild everything from scratch then please try to copy tensorflow.dll in this location node_modules/\@tensorflow/tfjs-node/lib/napi-v8/ (in napi-v8 folder) you can try below command to copy tensorflow.dll into napi-v8 folder.

cp node_modules/\@tensorflow/tfjs-node/deps/lib/tensorflow.dll node_modules/\@tensorflow/tfjs-node/lib/napi-v8/

  1. If you're looking rebuild everything from scratch then please try below workaround :
npm install
npm update
npm rebuild bcrypt --build-from-source
npm rebuild @tensorflow/tfjs-node build-addon-from-source

Thank you for your cooperation and patience.

from tfjs.

github-actions avatar github-actions commented on July 23, 2024

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

from tfjs.

github-actions avatar github-actions commented on July 23, 2024

This issue was closed due to lack of activity after being marked stale for past 7 days.

from tfjs.

google-ml-butler avatar google-ml-butler commented on July 23, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from tfjs.

siakc avatar siakc commented on July 23, 2024

This issue should be open and tagged as bug I believe.

from tfjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.