|
输出信息如下:
--> Loading model
WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
* https://github.com/tensorflow/co ... 7-contrib-sunset.md
* https://github.com/tensorflow/addons
If you depend on functionality not listed there, please file an issue.
/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/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/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/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: ../transdata/yolov3-voc.pb!
E Traceback (most recent call last):
E File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call
E return fn(*args)
E File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1319, in _run_fn
E options, feed_dict, fetch_list, target_list, run_metadata)
E File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun
E run_metadata)
E tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value yolov3-vocconvolutional9/kernel
E [[{{node _retval_yolov3-vocconvolutional9/kernel_0_63}}]]
E During handling of the above exception, another exception occurred:
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 91, in rknn.base.RKNNlib.converter.tensorflowloader.TF_Graph_Preprocess.pre_proces
E File "rknn/base/RKNNlib/converter/tensorflowloader.py", line 805, in rknn.base.RKNNlib.converter.tensorflowloader.TF_Graph_Preprocess.calc_2_const
E File "rknn/base/RKNNlib/converter/tf_util.py", line 371, in rknn.base.RKNNlib.converter.tf_util.TFProto_Util.query_tensor
E File "rknn/base/RKNNlib/converter/tf_util.py", line 374, in rknn.base.RKNNlib.converter.tf_util.TFProto_Util.query_tensor
E File "rknn/base/RKNNlib/converter/tf_util.py", line 407, in rknn.base.RKNNlib.converter.tf_util.TFProto_Util.query_tensor
E File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
E run_metadata_ptr)
E File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1152, in _run
E feed_dict_tensor, options, run_metadata)
E File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1328, in _do_run
E run_metadata)
E File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1348, in _do_call
E raise type(e)(node_def, op, message)
E tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value yolov3-vocconvolutional9/kernel
E [[{{node _retval_yolov3-vocconvolutional9/kernel_0_63}}]]
Loading done
--> Building model
Traceback (most recent call last):
File "TF.py", line 15, in <module>
rknn.build(do_quantization=True, pre_compile=True, dataset='dataset_416x416.txt')
File "/home/LIESMARS/2019286190101/anaconda3/envs/rknn/lib/python3.6/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'
这是什么原因?OP不支持吗?
|
|