- # Create RKNN object
- rknn = RKNN()
- # Load tensorflow model
- print('--> Loading model')
- a = rknn.load_tensorflow(tf_pb='yolov3_coco.pb',inputs=['conv0'],outputs=['conv_lbbox','conv_mbbox','conv_sbbox'],input_size_list=[[416,416,3]])
- print('return is ',a)
- print('done')
- rknn.config(channel_mean_value='0 0 0 255', reorder_channel='0 1 2', batch_size=1)
- # Build model
- print('--> Building model')
- rknn.build(do_quantization=False, pre_compile=False)
- print('done')
复制代码
报错如下- return is -1
- done
- --> Building model
- Traceback (most recent call last):
- File "rknn_transform_onnx_416x416.py", line 27, in <module>
- rknn.build(do_quantization=False, pre_compile=False)
- File "/home/dad/anaconda3/envs/market/lib/python3.6/site-packages/rknn/api/rknn.py", line 163, in build
- inputs = self.rknn_base.net.get_input_layers()
- AttributeError: 'NoneType' object has no attribute 'get_input_layers'
复制代码
请问是哪里写的不对吗,tensorflow的pb加载失败了。欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |