https://github.com/yas-sim/openvino_docker_boilerplate
A boilerplate for an OpenVINO application in a container project using an OpenVINO base container image
https://github.com/yas-sim/openvino_docker_boilerplate
container deep-learning docker inference object-detection opencv openvino python ubuntu
Last synced: about 2 months ago
JSON representation
A boilerplate for an OpenVINO application in a container project using an OpenVINO base container image
- Host: GitHub
- URL: https://github.com/yas-sim/openvino_docker_boilerplate
- Owner: yas-sim
- License: apache-2.0
- Created: 2025-02-01T12:35:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-01T13:34:42.000Z (over 1 year ago)
- Last Synced: 2025-03-28T19:15:55.063Z (over 1 year ago)
- Topics: container, deep-learning, docker, inference, object-detection, opencv, openvino, python, ubuntu
- Language: Python
- Homepage:
- Size: 1.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# A boilerplate for an OpenVINO application in a container project using an OpenVINO base container image
Sample `Dockerfile` and OpenVINO application to demonstrate how to create a Docker project for OpenVINO using OpenVINO base container image.
The sample application uses `ssd_mobilenet_v1` model and run object detection task. The application reads an image from `./input/image.jpg` and write the result to `./output/image.jpg`.
### How to get the DL model
```sh
python prepare_model.py
```
### How to build the image
```sh
cd Docker
docker build -t ov_app .
```
### How to run the container
```sh
docker run --rm -v /input:/app/input -v /output:/app/output ov_app
```
### Start the container for debugging / testing
```sh
docker run --rm -it -v /input:/app/input -v /output:/app/output ov_app /usr/bin/bash
```
### Note:
- The application file is `openvino_app.py`.
- The application code and a DL model will be deployed in `/app` directory with the `Dockerfile` in this project.
- Default working directory for the container `openvino/ubuntu22_runtime:2024.6.0` is `/opt/intel/openvino_2024.6.0.0`