-
Notifications
You must be signed in to change notification settings - Fork 237
face_detection_yunet #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you test on WIndows CMD or WSL? Solution: Follow the instructions in README to install git-lfs to pull models. |
WIndows CMD |
Opened face_detection_yunet_2022mar.onnx in notepad+ and got this... version https://git-lfs.github.com/spec/v1 ....and nothing else. Also, the file size is very small. face_detection_yunet_2022_mar-act_int8-wt_int8-quantized.onnx has similar issue. |
@bwmcin You need to install git-lfs from https://git-lfs.github.com/ and run cd your/opencv_zoo
git lfs install
git pull Or clone a fresh copy of opencv_zoo after you install git-lfs: git lfs install
git clone https://github.com/opencv/opencv_zoo |
Hi @donaldlee2008, does |
cv2.error: OpenCV(4.6.0) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:260: error: (-210:Unsupported format or combination of formats) Failed to parse ONNX model: face_detection_yunet_2022mar.onnx in function 'ONNXImporter' I am having the same issue on my ubuntu 20.04.4. Could anyone resolve this? |
@deepti-pushpak Follow the instructions in README to install git-lfs to pull models. |
@fengyuentau I can't thank you enough. Your suggestion works! I am able to run the detection code now, that utilises onnx model file. Thank you for saving me tons of work. |
I am not able to run this line : [ WARN:0@1.646] global loadsave.cpp:244 cv::findDecoder imread_('face_detection_yunet_2023mar.onnx'): can't open/read file: check file path/integrity |
I follow the instructions in README to install git-lfs to pull models and re-run my model. However, the error still persists. cv2.error: OpenCV(4.8.1) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:279: error: (-210:Unsupported format or combination of formats) Failed to parse ONNX model: face_detection_yunet_2023mar.onnx in function 'ONNXImporter' onnx model: face_detection_yunet_2023mar.onnx can someone help? |
@JefferyChia Please doublecheck whether you correctly installed git-lfs and pulled the models with the following commands: $ git lfs status It prints $ echo "8f2383e4dd3cfbb4553ea8718107fc0423210dc964f9f4280604804ed2552fa4 face_detection_yunet_2023mar.onnx" | shasum -a 256 -c It prints |
@fengyuentau I checked the status of git-lfs and the output is this:
However, I got an error when I type in the echo command:
Can you help me? |
You need to run demo and my commands in |
Hey @fengyuentau, I think it runs well. However, now I have a new error:
Is there an issue that I can refer on this? |
That means no faces are detected. It returns none in this case. |
@fengyuentau my input is a face, however, I am not sure why the error persists. Do I need to reshape the size of the image or is it unnecessary?
|
os:windows
python: 3.6
opecv-python:4.5.4
face_detection_yunet/demo.py
cmd: python demo.py -i 3.jpg
error:
onnx_importer.cpp:203: error: (-210:Unsupported format or combination of formats) Failed to parse ONNX model: face_detection_yunet_2021sep.onnx in function 'cv::dnn::dnn4_v20211004::ONNXImporter::ONNXImporter'
The text was updated successfully, but these errors were encountered: