TNN-linux编译测试记录

下载model权重
链接:https://share.weiyun.com/7inP1REQ 密码:aemb68

  1. 下载 Demo 模型
    cd <path_to_tnn>/model
    sh download_model.sh
    如因网络问题脚本无法下载模型,请根据脚本中的信息手动创建对应文件夹并自行下载。模型也可以阿里云盘下载,https://www.aliyundrive.com/s/MSmarP3zqrb

cd examples/linux/x86/build_linux_native
sh build_linux_native.sh

cd examples/linux/x86/build_linux_native

图形分类 demo

./demo_x86_imageclassify -p ../../../../model/SqueezeNet/squeezenet_v1.1.tnnproto -m ../../../../model/SqueezeNet/squeezenet_v1.1.tnnmodel -i ../../../assets/tiger_cat.jpg

人脸检测 demo

./demo_x86_facedetector -p ../../../../model/face_detector/version-slim-320_simplified.tnnproto -m ../../../../model/face_detector/version-slim-320_simplified.tnnmodel -i ../../../assets/test_face.jpg

物体检测 demo
./demo_x86_objectdetector -p ../../../../model/yolov5/yolov5s-permute.tnnproto -m ../../../../model/yolov5/yolov5s.tnnmodel -i ../../../assets/004545.jpg

阅读理解 demo
./demo_x86_readingcomprehension -p ../../../../model/bertsquad10/bertsquad10_clean.tnnproto -m ../../../../model/bertsquad10/bertsquad10_clean.tnnmodel -v ../../../../model/bertsquad10/vocab.txt

姿势检测 demo (腾讯光流)
./demo_x86_posedetector -p ../../../../model/skeleton/skeleton_big.tnnproto -m ../../../../model/skeleton/skeleton.tnnmodel -i ../../../assets/skeleton_test.jpg

姿势检测 demo (blazepose)
./demo_x86_blazepose

文本识别 demo
./demo_x86_ocrdetecor

nanodet
./demo_x86_nanodet -p ../../../../model/nanodet/nanodet_e1.tnnproto -m ../../../../model/nanodet/nanodet_e1.tnnmodel -i ../../../assets/004545.jpg

./demo_x86_facealignment

posted @ 2023-10-18 19:26  Xu_Lin  阅读(46)  评论(0编辑  收藏  举报