复制代码
- # # Create RKNN object
- rknn = RKNN()
- # pre-process config
- print('--> config model')
- rknn.config(channel_mean_value='103.94 116.78 123.68',
- reorder_channel='0 1 2')
- # Load tensorflow model
- print('--> Loading model')
- ret = rknn.load_tensorflow(
- tf_pb='wzsb-v50699_601.pb',
- inputs=['input/input_data'],
- outputs=['pred_sbbox/concat_2', 'pred_mbbox/concat_2', 'pred_lbbox/concat_2'],
- input_size_list=[[416, 416, 3]])
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |