!tensorflowjs_converter --input_format=keras {saved_model_path} ./
2024-04-29 19:15:23.619622: 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
.
2024-04-29 19:15:25.016006: 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
.
C:\Python312\Lib\site-packages\tensorflowjs\read_weights.py:28: FutureWarning: In the future np.object
will be defined as the corresponding NumPy scalar.
np.uint8, np.uint16, np.object, np.bool]
Traceback (most recent call last):
File “”, line 198, in run_module_as_main
File “”, line 88, in run_code
File "C:\Python312\Scripts\tensorflowjs_converter.exe_main.py", line 4, in
File "C:\Python312\Lib\site-packages\tensorflowjs_init.py", line 21, in
from tensorflowjs import converters
File “C:\Python312\Lib\site-packages\tensorflowjs\converters_init_.py”, line 21, in
from tensorflowjs.converters.converter import convert
File “C:\Python312\Lib\site-packages\tensorflowjs\converters\converter.py”, line 35, in
from tensorflowjs.converters import keras_h5_conversion as conversion
File “C:\Python312\Lib\site-packages\tensorflowjs\converters\keras_h5_conversion.py”, line 33, in
from tensorflowjs import write_weights # pylint: disable=import-error
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Python312\Lib\site-packages\tensorflowjs\write_weights.py”, line 25, in
from tensorflowjs import read_weights
File “C:\Python312\Lib\site-packages\tensorflowjs\read_weights.py”, line 28, in
np.uint8, np.uint16, np.object, np.bool]
^^^^^^^^^
File “C:\Python312\Lib\site-packages\numpy_init_.py”, line 338, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module ‘numpy’ has no attribute ‘object’.
np.object
was a deprecated alias for the builtin object
. To avoid this error in existing code, use object
by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: