Giter Club home page Giter Club logo

pfld_106_face_landmarks's Introduction

pfld_106_face_landmarks

106点人脸关键点检测的PFLD算法实现

  • 😊ncnn cpp推理代码

  • 转换后的ONNX模型

  • 预训练权重

  • 性能测试

  • update GhostNet

  • update MobileNetV3

    Backbone param MACC nme Link ONNX
    MobileNetV2 1.26M 393M 4.96% v2 v2.onnx
    MobileNetV3 1.44M 201.8M 4.40% v3 v3.onnx
    MobileNetV3_Small 0.22M 13M 6.22% lite lite.onnx

测试电脑MacBook 2017 13-Inch CPU i5-3.1GHz (single core)

backbone FPS(onnxruntime cpu) Time(single face)
v2.onnx 60.9 16ms
V3.onnx 62.7 15.9ms
lite.onnx 255 3.9ms
  • Requirements
    torch=1.2.0
    torchvision
    opencv-python
    tqdm
    onnxruntime==1.2.2
    numpy
  • 数据集准备

    # 下载数据集到data/imgs下
    cd data
    python prepare.py
    # data 文件夹结构
    data/
      imgs/
      train_data/
        imgs/
        list.txt
      test_data/
        imgs/
        list.txt
  • 训练

CUDA_VISIBLE_DEVICES=0 python train.py --backbone=v3
# 可选backbone为v2 v3 lite
  • 结果 (MobileNetV2)

  • Thanks

https://github.com/polarisZhao/PFLD-pytorch

https://github.com/microsoft/onnxruntime

https://github.com/kuan-wang/pytorch-mobilenet-v3

pfld_106_face_landmarks's People

Contributors

hsintao avatar

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.