# Intel AI Sales Kit - Object Detection Demo and Benchmark with YOLO v3
This page will go you through steps to run Intel 11th Gen Core CPU (formerly Tiger Lake) optimized deep learning objection detection models, YOLO v3, demo.
###### tags: `Intel AI Sales Kit`
- Table of Content
[ToC]
## Run Object Detection Demo with YOLO v3
### 1. Download Test Video
```
wget -O ~/Downloads/NewVideo2.mp4 https://github.com/incluit/OpenVino-For-SmartCity/raw/master/data/NewVideo2.mp4
```
### 2. Download Docker Image
```
docker pull your_dockerhub_id/openvino:2021.3_developer_models
```
#### Please change your_dockerhub_id of "your_dockerhub_id/openvino:2021.3_developer_models" in the command line to one of following (sertek, synnexgrp, wt1com, wpig). For example,
```
docker pull sertek/openvino:2021.3_developer_models
```
### 3. Run Obejct Detection Demo
```
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v ~/Downloads:/mnt --device /dev/dri:/dev/dri --group-add=$(stat -c "%g" /dev/dri/render*) --rm your_dockerhub_id/openvino:2021.3_developer_models /home/openvino/smartcity_demo.sh
```

### 4 Run Benchmark
```
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v ~/Downloads:/mnt --device /dev/dri:/dev/dri --group-add=$(stat -c "%g" /dev/dri/render*) --rm your_dockerhub_id/openvino:2021.3_developer_models
python3 /opt/intel/openvino/deployment_tools/tools/benchmark_tool/benchmark_app.py -m /opt/intel/openvino_models/public/yolo-v3-tf/FP16-INT8/yolo-v3-tf.xml -d GPU -api async -t 60
```
### 5. Add New Models for Benchmark
Follow steps in link below to convert models to FP32, FP16 and INT8 IR in /home/openvino/openvino_modelsr. Then copy it to /mnt folder. They can be accessed in ~/Downloads folder in the host and /mnt in the container.
https://hackmd.io/3jNqTlEMTZe93rAKOpyMDA
## Install OS and tool (skip this if your system have Ubuntu 20.04.2 installed)
#### Make sure BIOS setting is correct
Please refer to
https://hackmd.io/UZ8LWR30Qn-SFPbC21_j5Q
#### Download and Install Ubuntu 20.04.2.0 LTS
URL to donwload Ubuntu 20.04.2.0 LTS ISO image:
https://ubuntu.com/download/desktop/thank-you?version=20.04.2.0&architecture=amd64
#### Install Ubuntu 20.04
https://phoenixnap.com/kb/install-ubuntu-20-04
#### Install Docker Utility
```
sudo apt update
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt install curl
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
## Need to logout or reboot to run docker as non-root user
docker run hello-world
```
If you see error messages below, reboot your system.
```
openvino@openvino-TGL:~$ docker run hello-world
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
```