|
地板
楼主 |
发表于 2019-5-9 11:48:26
|
只看该作者
本帖最后由 yaowei 于 2019-5-15 15:43 编辑
rknn推理:
- img = cv2.imread('test.png')
- img = cv2.resize(img, (128,128))
- net = RKNN()
- net.load_rknn('./resnet.rknn')
- print('--> Init runtime environment of arcface')
- ret = net.init_runtime()
- if ret != 0:
- print('Init runtime environment failed')
- exit(ret)
- print('done')
output = net.inference(inputs=[img])
|
|