# Inference
print('---Running model')
s = time.time()
outputs = rknn.inference(inputs=[img])
e = time.time()
print('Inference done, used time: {} ms'.format((e - s)*1000))
rknn.eval_perf(inputs=[img], is_print=True)
输出:
---Running model
Inference done, used time: 40.583133697509766 ms
========================================================================
Performance
========================================================================
Total Time(us): 12635
FPS: 79.15
========================================================================