jefferyzhang 发表于 2020-3-24 12:11
BTW, you are so lucky, because I have tried lanenet last year...
https://github.com/rknn-demos/lanen ...
kaishi 发表于 2020-3-24 13:39
I install tensorflow=1.13.0 and it works now.
However, it is quite slow on rk3399pro. The rknn_perf ...
jefferyzhang 发表于 2020-3-24 16:04
Yes, it is a perf without quantization.
You must set do_quantization=True, and run again.
cfan 发表于 2020-12-23 11:49
我在你的代码中看到有这么一句话,
# Workaround RKNN 1.1.0 bug
想问问是遇到了什么样的bug。
jefferyzhang 发表于 2020-12-23 11:57
这个bug早在1.2.0就解决了。。。
cfan 发表于 2020-12-24 13:53
再问一下,我把模型用一张图片进行量化之后速度达到7帧左右,还有什么办法能提高速度吗
...
jefferyzhang 发表于 2020-12-24 14:13
可以进置顶帖qq群里跟他们讨论下。
- # Config for Model Input PreProcess
- rknn.config(channel_mean_value='127.5 127.5 127.5 127.5', reorder_channel='0 1 2',batch_size = 8)
- #rknn.config(channel_mean_value='0 0 0 1', reorder_channel='0 1 2')
- # Load TensorFlow Model
- print('--> Loading model')
- rknn.load_tensorflow(tf_pb='./model.pb',
- inputs=['lanenet/input_tensor'],
- outputs=['lanenet_model/vgg_frontend/vgg16_decode_module/binary_seg_decode/binary_final_logits/binary_final_logits'],
- input_size_list=[[256, 512, 3]])
- print('done')
- # Build Model
- print('--> Building model')
- rknn.build(do_quantization=True, dataset='./dataset.txt')
- print('done')
- print('--> Begin evaluate model performance')
- perf_results = rknn.eval_perf(inputs=[img]) #评估模型性能。 返回模型在硬件上运行的总时间
- print('done')
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |