FastDeploy icon indicating copy to clipboard operation
FastDeploy copied to clipboard

Compile with OpenVINO

Open n3ry7 opened this issue 3 years ago • 3 comments

I am trying to run the \examples\runtime\python\infer_onnx_openvino.py on Windows 10

And I get the folowwing error: [ERROR] csrc/fastdeploy/fastdeploy_runtime.cc(193)::fastdeploy::RuntimeOption::UseOpenVINOBackend The FastDeploy didn't compile with OpenVINO.

How do I compile with OpenVINO backend?

n3ry7 avatar Sep 14 '22 14:09 n3ry7

Hi, This require rebuild Fasdtdeploy, just follow this doc to build

https://www.github.com/PaddlePaddle/FastDeploy/tree/develop/docs%2Fdocs_en%2Fcompile%2Fhow_to_build_windows.md

but need to set ENABLE_OPENVINO_BACKEND=ON

jiangjiajun avatar Sep 14 '22 14:09 jiangjiajun

I tried this:

git clone https://github.com/PaddlePaddle/FastDeploy.git cd FastDeploy && git checkout develop

set ENABLE_ORT_BACKEND=ON set ENABLE_PADDLE_BACKEND=ON set ENABLE_VISION=ON set ENABLE_VISION_VISUALIZE=ON

% 这里指定用户自己的python解释器 以python3.8为例 % C:\Python38\python.exe setup.py build C:\Python38\python.exe setup.py bdist_wheel

But there is no setup.py when the repo is clonned.

So I took the release files which have a setup.py, then I got the following error:

" Found OpenCV Windows Pack but it has no binaries compatible with your configuration.

You should manually point CMake variable OpenCV_DIR to your build of OpenCV library."

And another thing the worries me is that I could not find anything related to ENABLE_OPENVINO_BACKEND=ON on setup.py

n3ry7 avatar Sep 15 '22 11:09 n3ry7

It your windows win32 or x64?, currently only x64 is supported.

If you need to build with python, just like enable other backend

set ENABLE_OPENVINO_BACKEND=ON

and then python setup.py build, it will download openvino automatically.

By the way, you can pull the latest code of FastDeploy, clear the cache during building(directory build & .setuptools-cmake-build, then build fastdeploy again.

jiangjiajun avatar Sep 15 '22 12:09 jiangjiajun

此ISSUE由于一年未更新,将会关闭处理,如有需要,可再次更新打开。

jiangjiajun avatar Feb 06 '24 04:02 jiangjiajun