|
C:\Users\Shuyi\PycharmProjects\convert_rknn\venv\Scripts\python.exe C:/Users/Shuyi/PycharmProjects/convert_rknn/convert_test.py
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.
C:\Users\Shuyi\PycharmProjects\convert_rknn\venv\lib\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)
--> config model
done
--> Loading model
W Verbose file path is invalid, debug info will not dump to file.
D import clients finished
W:tensorflow:From C:\Users\Shuyi\PycharmProjects\convert_rknn\venv\lib\site-packages\rknn\api\rknn.py:65: 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
I Current TF Model producer version 0 min consumer version 0 bad consumer version []
I short-cut batch_normalization_8/moving_meanut0 - model_1/batch_normalization_8/FusedBatchNorm:in3 skip model_1/batch_normalization_8/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_5/betaut0 - model_1/batch_normalization_5/FusedBatchNorm:in2 skip model_1/batch_normalization_5/ReadVariableOp_1
I short-cut batch_normalization_11/moving_varianceut0 - model_1/batch_normalization_11/FusedBatchNorm:in4 skip model_1/batch_normalization_11/FusedBatchNorm/ReadVariableOp_1
I short-cut batch_normalization_2/moving_meanut0 - model_1/batch_normalization_2/FusedBatchNorm:in3 skip model_1/batch_normalization_2/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_1/moving_meanut0 - model_1/batch_normalization_1/FusedBatchNorm:in3 skip model_1/batch_normalization_1/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_6/betaut0 - model_1/batch_normalization_6/FusedBatchNorm:in2 skip model_1/batch_normalization_6/ReadVariableOp_1
I short-cut batch_normalization_8/gammaut0 - model_1/batch_normalization_8/FusedBatchNorm:in1 skip model_1/batch_normalization_8/ReadVariableOp
I short-cut conv2d_2/kernelut0 - model_1/conv2d_2/Conv2D:in1 skip model_1/conv2d_2/Conv2D/ReadVariableOp
I short-cut batch_normalization_4/moving_meanut0 - model_1/batch_normalization_4/FusedBatchNorm:in3 skip model_1/batch_normalization_4/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_5/moving_varianceut0 - model_1/batch_normalization_5/FusedBatchNorm:in4 skip model_1/batch_normalization_5/FusedBatchNorm/ReadVariableOp_1
I short-cut batch_normalization_3/gamma:out0 - model_1/batch_normalization_3/FusedBatchNorm:in1 skip model_1/batch_normalization_3/ReadVariableOp
I short-cut batch_normalization_2/gamma:out0 - model_1/batch_normalization_2/FusedBatchNorm:in1 skip model_1/batch_normalization_2/ReadVariableOp
I short-cut batch_normalization_10/beta:out0 - model_1/batch_normalization_10/FusedBatchNorm:in2 skip model_1/batch_normalization_10/ReadVariableOp_1
I short-cut batch_normalization_10/moving_variance:out0 - model_1/batch_normalization_10/FusedBatchNorm:in4 skip model_1/batch_normalization_10/FusedBatchNorm/ReadVariableOp_1
I short-cut batch_normalization_3/beta:out0 - model_1/batch_normalization_3/FusedBatchNorm:in2 skip model_1/batch_normalization_3/ReadVariableOp_1
I short-cut batch_normalization_10/moving_mean:out0 - model_1/batch_normalization_10/FusedBatchNorm:in3 skip model_1/batch_normalization_10/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_8/moving_variance:out0 - model_1/batch_normalization_8/FusedBatchNorm:in4 skip model_1/batch_normalization_8/FusedBatchNorm/ReadVariableOp_1
I short-cut batch_normalization_11/gamma:out0 - model_1/batch_normalization_11/FusedBatchNorm:in1 skip model_1/batch_normalization_11/ReadVariableOp
I short-cut batch_normalization_5/moving_mean:out0 - model_1/batch_normalization_5/FusedBatchNorm:in3 skip model_1/batch_normalization_5/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_1/gamma:out0 - model_1/batch_normalization_1/FusedBatchNorm:in1 skip model_1/batch_normalization_1/ReadVariableOp
I short-cut conv2d_5/kernel:out0 - model_1/conv2d_5/Conv2D:in1 skip model_1/conv2d_5/Conv2D/ReadVariableOp
I short-cut batch_normalization_5/gamma:out0 - model_1/batch_normalization_5/FusedBatchNorm:in1 skip model_1/batch_normalization_5/ReadVariableOp
I short-cut batch_normalization_3/moving_variance:out0 - model_1/batch_normalization_3/FusedBatchNorm:in4 skip model_1/batch_normalization_3/FusedBatchNorm/ReadVariableOp_1
I short-cut conv2d_4/kernel:out0 - model_1/conv2d_4/Conv2D:in1 skip model_1/conv2d_4/Conv2D/ReadVariableOp
I short-cut conv2d_10/kernel:out0 - model_1/conv2d_10/Conv2D:in1 skip model_1/conv2d_10/Conv2D/ReadVariableOp
I short-cut batch_normalization_2/moving_variance:out0 - model_1/batch_normalization_2/FusedBatchNorm:in4 skip model_1/batch_normalization_2/FusedBatchNorm/ReadVariableOp_1
I short-cut conv2d_8/kernel:out0 - model_1/conv2d_8/Conv2D:in1 skip model_1/conv2d_8/Conv2D/ReadVariableOp
I short-cut batch_normalization_1/beta:out0 - model_1/batch_normalization_1/FusedBatchNorm:in2 skip model_1/batch_normalization_1/ReadVariableOp_1
I short-cut batch_normalization_11/moving_mean:out0 - model_1/batch_normalization_11/FusedBatchNorm:in3 skip model_1/batch_normalization_11/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_11/beta:out0 - model_1/batch_normalization_11/FusedBatchNorm:in2 skip model_1/batch_normalization_11/ReadVariableOp_1
I short-cut batch_normalization_3/moving_mean:out0 - model_1/batch_normalization_3/FusedBatchNorm:in3 skip model_1/batch_normalization_3/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_4/moving_variance:out0 - model_1/batch_normalization_4/FusedBatchNorm:in4 skip model_1/batch_normalization_4/FusedBatchNorm/ReadVariableOp_1
I short-cut conv2d_13/bias:out0 - model_1/conv2d_13/BiasAdd:in1 skip model_1/conv2d_13/BiasAdd/ReadVariableOp
I short-cut batch_normalization_2/beta:out0 - model_1/batch_normalization_2/FusedBatchNorm:in2 skip model_1/batch_normalization_2/ReadVariableOp_1
I short-cut batch_normalization_8/beta:out0 - model_1/batch_normalization_8/FusedBatchNorm:in2 skip model_1/batch_normalization_8/ReadVariableOp_1
I short-cut batch_normalization_4/beta:out0 - model_1/batch_normalization_4/FusedBatchNorm:in2 skip model_1/batch_normalization_4/ReadVariableOp_1
I short-cut conv2d_12/kernel:out0 - model_1/conv2d_12/Conv2D:in1 skip model_1/conv2d_12/Conv2D/ReadVariableOp
I short-cut conv2d_3/kernel:out0 - model_1/conv2d_3/Conv2D:in1 skip model_1/conv2d_3/Conv2D/ReadVariableOp
I short-cut conv2d_7/kernel:out0 - model_1/conv2d_7/Conv2D:in1 skip model_1/conv2d_7/Conv2D/ReadVariableOp
I short-cut conv2d_11/kernel:out0 - model_1/conv2d_11/Conv2D:in1 skip model_1/conv2d_11/Conv2D/ReadVariableOp
I short-cut batch_normalization_9/beta:out0 - model_1/batch_normalization_9/FusedBatchNorm:in2 skip model_1/batch_normalization_9/ReadVariableOp_1
I short-cut batch_normalization_7/gamma:out0 - model_1/batch_normalization_7/FusedBatchNorm:in1 skip model_1/batch_normalization_7/ReadVariableOp
I short-cut conv2d_10/bias:out0 - model_1/conv2d_10/BiasAdd:in1 skip model_1/conv2d_10/BiasAdd/ReadVariableOp
I short-cut conv2d_6/kernel:out0 - model_1/conv2d_6/Conv2D:in1 skip model_1/conv2d_6/Conv2D/ReadVariableOp
I short-cut conv2d_9/kernel:out0 - model_1/conv2d_9/Conv2D:in1 skip model_1/conv2d_9/Conv2D/ReadVariableOp
I short-cut batch_normalization_9/moving_mean:out0 - model_1/batch_normalization_9/FusedBatchNorm:in3 skip model_1/batch_normalization_9/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_6/moving_mean:out0 - model_1/batch_normalization_6/FusedBatchNorm:in3 skip model_1/batch_normalization_6/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_6/moving_variance:out0 - model_1/batch_normalization_6/FusedBatchNorm:in4 skip model_1/batch_normalization_6/FusedBatchNorm/ReadVariableOp_1
I short-cut batch_normalization_7/moving_mean:out0 - model_1/batch_normalization_7/FusedBatchNorm:in3 skip model_1/batch_normalization_7/FusedBatchNorm/ReadVariableOp
I short-cut batch_normalization_7/moving_variance:out0 - model_1/batch_normalization_7/FusedBatchNorm:in4 skip model_1/batch_normalization_7/FusedBatchNorm/ReadVariableOp_1
I short-cut batch_normalization_9/moving_variance:out0 - model_1/batch_normalization_9/FusedBatchNorm:in4 skip model_1/batch_normalization_9/FusedBatchNorm/ReadVariableOp_1
I short-cut conv2d_13/kernel:out0 - model_1/conv2d_13/Conv2D:in1 skip model_1/conv2d_13/Conv2D/ReadVariableOp
I short-cut batch_normalization_9/gamma:out0 - model_1/batch_normalization_9/FusedBatchNorm:in1 skip model_1/batch_normalization_9/ReadVariableOp
I short-cut conv2d_1/kernel:out0 - model_1/conv2d_1/Conv2D:in1 skip model_1/conv2d_1/Conv2D/ReadVariableOp
I short-cut batch_normalization_1/moving_variance:out0 - model_1/batch_normalization_1/FusedBatchNorm:in4 skip model_1/batch_normalization_1/FusedBatchNorm/ReadVariableOp_1
I short-cut batch_normalization_4/gamma:out0 - model_1/batch_normalization_4/FusedBatchNorm:in1 skip model_1/batch_normalization_4/ReadVariableOp
I short-cut batch_normalization_10/gamma:out0 - model_1/batch_normalization_10/FusedBatchNorm:in1 skip model_1/batch_normalization_10/ReadVariableOp
I short-cut batch_normalization_7/beta:out0 - model_1/batch_normalization_7/FusedBatchNorm:in2 skip model_1/batch_normalization_7/ReadVariableOp_1
I short-cut batch_normalization_6/gamma:out0 - model_1/batch_normalization_6/FusedBatchNorm:in1 skip model_1/batch_normalization_6/ReadVariableOp
I Have 1 tensors convert to const tensor
D Const tensors:
D ['model_1/up_sampling2d_1/mul:out0']
2019-11-09 21:32:50.559439: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
I build output layer attach_model_1/conv2d_10/BiasAdd:out0
I build output layer attach_model_1/conv2d_13/BiasAdd:out0
I build input layer image_input:out0
D Try match BiasAdd model_1/conv2d_10/BiasAdd
I Match convolution_biasadd [['model_1/conv2d_10/BiasAdd', 'model_1/conv2d_10/Conv2D', 'conv2d_10/bias', 'conv2d_10/kernel']] [['BiasAdd', 'Conv', 'C', 'C_1']] to [['convolution']]
D Try match BiasAdd model_1/conv2d_13/BiasAdd
I Match convolution_biasadd [['model_1/conv2d_13/BiasAdd', 'model_1/conv2d_13/Conv2D', 'conv2d_13/bias', 'conv2d_13/kernel']] [['BiasAdd', 'Conv', 'C', 'C_1']] to [['convolution']]
D Try match LeakyRelu model_1/leaky_re_lu_9/LeakyRelu
E Catch exception when loading tensorflow model: ./test.h5_frozen.pb!
E Traceback (most recent call last):
E File "rknn\api\rknn_base.py", line 190, in rknn.api.rknn_base.RKNNBase.load_tensorflow
E File "rknn\base\RKNNlib\converter\convert_tf.py", line 639, in rknn.base.RKNNlib.converter.convert_tf.convert_tf.match_paragraph_and_param
E AttributeError: 'LeakyRelu' object has no attribute 'load_params_from_tf'
|
|