|
运行python3 rknn_transfer.py报错如下( python3==3.6.9 , tensorflow==1.14.0, keras==2.2.5), 帮忙看下什么原因
W:tensorflow:From /home/xx/workspace/venv/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py:66: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.
Traceback (most recent call last):
File "rknn_transfer.py", line 124, in <module>
pb_transfer()
File "rknn_transfer.py", line 55, in pb_transfer
net_model = load_model(weight_file_path)
File "/home/xx/workspace/venv/lib/python3.6/site-packages/keras/engine/saving.py", line 458, in load_wrapper
return load_function(*args, **kwargs)
File "/home/xx/workspace/venv/lib/python3.6/site-packages/keras/engine/saving.py", line 550, in load_model
model = _deserialize_model(h5dict, custom_objects, compile)
File "/home/xx/workspace/venv/lib/python3.6/site-packages/keras/engine/saving.py", line 242, in _deserialize_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode' |
|