openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
7.25k stars 2.26k forks source link

Build open_model_zoo demos falied #11481

Closed xiuxiusen closed 2 years ago

xiuxiusen commented 2 years ago

I have tied to install dlib in my system from this link.But it made no sense. https://stackoverflow.com/questions/50545025/how-can-i-add-dlib-in-cmake-with-findpackage

zulkifli-halim commented 2 years ago

Hello @xiuxiusen. You can install dlib by using this command:

pip3 install dlib

To build Open Model Zoo demos, you can refer to Build the Demo Applications on Linux.

xiuxiusen commented 2 years ago

@zulkifli-halim The command doesn't work.I met some error when I run the command. ERROR:Could not find a version that satisfied the requirement dlib(from versinos: none) ERROR: No matching distribution found for dlib

zulkifli-halim commented 2 years ago

@xiuxiusen try to run these commands before installing dlib:

python3 -m pip install --upgrade pip 
pip3 install -U pip 
pip3 install cmake

Then rerun the command to install dlib: pip3 install dlib

xiuxiusen commented 2 years ago

I have solved the question through reinstalling openvino.And I have successfully build open_model_zoo..And the directory omz_demos_build occurs. I use the intel realsense D435i and NCS2. I follwoed this link https://docs.openvino.ai/latest/omz_demos_human_pose_estimation_demo_cpp.html. Then I open ~/omz_demos_build/aarch64/Release in the Terminal. I run the commend ./human_pose_estimation_demo -i /dev/video -m ~/intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001.xml -d MYRIAD And it says connect:Connection refused. Does anyone meet the same question? Thanks for any help what so ever! More than happy to provide further info if required.

brmarkus commented 2 years ago

Can you narrow the problem down further, please? Which "connection" gets refused? Can you share log-files or console-output?

Is it related to NCS2 (e.g. missing to install udev-rules for the MyriadX NCS2)? Is it related to the RealSense device - e.g. will it work with a local video-file or a "standard Logitec USB-webcam"?

xiuxiusen commented 2 years ago

@brmarkus Maybe I have found the answer.First I want to ask a question.Is the open_model_zoo should have the same vision with openvino?If so,things become clear.The vision of my openvino is 2021.3 but the open_model_zoo I run is 2020.4.So I want to use openvino 2020.4.And I have found an approach installing openvino on my ubuntu mate 2020.4 system. But i'm not sure whether it will work well.Do you have a better method? The command I use to install openvino 2020.4 is here. git clone -b 2020.4 https://github.com/openvinotoolkit/openvino.git cd openvino git submodule update --init --recursive mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release \ -DENABLE_SSE42=OFF \ -DTHREADING=SEQ \ -DENABLE_GNA=OFF .. && make I will reply to you once I finished installing.Thanks for your reply.

xiuxiusen commented 2 years ago

I met some errors when i run the code "make -j 4" /home/xiuxiusen/openvino/inference-engine/thirdparty/ade/sources/ade/source/execution_engine.cpp: In member function ‘std::unique_ptr ade::ExecutionEngine::createExecutable(const ade::Graph&)’: /home/xiuxiusen/openvino/inference-engine/thirdparty/ade/sources/ade/source/execution_engine.cpp:141:21: error: redundant move in return statement [-Werror=redundant-move] 141 | return std::move(ret); | ~~~^~~ /home/xiuxiusen/openvino/inference-engine/thirdparty/ade/sources/ade/source/execution_engine.cpp:141:21: note: remove ‘std::move’ call cc1plus: all warnings being treated as errors make[2]: [inference-engine/thirdparty/ade/sources/ade/CMakeFiles/ade.dir/build.make:132: inference-engine/thirdparty/ade/sources/ade/CMakeFiles/ade.dir/source/execution_engine.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:2858: inference-engine/thirdparty/ade/sources/ade/CMakeFiles/ade.dir/all] Error

brmarkus commented 2 years ago

You might revert back to your previous state where you wrote "solved the question through reinstalling openvino.And I have successfully build open_model_zoo" - using Open-Model-Zoo also in version "2021.3"? And then focus on the connection-refused problem.

zulkifli-halim commented 2 years ago

Closing, please re-open if additional assistance is needed.