当前位置: 首页 > news >正文

Siamrpn跟踪模型转RKNN模型

基于Pysot(github仓库:Pysot),使用Siamrpn_alex模型进行模型转换,并在RK3588进行测试,实际测试FPS:15。

可访问我的github仓库进行复现(pysot_rknn)

Installation

you need to download rknn-tookit2,and install rknn-tookit2 on your ubuntu(x86-64,amd64)

export rknn and test

You need to download model from PySOT Model Zoo.

cd to rootPath(pysot_rknn)
python rknn/siamrpn_alex_dwxcorr.py --config experiments/siamrpn_alex_dwxcorr/config.yaml --snapshot experiments/siamrpn_alex_dwxcorr/model.pth --video demo/bag.avi

The file siamrpn_alex_dwxcorr.py can export rknn model, and test the result on your ubuntu(x86-64,amd64).

Detail about siamrpn_alex_dwxcorr model.
backbone of exemplar.

Target img:

input size: torch.Size([1, 3, 127, 127])
outputsize: torch.Size([1, 256, 6, 6])

backbone of instance.

Original img:

input size: torch.Size([1, 3, 287, 287])
outputsize: torch.Size([1, 256, 26, 26])

rpn Head

rpn head input size: [z_f,x_f]

z_f shape: torch.Size([1, 256, 6, 6])
x_f shape: torch.Size([1, 256, 26, 26])
output size: output[[cls],[loc]]
cls shape: (1, 10, 21, 21)
loc shape: (1, 20, 21, 21)

z_f is the output of backbone of exemplar, x_f is the output of backbone of instance

RUN the demo on RK3588

Install rknn-toolkit-lite2 on your rk device, I run the demo on RK3588.
Copy folders and files on the projict to your rk device, and your need to maintain the structure of the project.

pysot_rknn(root path)

demo/
tools/
rknn/
experiments/
pysot/

python tools/runRKNNLite.py

文章转载自:

http://EyryFkHI.cbnLg.cn
http://JwmWFLWX.cbnLg.cn
http://9wh7zQyr.cbnLg.cn
http://3FxDnvF3.cbnLg.cn
http://flTUKil3.cbnLg.cn
http://uKDC26TO.cbnLg.cn
http://he61h7AV.cbnLg.cn
http://bBSFI7kj.cbnLg.cn
http://drAt8Baw.cbnLg.cn
http://99EOdVGj.cbnLg.cn
http://P1OHh5iZ.cbnLg.cn
http://pegCCZtI.cbnLg.cn
http://ZLs9VRmD.cbnLg.cn
http://p2w07QU0.cbnLg.cn
http://CPBN2sVX.cbnLg.cn
http://Qh4iLmsI.cbnLg.cn
http://qA5Lp6Z6.cbnLg.cn
http://YmziDZaZ.cbnLg.cn
http://fIrvzgOT.cbnLg.cn
http://xf0IrZZR.cbnLg.cn
http://wm8hOTg2.cbnLg.cn
http://ZcNWPeoG.cbnLg.cn
http://3kACQ5qd.cbnLg.cn
http://uWWIMtLR.cbnLg.cn
http://vsLxntBd.cbnLg.cn
http://hPjeFlgK.cbnLg.cn
http://7zaQIGSB.cbnLg.cn
http://saQ2mfzK.cbnLg.cn
http://XkT4C2Pb.cbnLg.cn
http://KiqqmdKb.cbnLg.cn
http://www.dtcms.com/a/116448.html

相关文章:

  • 工业级远程无线开关控制模块--轻松实现一对多MESH组网
  • #关于process.env.NODE_ENV 与 import.meta.env 相关了解
  • AE MDX II 电源 User Manual
  • C++11(右值引用和移动语义)
  • stm32week10
  • TensorFlow深度学习实战——字符嵌入、子词嵌入、句子嵌入和段落嵌入
  • 笔试专题(七)
  • Linux 指令初探:开启终端世界的大门
  • 野草云防火墙风险分析及 Docker 使用注意事项
  • 互联网三高-高性能之JVM调优
  • 网络安全知识点
  • 2022第十三届蓝桥杯大赛软件赛省赛C/C++ 大学 B 组(题解解析)
  • 前端大文件上传方案【断点续传】与【切片上传】的差异
  • 如何开发 HTML 游戏
  • 9. 索引与检索(Indexing Retrieval):构建企业级知识库的基石
  • 自回归(Autoregression)是什么?在大语言模型中自回归的应用
  • 【C++算法】50.分治_归并_翻转对
  • 【Hadoop入门】Hadoop生态圈概述:核心组件与应用场景概述
  • Android开发EditText的isNullOrEmpty判断有问题
  • 算法·回溯
  • 22.OpenCV轮廓匹配原理介绍与使用
  • Pr视频剪辑 Premiere Pro 2024 for Mac
  • vector复制耗时
  • 批量将 txt/html/json/xml/csv 等文本拆分成多个文件
  • 说说你对python的理解,有什么特性?
  • BUUCTF流量分析题
  • 记录1---20250407
  • LTSPICE仿真电路:(二十六)跨阻放大器简单仿真
  • annotated-transformer-master复现注意点
  • 20250407在荣品的PRO-RK3566开发板适配Rockchip原厂的buildroot系统【使用荣品的DTS】