Comments (5)
Hi, @agence-gvam
I'm really sorry to hear that you spent whole day to solve Tensorflow.js installation, as I see you're using Python version 3.12.2
which does not support currently with Tensorflow.js as far I know so if you did not try Python version apart from 3.12.2
then please give try with one of the Python version from 3.6, 3.7, 3.8, 3.9, 3.10, 3.11
and it should work
I tried in Google Colab notebook and it's working as expected for your reference I have added gist-file I know Google colab uses Linux OS
and it's using Python 3.10.12
version and I'm able to install latest tensorflowjs
version which is 4.17.0
I would request you to please give it try with one of the Python version from 3.6, 3.7, 3.8, 3.9, 3.10, 3.11
and it should work. if issue still persists please help us with error log to investigate this issue further from our end.
Thank you for your cooperation and patience.
from tfjs.
Hi, @garywillcodeit
To confirm, were you able to successfully install tensorflow-decision-forests
along with tensorflowjs
on your MacOS
system by using different Python versions ? If the installation was successful and able to run your code without any errors , please feel free to close this issue.
If you're still encountering problems, please provide us with a new error log and your code snippet after attempting the instructions and workaround. This will help us investigate the issue further on our end.
Thank you for your cooperation and patience in resolving this matter.
from tfjs.
Hi, @garywillcodeit
I haven't got any confirmation from your end but I tried to install latest version of tensorflow-decision-forests
with latest version tensorflowjs
and it's working as expected in Google colab with Python version 3.10.12
and it should work in MacOS
also but your issue still persists please feel free to post your comment with new error log so I'll go ahead and re-open this issue again for further assistance, At the moment I'm closing this issue.
Thank you for your cooperation and patience.
from tfjs.
Are you satisfied with the resolution of your issue?
Yes
No
from tfjs.
Same issue here, tried the same steps and then went onto v4.17.0, which didn't work, so as suggested, I switched python versions, which lead to this:
System information
OS: Windows 10
TensorFlow.js version: 4.17.0
Python version : 3.11.8
Also tried it on 3.10.11, same error
PS C:\Users\gener\Downloads\projects\ai\catchtwo-ai> tensorflowjs_converter --input_format keras old/model.h5 new/model1
2024-03-31 15:17:05.576100: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
WARNING:tensorflow:From C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.
WARNING:root:Failure to load the inference.so custom c++ tensorflow ops. This error is likely caused the version of TensorFlow and TensorFlow Decision Forests are not compatible. Full error:C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\inference.so not found
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Scripts\tensorflowjs_converter.exe\__main__.py", line 4, in <module>
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\__init__.py", line 21, in <module>
from tensorflowjs import converters
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\converters\__init__.py", line 21, in <module>
from tensorflowjs.converters.converter import convert
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\converters\converter.py", line 37, in <module>
from tensorflowjs.converters import tf_saved_model_conversion_v2
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\converters\tf_saved_model_conversion_v2.py", line 28, in <module>
import tensorflow_decision_forests
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\__init__.py", line 64, in <module>
from tensorflow_decision_forests import keras
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\keras\__init__.py", line 53, in <module>
from tensorflow_decision_forests.keras import core
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\keras\core.py", line 62, in <module>
from tensorflow_decision_forests.keras import core_inference
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\keras\core_inference.py", line 36, in <module>
from tensorflow_decision_forests.tensorflow.ops.inference import api as tf_op
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\api.py", line 179, in <module>
from tensorflow_decision_forests.tensorflow.ops.inference import op
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\op.py", line 15, in <module>
from tensorflow_decision_forests.tensorflow.ops.inference.op_dynamic import *
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\op_dynamic.py", line 24, in <module>
raise e
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\op_dynamic.py", line 21, in <module>
ops = tf.load_op_library(resource_loader.get_path_to_datafile("inference.so"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\framework\load_library.py", line 54, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tensorflow.python.framework.errors_impl.NotFoundError: C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\inference.so not found
from tfjs.
Related Issues (20)
- I'm running code of tensorflow/tfjs-node-gpu or tensorflow/tfjs-node after installation. I got an error. HOT 4
- `tfjs-models/face-landmarks-detection`: `keypoint` `291` missing in `MEDIAPIPE_FACE_MESH_KEYPOINTS_BY_CONTOUR.lips` HOT 2
- Tensorflow model is working in python but converted tfjs model is not working HOT 7
- tidy function erase tensor before it can be used HOT 5
- `tf.einsum` appears incorrect for some cases HOT 2
- Installing tensorflow/tfjs-node fails on macOS Sonoma (14.3) on Apple Silicon ("Command failed: node-pre-gyp install --fallback-to-build HOT 11
- Tensorflow.js Converter: Usage of `save_format` when converting to graph model causes error on Keras 3 HOT 1
- [Codelab]: Making Predictions from 2D Data HOT 4
- Docs/readme left unfinished for model "face-landmarks-detection" HOT 4
- Error dumping weights duplicate weight name kernel HOT 9
- Loading movenet gives Uncaught (in promise) TypeError: Failed to fetch HOT 15
- Next.js Cannot get final name for export 'transposeImplCPU' error HOT 2
- Tensors are leaked when `model.save()` includes the optimizer HOT 3
- Load and save model issue HOT 5
- [Codelab]: Making Predictions from 2D Data HOT 4
- Duplicate weight problem HOT 7
- The if statement refers to `bias.shape.length`, but the error message refers to `kernel.shape.length` HOT 6
- Question: is the Windows tensorflow binary / dll used in tfjs-node compiled with support for zenDNN optimisations? HOT 2
- Standard layers (like `tf.layers.dense`) fail to report their trainable weights, when used from within a custom layer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfjs.