|
地板
楼主 |
发表于 2019-10-15 09:32:46
|
只看该作者
rknn = RKNN(verbose=True)
rknn.config(channel_mean_value='128 128 128 128', reorder_channel='0 1 2')
print('--> Loading model')
rknn.load_tensorflow(tf_pb='./model.pb',
inputs=['resnet_v1_101/Pad'],
outputs=['resnet_v1_105_5/bbox_pred/BiasAdd'],
input_size_list=[[INPUT_SIZE, INPUT_SIZE, 3]]
print('done')
# Build Model
print('--> Building model')
rknn.build(do_quantization=True, dataset='./dataset.txt')
print('done')
# Export RKNN Model
rknn.export_rknn('./ssd_mobilenet_face.rknn') |
|