Giter Site home page Giter Site logo

tp-nan / retinaface_cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openfirework/retinaface_cpp

0.0 0.0 0.0 208.8 MB

Retinaface人脸检测网络 MNN、NCNN嵌入式,Linux端推理源码,包含一个卡通人脸检测的模型,脚本一键构建可执行程序

Shell 0.01% C++ 92.77% Python 0.01% C 6.66% Objective-C 0.16% Makefile 0.06% CMake 0.34%

retinaface_cpp's Introduction

Retinaface CPP

包含使用MNN、NCNN部署的代码
包含编译好的linux x86_64(ubuntu20.04)平台下的ncnn、MNN、opencv库,可以直接编译测试,需要修改makefile中的路径
包含一个模型可以检测动漫卡通人物的人脸

编译和测试
在ubuntu 20.04上进行编译和测试

make Retinaface_NCNN
./Retinaface_NCNN test_carton.list

make Retinaface_MNN
./Retinaface_MNN test_carton.list

增加NDK构建脚本和andrid armv7a库

可以构建android下的c++可执行程序,ncnn、MNN、opencv库采用ndk-19r编译,api-leval为21

add python api use pybind11

g++ -std=c++11 -O3 -shared -fPIC  $(python3 -m pybind11 --includes) -I/usr/include/python3.8m py_retina.cpp -I./ -L./ -ldetect_ncnn -o retinacarton$(python3-config --extension-suffix)

结果示例

avatar
avatar
avatar
avatar

reference

https://github.com/biubug6/Pytorch_Retinaface
https://github.com/Tencent/ncnn
https://github.com/alibaba/MNN
https://github.com/daquexian/onnx-simplifier

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.