tensorflowjs_converter: command not found
I try to install the tensorflowjs library by using:
$ sudo pip install tensorflowjs
instead of
$ pip install tensorflowjs
and run
$ tensorflowjs_converter --input_format keras \
path/to/my_model.h5 \
path/to/tfjs_target_dir
it's running!
In my case folder with Python binaries was not added to PATH. You can either add it to PATH or run the binary using absolute path. The following command gives the path to current Python installation you are using:
$ python -m site --user-base
/Users/me/Library/Python/2.7
Binaries will be stored in bin
sub-dir (you can add it to PATH):
/Users/me/Library/Python/2.7/bin
To run binary using absolute path simply add a binary name tensorflowjs_converter
:
$ /Users/me/Library/Python/2.7/bin/tensorflowjs_converter ...