|
1、已经生成了tensorflow的pb模型,并且在ubuntu系统中已经验证过这个模型了2、在TB-RK3399Pro开发板上转换模型时,参照的是官方的wiki教程,但是运行脚本时,出现以下报错:
[toybrick@localhost mnist_test]$ python3.6 mnist_rknn.py
/usr/lib64/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
load tensorflow model
E Catch exception when loading tensorflow model: /home/toybrick/tensorflow-ai/mnist_test/grf.pb!
T Traceback (most recent call last):
T File "rknn/api/rknn_base.py", line 136, in rknn.api.rknn_base.RKNNBase.load_tensorflow
T File "rknn/base/RKNNlib/converter/convert_tf.py", line 101, in rknn.base.RKNNlib.converter.convert_tf.convert_tf.__init__
T TypeError: can only concatenate list (not "int") to list
load tensorflow model end
build rknn model
E Model or data is None, please load model first.
build rknn model end
E RKNN model data is None, please load model first!
其中红色的代码,是自己程序里面写的print信息。请问是什么原因造成这样的报错。
|
|