Skip to content
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

readNet会报错 #3

Open
LaserLV52 opened this issue Sep 17, 2021 · 7 comments
Open

readNet会报错 #3

LaserLV52 opened this issue Sep 17, 2021 · 7 comments

Comments

@LaserLV52
Copy link

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

@hpc203
Copy link
Owner

hpc203 commented Sep 17, 2021

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

是的,升级您的opencv版本,然后重新编译运行

@mkldgg
Copy link

mkldgg commented Apr 5, 2022

那,老哥,请问你用的是什么版本的opencv,我在linux上报错报麻了

@hpc203
Copy link
Owner

hpc203 commented Apr 5, 2022 via email

@mkldgg
Copy link

mkldgg commented Apr 6, 2022

嗯嗯,好,老哥,我用你的onnx文件跑成功了,但我用原来repo生成onnx失败了,你是改动了模型文件吗

@Hezhexi2002
Copy link

image
@hpc203 大佬,我在win下运行也是在readNet这里报错,我用的opencv是openvino2021.4.752自带的opencv4.5.3,然后我跑python的代码又会有这个错:
image

@TryHard-LL
Copy link

@Hezhexi2002 可能是image的路径问题,可以改成绝对路径试试~

@TryHard-LL
Copy link

@hpc203 您好,请问您有试过在yolov5n_face上进行测试吗?我使用onnx转过来的模型,发现好像算子不匹配问题~~
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants