Git Product home page Git Product logo

openvino-docker's Introduction

openvino-docker

Intel® OpenVINO™ Toolkit environment

This Dockerfile will provide you with a base environment to run your inference models with OpenVINO™.

Building the Docker Image

Download Intel® OpenVINO™ Toolkit

The firt thing you need is to download the OpenVINO(tm) toolkit.

You can register and download it from the following link (Linux version): https://software.intel.com/en-us/openvino-toolkit/choose-download/free-download-linux

Or use wget to get the package directly (Latest version is 2019 R3.1 by the time writing this guide)

wget http://registrationcenter-download.intel.com/akdlm/irc_nas/16057/l_openvino_toolkit_p_2019.3.376.tgz

Extract the file in the root folder

tar -xf l_openvino_toolkit*

Build the image

docker build -t openvino .

Using the image

Run a container

You can directly run a container based on this image or use this image across other images.

To run a container based on this image:

docker run -ti openvino /bin/bash

Use the image in another container

You can use this Docker image as a base image and use it in multiple Dockerfiles. An example of how to do this has been provided:

Move to sample-app directory and build the image

cd sample-app
docker build -t openvino-app .

Run the the container with X enabled (Linux)

Additionally, for running a sample application that displays an image, you need to share the host display to be accessed from guest Docker container.

The following flags needs to be added to the docker run command:

  • --net=host
  • --env="DISPLAY"
  • --volume="$HOME/.Xauthority:/root/.Xauthority:rw"

To run the docker-app image with the display enabled:

docker run --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" -ti docker-app /bin/bash

Run two demos

Once inside the container, go to the Inference Engine demo directory:

cd /opt/intel/openvino/deployment_tools/demo

Run the Image Classification demo:

./demo_squeezenet_download_convert_run.sh

Run the inference pipeline demo:

./demo_security_barrier_camera.sh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.