Closed StoreBlank closed 1 year ago
Please use this instead: https://github.com/opencv/opencv_zoo/tree/master/models/face_detection_yunet.
OpenCV does not have a good support for dynamic input shape, thats why it failed.
Thanks for the reply, it helps.
Hello, I'm a university student who want to try out this projection. I followed the instructions in
opencv_dnn/README.md
, and downloadedyunet.onnx
from https://github.com/ShiqiYu/libfacedetection.train/blob/a61a428929148171b488f024b5d6774f93cdbc13/tasks/task1/onnx/yunet.onnx.But when I tried the following command:
python detect.py --model=model/yunet.onnx --input=../../images/cnnresult.png --vis false --save yes
I encountered this error:From relative message I know that it's because opencv doesn't support dynamic input shape for onnx model, but I wander how I can fix it so that the code can run. Thanks!