openvino | OpenVINO™ Toolkit repository | Machine Learning library

 by   openvinotoolkit C++ Version: 2024.1.0 License: Apache-2.0

kandi X-RAY | openvino Summary

kandi X-RAY | openvino Summary

openvino is a C++ library typically used in Artificial Intelligence, Machine Learning, Deep Learning, Tensorflow applications. openvino has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

This toolkit allows developers to deploy pre-trained deep learning models through a high-level OpenVINO Runtime C++ and Python APIs integrated with application logic. This open source version includes several components: namely Model Optimizer, OpenVINO Runtime, Post-Training Optimization Tool, as well as CPU, GPU, MYRIAD, multi device and heterogeneous plugins to accelerate deep learning inferencing on Intel CPUs and Intel Processor Graphics. It supports pre-trained models from the Open Model Zoo, along with 100+ open source and public models in popular formats such as TensorFlow, ONNX, PaddlePaddle, MXNet, Caffe, Kaldi.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              openvino has a medium active ecosystem.
              It has 4352 star(s) with 1694 fork(s). There are 169 watchers for this library.
              There were 4 major release(s) in the last 6 months.
              There are 62 open issues and 1822 have been closed. On average issues are closed in 10 days. There are 192 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of openvino is 2024.1.0

            kandi-Quality Quality

              openvino has no bugs reported.

            kandi-Security Security

              openvino has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              openvino is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              openvino releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of openvino
            Get all kandi verified functions for this library.

            openvino Key Features

            No Key Features are available at this moment for openvino.

            openvino Examples and Code Snippets

            Using AprilTag python library on Windows 10?
            Pythondot img1Lines of Code : 2dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip install opencv-contrib-python
            
            copy iconCopy
            myriad1_config = {}
            myriad2_config = {}
            
            ie.set_config(config=myriad1_config, device_name="MYRIAD.3.1-ma2480")
            ie.set_config(config=myriad2_config, device_name="MYRIAD.3.3-ma2480")
            
            # Load the network to the multi-device, specifying the pr
            OpenVINO failed to set Blob with FP16 precision not corresponding to user input precision
            Pythondot img3Lines of Code : 5dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            # Get names of the input blob
            input_blob_name = next(iter(network.input_info))
            # Set input precision
            network.input_info[input_blob_name].precision = 'FP16'
            
            OPENVINO-python, cannot import name 'IEPlugin' from 'openvino.inference_engine'
            Pythondot img4Lines of Code : 2dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            openvino-2019_R3.1\inference-engine\ie_bridges\python\src\openvino
            
            Cannot uninstall numpy on ubuntu
            Pythondot img5Lines of Code : 2dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            ERROR: Cannot uninstall numpy 1.19.5, RECORD file not found.
            
            Cannot uninstall numpy on ubuntu
            Pythondot img6Lines of Code : 2dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip3 install --user --force-reinstall --no-deps numpy==1.19.5
            
            Custom Python Remove Interpreter with OpenVINO initialization
            Pythondot img7Lines of Code : 2dot img7License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            export LD_LIBRARY_PATH="/home/ubuntu/.local/lib:/usr/local/cuda-11.1/lib64:/home/ubuntu/.local/lib:/usr/local/cuda-11.1/lib64:${LD_LIBRARY_PATH}"
            
            OpenVino start_async problem - Incorrect request_id specified
            Pythondot img8Lines of Code : 2dot img8License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            exec_net = ie.load_network(network=net, device_name="CPU", num_requests = x)
            
            FFserver command not found even install ffmpeg
            Pythondot img9Lines of Code : 8dot img9License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            FROM alpine:3.8
            RUN apk add curl bash ffmpeg && \
                rm -rf /var/cache/apk/*
            
            COPY ffserver.conf /etc/ffserver.conf
            
            ENTRYPOINT [ "ffserver" ]
            
            Openvino with python is returning some error
            Pythondot img10Lines of Code : 4dot img10License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            python3 -m venv ./virtual-env
            source ./virtual-env/bin/activate
            pip3 install -r requirements.txt
            

            Community Discussions

            QUESTION

            Using ONNX converted model
            Asked 2022-Apr-05 at 04:02

            Guys I'm working on a Sentiment Analysis project and I converted a BERT model to an ONNX model because the original model had a massive runtime when I wanted to give it a huge data to predict. But now I don't know how to use this ONNX model. I will paste my original code when I was running the model in a normal way.

            BTW if anyone has any suggestion to optimize this peace of code or the model without any need to using ONNX or Openvino, I will appreciate it.

            Link to model Hugging Face website

            ...

            ANSWER

            Answered 2022-Apr-05 at 04:02

            I found the answer in this article, it's from the huggingface website. I hope it could help someone else

            Source https://stackoverflow.com/questions/71677417

            QUESTION

            How to extend dims of blob in openvino
            Asked 2022-Mar-14 at 02:08

            Hello from a beginner of OpenVINO. In the official tutorial, the optimal way of taking input for a cascade of networks is

            ...

            ANSWER

            Answered 2022-Mar-14 at 02:08

            Use InferenceEngine::CNNNetwork::reshape to set new input shapes for your first model that does not have batch dimension.

            Source https://stackoverflow.com/questions/71427285

            QUESTION

            how to use openvino in .net application?
            Asked 2022-Mar-02 at 04:22

            I would like to know if it is possible to use openvino in a .net application?

            I have converted a yolo network to a onnx network to use with ml.net. What I would like to do next is to implement openvino to see if it speeds up. So far I have converted my onnx model with openvino Model_optimizer but so far could not find any way to implement openvino in a .net app.

            Thank you

            ...

            ANSWER

            Answered 2022-Mar-02 at 04:22

            Up till this moment, there's no official support for OpenVINO integration with .NET application. Instead, the OpenVINO has its own Inference Engine application that supports both C++ and Python. You may refer here for more info.

            Performance-wise, since you mention speeding things up, you could try to use OpenVINO Post-Training Optimization Tool to accelerate the inference of deep learning models.

            Plus, ensure to choose the right precision for Deep Learning model according to the hardware you are going to use for inferencing.

            Source https://stackoverflow.com/questions/71308316

            QUESTION

            How to write a simple CMAKELISTS for OpenViNO to my C++ programme in Linux
            Asked 2022-Feb-13 at 18:38

            I have been trying very hard to set up OpenVINO for my C++ programme. But the official guide was very unclear to me (partially because I am a very beginner). I was struggling to understand how it finds "InferenceEngine_LIBRARIES" (or "OpenCV_LIBS") without even defining it.

            I have tried to understand some examples in GitHub but sadly many of them are for older versions. I was wondering if I could have a minimum demo of the CMakeLists.txt to use the OpenVINO. Thank you very much.

            --- Updates ---

            Thanks for the comments. I understand some things were handled by CMake behind the scene. Going to the point, here is my CMakeLists file

            ...

            ANSWER

            Answered 2022-Feb-13 at 18:38

            The linker error shows that it cannot find the TBB symbols. The TBB library should be pointed to by the TBB_DIR variable. You don't have to set those variables manually using cmake's set() function. Instead - in the shell where you compile your own app - you can source OpenVINO's setupvars.sh script. Just run something like: source /opt/intel/openvino_2021/bin/setupvars.sh and re-run the compiler. I can see you're using CLion, not the terminal directly. In that case you can try adding the variable manually. The TBB location might be slightly different between the OV versions but in general it should point to a subdirectory of /opt/intel/openvino_2021 - just browse the installation directory and try to find it or source setupvars.sh in the terminal and copy the TBB_DIR env var value to your IDE.

            Source https://stackoverflow.com/questions/71080899

            QUESTION

            OpenVINO MULTI:MYRIAD with sequential inference is inefficiency and usually shows "XLink_sem_wait:94" and "XLinkResetRemote:257" logs
            Asked 2022-Jan-13 at 02:25

            I have integrated OpenVINO and PyQt5 to do the inference job as shown in the image on Windows 11 with openvino_2021.4.689 version.

            I reference this GitHub to finish YOLOv4 inference with NCS2.

            The following is my inference engine code.

            ...

            ANSWER

            Answered 2022-Jan-13 at 02:25

            The optimum way to use this Multi-plugin with multiple devices is by configuring the individual devices and creating the Multi-Device on top.

            For example:

            Source https://stackoverflow.com/questions/70639620

            QUESTION

            OpenVINO cannot install OpenCV by executing with PowerShell in Windows 7 OS
            Asked 2022-Jan-12 at 05:21

            I am trying to install openvino_2021.4.689 version with Windows 7 old computer.

            I need to use OpenCV with my project, so I have to use PowerShell to execute ffmpeg-download.psl in opencv folder of openvino_2021.4.689 like this.

            If I install my own OpenCV by pip install opencv-python in Command Prompt rather than install by OpenVINO's ffmpeg-download.psl file, my project with cv2 library will not work successfully.

            Specifically, my YOLOv4 frame will not show without any error message, what I use cv2 to draw images cannot work.

            But if I click ffmpeg-download.psl with right mouse button and select executed by PowerShell, I will get an error message as shown in the image. (Executed with system administrator.)

            ...

            ANSWER

            Answered 2022-Jan-12 at 05:21

            The validated and supported Operating System for Windows by Intel® Distribution of OpenVINO™ Toolkit is Windows 10, 64-bit. Using older Windows version might contribute to unexpected issues.

            If only looking on your current encountered error, it might be due to Windows PowerShell compatibility version. As it is mentioned in the ffmpeg-download.psl, which requires PowerShell 4+. While Windows 7 installed with the default version, Windows PowerShell 2.0.

            Source https://stackoverflow.com/questions/70660408

            QUESTION

            Heroku not seeing OpenVino when trying to deploy
            Asked 2022-Jan-10 at 02:35

            I have an OpenVino model I'm trying to deploy via Heroku. The app runs on the machine (since OpenVino is installed on the machine in the /opt/intel directory). Even after successfully installing OpenVino with pip, I'd make the import but still get the error message:

            ...

            ANSWER

            Answered 2022-Jan-10 at 02:35

            The error you encountered: ImportError: libpython3.9.so.1.0: cannot open shared object file: No such file or directory was due to missing external dependency on Heroku.

            Follow the steps below to resolve this issue:

            Add a runtime.txt to your app’s root directory to specify a Python runtime. Refer to Selecting a runtime.

            Source https://stackoverflow.com/questions/70612896

            QUESTION

            OpenVINO YOLOv4 inference device didn't appear after reboot with MYRIAD but could work with CPU
            Asked 2022-Jan-05 at 11:49

            My environment is Windows 11 with openvino_2021.4.752 version.

            When I try to run object_detection_demo.py in the demos folder of inference engine, N/A result will be occurred using CPU, and the MYRIAD issue I will mention later will happened with my NCS2.

            ...

            ANSWER

            Answered 2022-Jan-05 at 11:49

            This issue (running YOLOv4 model with Object Detection Python Demo on MYRIAD device) is a known bug in OpenVINO 2021.4.752. Our developers are fixing it.
            On the other hand, I’ve validated the YOLOv4 model using Object Detection C++ Demo and it is working fine. For now, please use Object Detection C++ Demo as an alternative demo.

            Source https://stackoverflow.com/questions/70553690

            QUESTION

            OpenVino converted model not returning same score values as original model (Sigmoid)
            Asked 2022-Jan-05 at 06:06

            I've converted a Keras model for use with OpenVino. The original Keras model used sigmoid to return scores ranging from 0 to 1 for binary classification. After converting the model for use with OpenVino, the scores are all near 0.99 for both classes but seem slightly lower for one of the classes.

            For example, test1.jpg and test2.jpg (from opposite classes) yield scores of 0.00320357 and 0.9999, respectively.

            With OpenVino, the same images yield scores of 0.9998982 and 0.9962392, respectively.

            Edit* One suspicion is that the input array is still accepted by the OpenVino model but is somehow changed in shape or "scrambled" and therefore is never a match for class one? In other words, if you fed it random noise, the score would also always be 0.9999. Maybe I'd have to somehow get the OpenVino model to accept the original shape (1,180,180,3) instead of (1,3,180,180) so I don't have to force the input into a different shape than the one the original model accepted? That's weird though because I specified the shape when making the xml and bin for openvino:

            ...

            ANSWER

            Answered 2022-Jan-05 at 06:06

            Generally, Tensorflow is the only network with the shape NHWC while most others use NCHW. Thus, the OpenVINO Inference Engine satisfies the majority of networks and uses the NCHW layout. Model must be converted to NCHW layout in order to work with Inference Engine.

            The conversion of the native model format into IR involves the process where the Model Optimizer performs the necessary transformation to convert the shape to the layout required by the Inference Engine (N,C,H,W). Using the --input_shape parameter with the correct input shape of the model should suffice.

            Besides, most TensorFlow models are trained with images in RGB order. In this case, inference results using the Inference Engine samples may be incorrect. By default, Inference Engine samples and demos expect input with BGR channels order. If you trained your model to work with RGB order, you need to manually rearrange the default channels order in the sample or demo application or reconvert your model using the Model Optimizer tool with --reverse_input_channels argument.

            I suggest you validate this by inferring your model with the Hello Classification Python Sample instead since this is one of the official samples provided to test the model's functionality.

            You may refer to this "Intel Math Kernel Library for Deep Neural Network" for deeper explanation regarding the input shape.

            Source https://stackoverflow.com/questions/70546922

            QUESTION

            Cannot install Tensorflow 2.4.1 as a dependency for OpenVino
            Asked 2022-Jan-03 at 08:40

            When going through the process of installing OpenVino as documented here, I'm running:

            ...

            ANSWER

            Answered 2021-Dec-30 at 00:03

            I've already shown you how to debug such problems. Well, let's see.

            The list of available packages for tensorflow 2.4.1 includes wheels for Python 3.6-3.8. No 3.9 and no source code. Wheels for Python 3.9 are available starting from tensorflow 2.5.0rc0 — exactly like is said in the error message.

            What can you do? 1) Downgrade once more, to Python 3.8. Or 2) Use more recent OpenVino source code; the current sources at GitHub list tensorflow~=2.5 as a dependency. Or 3) Find in your downloaded sources files requirements*.txt and replace version tensorflow~=2.4.1 with 2.5.0.

            Source https://stackoverflow.com/questions/70524428

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install openvino

            You can download it from GitHub.

            Support

            Please report questions, issues and suggestions using:. * Other names and brands may be claimed as the property of others.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install openvino

          • CLONE
          • HTTPS

            https://github.com/openvinotoolkit/openvino.git

          • CLI

            gh repo clone openvinotoolkit/openvino

          • sshUrl

            git@github.com:openvinotoolkit/openvino.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Machine Learning Libraries

            tensorflow

            by tensorflow

            youtube-dl

            by ytdl-org

            models

            by tensorflow

            pytorch

            by pytorch

            keras

            by keras-team

            Try Top Libraries by openvinotoolkit

            cvat

            by openvinotoolkitTypeScript

            open_model_zoo

            by openvinotoolkitPython

            anomalib

            by openvinotoolkitPython

            openvino_notebooks

            by openvinotoolkitJupyter Notebook

            training_extensions

            by openvinotoolkitPython