Git Product home page Git Product logo

bmretinafacedemo's Introduction

BMRetinaFaceDemo

这个是在比特大陆BM1684系列AI硬件(SC5+/SE5/SM5)上运行RetinaFace人脸检测模型的demo

  1. 前提

    已有了bmnnsdk2-bm1684_v2.2.0的sdk,并且安装完lib。

  2. 使用说明

    a) cd bmnnsdk2-bm1684_v2.2.0/examples

    b) git clone https://github.com/AnBaolei1984/BMRetinaFaceDemo.git

    c) cd BMRetinaFaceDemo

    d) 编译程序

     如果是SC5+板卡 : make -f Makefile.pcie -j4
    
     如果是SE5或SM5 : make -f Makefile.arm -j4
    

    e) 运行程序

     如果是图片模式, ./face_test 0 imagelist.txt face_detection_fp32.bmodel
     
     如果是视频模式, ./face_test 1 videolist.txt face_detection_int8_b4.bmodel
     
     * 1 imagelist.txt的每一行是图片的路径
     * 2 videolist.txt的每一行是一个mp4视频路径或者一个rtsp url
     * 3 如果模型是多batch的,那么图片模式,会每攒够batch数的图片做一次推理。视频模式,
         要求videolist.txt的视频数和模型的batch数相等。当然也可以按着自己需求的逻辑来
         修改。只是demo里这样写的。
    

    f) 结束后会在当前目录生成一个名为result_imgs的文件夹,里面可以看到结果图片

bmretinafacedemo's People

Contributors

anbaolei1984 avatar sophonsilk avatar

Stargazers

周明财 avatar Tu Cruickshank avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Alan Guo avatar felix_du avatar  avatar

Forkers

kilmu-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.