Coder Social home page Coder Social logo

hpc203 / yolov5-face-landmarks-opencv-v2 Goto Github PK

View Code? Open in Web Editor NEW
114.0 3.0 30.0 446 KB

更新的yolov5检测人脸和关键点,只依赖opencv库就可以运行,程序包含C++和Python两个版本的

C++ 34.04% Python 65.96%
opencv face-detection face-landmark-detection yolov5-face

yolov5-face-landmarks-opencv-v2's Introduction

yolov5-face-landmarks-opencv-v2

更新的yolov5检测人脸和关键点,只依赖opencv库就可以运行,程序包含C++和Python两个版本的。 对比上一个版本的,现在这个版本的不同之处在于:

(1).分辨率调整为640x640

(2).提供了yolov5s, yolov5m, yolov5l三种检测人脸+关键点的模型

(3). 后处理方式稍有不同

(4). 在yolov5网络结构里的第一个模块是StemBlock,不再是FCOUS

onnx文件在百度云盘,下载链接:https://pan.baidu.com/s/1KXtKykQ0qroA5WyO3hko0g 提取码:376l

yolov5-face-landmarks-opencv-v2's People

Contributors

hpc203 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yolov5-face-landmarks-opencv-v2's Issues

readNet会报错

大佬,我在网盘上下了你的yolos-face.onnx,放在根目录下运行c++的程序的时候在第55行this->net = readNet(modelFile);会报错。我的opencv版本是4.2.0,请问这个读取网络报错是否跟opencv的版本有关呢?

error when convert to onnx

i run main_export_onnx.py in python3 and it show error

File "main_export_onnx.py", line 89, in forward
x[0] = x[0].view(-1, self.no)
TypeError: 'tuple' object does not support item assignment

how can i fix this?

标出的置信度一直是0.99

用自己的数据集(也是五点标注)在Yolov5-face源码训练并导出onnx,用此代码似乎输出的pdata[15]并不是置信度,请问怎么查看呢?

cv2.dnn.readNet fail

cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-1hg9yufe\opencv\modules\dnn\src\onnx\onnx_importer.cpp:1410: error: (-2:Unspecified error) in function
'void __cdecl cv::dnn::dnn4_v20200609::ONNXImporter::populateNet(class cv::dnn::dnn4_v20200609::Net)'

(expected: 'shapes.depth() == CV_32S'), where
'shapes.depth()' is 5 (CV_32FC1)
must be equal to
'CV_32S' is 4 (CV_32SC1)

What could be the reason for this? and how to fix it?
my opencv-python==4.4.0.40
Thanks

onnx cant download from baidu

Hi,

We cant download from baidu. Can you put a google drive ?

I convert from yolo5vs-face.pt to onnx but it failed

Best

大佬請問

大佬請問 若要增加資料類別 yaml nc =3 pt檔也是訓練好的 該如何轉onnx

我直接轉會出現
CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

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.