- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/ceil.py:10: The name tf.ceil is deprecated. Please use tf.math.ceil instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/depth_to_space.py:12: The name tf.depth_to_space is deprecated. Please use tf.compat.v1.depth_to_space instead.
- W:tensorflow:
- The TensorFlow contrib module will not be included in TensorFlow 2.0.
- For more information, please see:
- * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
- * https://github.com/tensorflow/addons
- * https://github.com/tensorflow/io (for I/O related ops)
- If you depend on functionality not listed there, please file an issue.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/log.py:10: The name tf.log is deprecated. Please use tf.math.log instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_normal.py:9: The name tf.random_normal is deprecated. Please use tf.random.normal instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_uniform.py:9: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/upsample.py:13: The name tf.image.resize_images is deprecated. Please use tf.image.resize instead.
- /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
- warnings.warn(message)
- -->loading model
- loading model done
- --> Init runtime environment
- E RKNNAPI: rknn_init, recv(MsgLoadAck) fail, -9(ERROR_PIPE) != 368!
- E Catch exception when init runtime!
- E Traceback (most recent call last):
- E File "rknn/api/rknn_base.py", line 788, in rknn.api.rknn_base.RKNNBase.init_runtime
- E File "rknn/api/rknn_runtime.py", line 303, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
- E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
- Init runtime environment failed
复制代码
PB模型下载地址http://download.tensorflow.org/m ... g_2018_01_29.tar.gzjefferyzhang 发表于 2020-5-7 20:56
rknn-api:1.2.0
drv:0.9.9
drv版本和api版本都不匹配,能正常运行才怪。。。
- --> Loading model
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/ceil.py:10: The name tf.ceil is deprecated. Please use tf.math.ceil instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/depth_to_space.py:12: The name tf.depth_to_space is deprecated. Please use tf.compat.v1.depth_to_space instead.
- W:tensorflow:
- The TensorFlow contrib module will not be included in TensorFlow 2.0.
- For more information, please see:
- * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
- * https://github.com/tensorflow/addons
- * https://github.com/tensorflow/io (for I/O related ops)
- If you depend on functionality not listed there, please file an issue.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/log.py:10: The name tf.log is deprecated. Please use tf.math.log instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_normal.py:9: The name tf.random_normal is deprecated. Please use tf.random.normal instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_uniform.py:9: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/upsample.py:13: The name tf.image.resize_images is deprecated. Please use tf.image.resize instead.
- /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
- warnings.warn(message)
- W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/rknn/api/rknn.py:67: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.
- Instructions for updating:
- Use `tf.compat.v1.graph_util.extract_sub_graph`
- E Catch exception when loading tensorflow model: ./frozen_inference_graph.pb!
- E Traceback (most recent call last):
- E File "rknn/api/rknn_base.py", line 215, in rknn.api.rknn_base.RKNNBase.load_tensorflow
- E File "rknn/base/RKNNlib/converter/convert_tf.py", line 527, in rknn.base.RKNNlib.converter.convert_tf.convert_tf.pre_process
- E File "rknn/base/RKNNlib/converter/tensorflowloader.py", line 96, in rknn.base.RKNNlib.converter.tensorflowloader.TF_Graph_Preprocess.pre_proces
- E File "rknn/base/RKNNlib/converter/tensorflowloader.py", line 555, in rknn.base.RKNNlib.converter.tensorflowloader.TF_Graph_Preprocess.import_tf_ruler_module
- E File "/home/toybrick/.local/lib/python3.7/site-packages/rknn/base/RKNNlib/converter/tfruler/__init__.py", line 2, in <module>
- E from .tf_ruler_generate import r_add_n_template, r_concatv2_template, r_split_template
- E ImportError: cannot import name 'r_add_n_template' from 'tfruler.tf_ruler_generate' (/home/toybrick/.local/lib/python3.7/site-packages/rknn/base/RKNNlib/converter/tfruler/tf_ruler_generate.cpython-37m-aarch64-linux-gnu.so)
- done
- --> Building model
- Traceback (most recent call last):
- File "deeplab3_rknn.py", line 31, in <module>
- rknn.build(do_quantization=False)
- File "/home/toybrick/.local/lib/python3.7/site-packages/rknn/api/rknn.py", line 222, in build
- inputs = self.rknn_base.net.get_input_layers()
- AttributeError: 'NoneType' object has no attribute 'get_input_layers'
复制代码
jefferyzhang 发表于 2020-5-8 13:15
tensorflow 你要用1.13.x的,不能用1.14,因为有些op14版本加了v2识别不了。
按我经验get_input_layers出错 ...
86667780 发表于 2020-5-8 13:30
感谢版主回答。。。问题是rock-chips/pypi/simple只有1.10.1和1.14.0以及2.0.0(我看到您在别的帖子里说 ...
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |