-
Notifications
You must be signed in to change notification settings - Fork 661
[Bug] window10在部署运行cpu版本onnx推理模型的时候报错 #2880
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
多次运行,有时候出现报错有时候没有报错。 (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet\ .\mmpretrain\demo\demo.JPEG (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG |
(mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG (mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet2\ .\mmpretrain\demo\demo.JPEG |
Checklist
Describe the bug
按照这个教程https://github.com/open-mmlab/mmdeploy/blob/main/docs/zh_cn/02-how-to-run/prebuilt_package_windows.md
在运行到使用sdk推理时候运行出现问题,有时候没结果有时候报错。
.\image_classification.exe cpu C:\workspace\work_dir\onnx\resnet\ C:\workspace\mmpretrain\demo\demo.JPEG
有时候报错
调用加载模型时候报了这个错误
(mmdeploy) E:\zhp\code\python\mmdeployCode>python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet\ .\mmpretrain\demo\demo.JPEG
loading mmdeploy_ort_net.dll ...
[2025-02-12 13:23:19.388] [mmdeploy] [info] [model.cpp:35] [DirectoryModel] Load model: ".\work_dir\onnx\resnet"
2025-02-12 13:23:19.5217686 [E:onnxruntime:, sequential_executor.cc:339 onnxruntime::SequentialExecutor::Execute] Non-zero status code returned while running Conv node. Name:'/backbone/layer2/layer2.0/conv2/Conv_output_0_nchwc' Status
Message: nchwc_ops.cc:194 onnxruntime::contrib::NchwcConv::Compute output and sum shape must match
下降了onnxruntime版本到教程上1.8.1,没有出现提示,但是也没有返回结果
Reproduction
python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet\ .\mmpretrain\demo\demo.JPEG
按照教程出现这个问题,#2491
按照里面升级了onnxruntime版本,升级和不升级,转换出来的onnx模型在运行这条命令
python .\mmdeploy\demo\python\image_classification.py cpu .\work_dir\onnx\resnet\ .\mmpretrain\demo\demo.JPEG
一个报错,一个没有结果。
Environment
Error traceback
The text was updated successfully, but these errors were encountered: