Search code examples
tensorboardtensorflow.js

Tensorboard for Tensorflow.JS under Windows 10


I spent long time trying to figure out how to install and run Tensorboard on a Windows 10 machine, for projects that are using Tensorflow.JS

Has anybody ever made this work? If so, please share the steps.

I have Tensorflow.JS working fine with my GPU under Windows 10, but I cannot find any documentation for using Tensorboard under the combination of Windows + Tensorflow.JS

Environment:

  • Windows 10 64-bit
  • Node.JS v14.17.3
  • Python v3.8.9
  • Tensorflow v2.5.0
  • Tensorflow.JS v3.8.0

I'm using @tensorflow/tfjs-node-gpu, with RTX3080Ti, which works fine.


Solution

  • The documentation here shows how to integrate tfjs in node with the tensorboad. But it requires tensorboard to be aldready installed.

    When using it tensorflow with python, tensorboard comes as a dependency of the tensorflow package. But using it in js requires to install the tensorboard package as a standalone package.

    pip install tensorboard
    

    So far, pip is the only way I think to install tensorboard. If the command fails, it probably must have to do with the python version, but it can be changed easily