Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Team name = 好吃的卷卷
删除rtti/exceptiontest需要异常才能运行,于是不能删除删除gpu相关代码test有很多地方需要gpu相关代码才能运行,于是不能删除二进制程序下载
https://github.com/nihui/rvspoc-s2309-opencv/blob/rvspoc/.github/workflows/release-duo.yml
https://github.com/nihui/rvspoc-s2309-opencv/tree/rvspoc/opencv-duo-test
https://github.com/nihui/rvspoc-s2309-opencv/releases/tag/milkv
测试指南
https://github.com/nihui/rvspoc-s2309-opencv/tree/rvspoc/opencv-duo-test
编译方法
编译完成后,所有测试程序在 build/bin 中
milkv-duo 镜像
https://github.com/nihui/rvspoc-s2309-opencv/releases/tag/milkv
内存55M,大核频率1G,插usb默认出一个ttyACM一个msc
运行测试脚本
上传测试程序到duo
scp -O build/bin/* root@192.168.42.1:/root/
在开发板上执行
genxml.sh
脚本,生成xml在电脑上执行
downloadxml.sh
脚本,下载xml到电脑在电脑上执行
xml-to-txt.sh
xml-to-txt-perf.sh
脚本,xml转names.txtsh xml-to-txt.sh core sh xml-to-txt-perf.sh core # 其他模块类似,省略
上传names.txt到duo
scp -O build/bin/*_names.txt root@192.168.42.1:/root/
在开发板执行
core-test.sh
和core-perf.sh
,并用time
计时在电脑上执行
downloadresult.sh
下载results.txt到电脑统计results.txt中总测试数,PASS数,相除得到通过率
190/211 = 90.05%
统计
time
的real时间,作为运行时间real 37m 57.37s user 32m 42.93s sys 0m 48.55s # 其他模块类似,省略
总结
测试的时候有个很明显的问题
https://github.com/opencv/opencv_extra 数据没有传到duo上,导致大量test没有跑到,通过率异常的高,个人认为只有 core 模块有参考意义
没有开SWAP,开SWAP太慢了,这是在测试TF卡的读写速度了
具体性能数据看 xxx_output.txt
https://github.com/nihui/rvspoc-s2309-opencv/tree/rvspoc/opencv-duo-test