deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
22.84k stars 5.35k forks source link

scrfd inference in C++ #1709

Open fisakhan opened 3 years ago

fisakhan commented 3 years ago

How can we use pre-trained models of scrfd in C++ for inference? Can someone please provide a minimum working example?

nttstar commented 3 years ago

https://github.com/Tencent/ncnn/blob/master/examples/scrfd.cpp https://github.com/OAID/Tengine/blob/tengine-lite/demos/demo_scrfd_image.cc

You may have a look at these implementations

fisakhan commented 3 years ago

Thanks @nttstar but the links you shared are big and complex repos that require many dependencies. I require a simple implementation of only scrfd in C++ on Linux. Is it possible for you @nttstar to upload the savedmodel (tensorflow) format of pre-trained models?

cao-nv commented 2 years ago

You should convert SCRFD from Pytorch to ONNX. ONNX support C++ inference APIs