|
| 1 | +# Intel® Edge AI Performance Evaluation Toolkit User Guide |
| 2 | + |
| 3 | +Intel® Edge AI Performance Evaluation Toolkit is an Edge AI customer enabling tool that has been designed to easily qualify and evaluate platform deep learning inference performance. |
| 4 | + |
| 5 | + |
| 6 | +## Components |
| 7 | + |
| 8 | +It consists of scripts, configuration files, Intel Thermal Analysis Tool (TAT) workspace file and optimized OpenVINO INT8 IR model and brief explanation below, |
| 9 | + |
| 10 | +* **OS setup scripts** - are used to setup container running environment on both Ubuntu Linux and Windows OS. |
| 11 | + |
| 12 | +* **OpenVINO POT quantization scripts and configuration files** - are used to quantize OpenVINO FP32/FP16 IR models to INT8 by OpenVINO Post-Training Optimization Tool. |
| 13 | + |
| 14 | +* **Benchmark scripts and Intel PTAT workspace file** - are used to benchmark optimized INT8 IR model and monitor system frequency and thermal condition to qualify system performance. |
| 15 | + |
| 16 | + |
| 17 | +## Supported HW |
| 18 | + |
| 19 | +* Intel® Core™ i7-1165G7 Processor |
| 20 | +* Intel® Core™ i7-1185G7E Processor |
| 21 | +* Intel® Celeron® 6305E |
| 22 | + |
| 23 | + |
| 24 | +## License |
| 25 | +Intel® Edge AI Performance Evaluation is licensed under MIT License. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms. |
| 26 | + |
| 27 | + |
| 28 | +## User Guide |
| 29 | + |
| 30 | +Below are steps to get started for Ubuntu 20.04.4 and Windows 10 21H2 |
| 31 | + |
| 32 | +### User Guide for Ubuntu 20.04 |
| 33 | + |
| 34 | +**Install Ubuntu 20.04.4** |
| 35 | +https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overview |
| 36 | + |
| 37 | +**Clone Intel® Edge AI Performance Evaluation Toolkit** |
| 38 | + |
| 39 | +```=bash |
| 40 | +sudo apt update |
| 41 | +sudo apt upgrade |
| 42 | +sudo apt install git |
| 43 | +git clone https://github.com/intel/Intel-Edge-AI-Performance-Evaluation-Toolkit.git |
| 44 | +``` |
| 45 | + |
| 46 | +**Install docker utility by running** |
| 47 | + |
| 48 | +```=bash |
| 49 | +cd Intel-Edge-AI-Performance-Evaluation-Toolkit |
| 50 | +bash tools/install_docker.sh |
| 51 | +``` |
| 52 | + |
| 53 | +Reboot system. |
| 54 | + |
| 55 | +**Install Intel Power and Thermal Analysis Tool** |
| 56 | + |
| 57 | +Tool download link : [Intel® Power And Thermal Analysis Tool](https://www.intel.com/content/www/us/en/secure/design/confidential/software-kits/kit-details.html?kitId=637737) |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +**Loading Intel PTAT workspace file from ptat_workspace.xml** |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +**Run Benchmark and Quantization Scripts** |
| 67 | + |
| 68 | +1. **Copy yolo-v4-tf FP16_INT8 IR model to Downloads folder in Home directory** |
| 69 | + |
| 70 | +```=bash |
| 71 | +cd Intel-Edge-AI-Performance-Evaluation-Toolkit |
| 72 | +cp -ar openvino_models/ $HOME/Downloads |
| 73 | +``` |
| 74 | + |
| 75 | +2. **Run benchmark_app on yolo-v4-tf FP16_INT8 IR model on CPU** |
| 76 | + |
| 77 | +```=bash |
| 78 | +bash run_yolo-v4-tf-int8-cpu_benchmark.sh |
| 79 | +``` |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +3. **Run benchmark_app on yolo-v4-tf FP16_INT8 IR model on GPU** |
| 85 | + |
| 86 | +```=bash |
| 87 | +bash run_yolo-v4-tf-int8-gpu_benchmark.sh |
| 88 | +``` |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | +4. **Run quantization on yolo-v3-tf FP16 IR model** |
| 94 | + |
| 95 | +```=bash |
| 96 | +bash quantize_yolo-v3-tf_int8.sh |
| 97 | +``` |
| 98 | +### User Guide for Windows 10 |
| 99 | + |
| 100 | +**Install Windows 10 21H1** |
| 101 | + |
| 102 | +* Download Windows Insider Preview ISO (microsoft.com) and install |
| 103 | + |
| 104 | +* Install required graphic driver (30.0.101.xxxx) |
| 105 | + |
| 106 | + |
| 107 | +**Download Intel® Edge AI Performance Evaluation Toolkit github link below** |
| 108 | + |
| 109 | +https://github.com/intel/Intel-Edge-AI-Performance-Evaluation-Toolkit/archive/refs/heads/main.zip |
| 110 | + |
| 111 | +Extract to C:\Users\Public\Intel-Edge-AI-Performance-Evaluation-Toolkit. |
| 112 | + |
| 113 | + |
| 114 | +**Enable Hypher-V (Run as Administator in PowerShell)** |
| 115 | + |
| 116 | +Please refere to tools\enable-hyper-v.p1 and run below, |
| 117 | + |
| 118 | +``` |
| 119 | +Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All |
| 120 | +``` |
| 121 | + |
| 122 | +Press Y to reboot system. |
| 123 | + |
| 124 | +**Install WSL2 (Run as Administator in PowerShell) and Reboot** |
| 125 | + |
| 126 | +Please refere to tools\install_wsl2.p1 and run below, |
| 127 | +``` |
| 128 | +wsl --install |
| 129 | +Restart-Computer |
| 130 | +``` |
| 131 | + |
| 132 | +After reboot, WSL will start automatically to install Ubuntu. Enter user name and password for WSL Ubuntu when prompt. |
| 133 | + |
| 134 | +**Install docker utility by running in WSL** |
| 135 | + |
| 136 | +```=bash |
| 137 | +cd /mnt/c/Users/Public/Intel-Edge-AI-Performance-Evaluation-Toolkit |
| 138 | +bash tools/install_docker.sh |
| 139 | +``` |
| 140 | + |
| 141 | +Reboot to activate docker settings. |
| 142 | + |
| 143 | +**Install Intel Power and Thermal Analysis Tool** |
| 144 | + |
| 145 | +Tool download link : [Intel® Power And Thermal Analysis Tool](https://www.intel.com/content/www/us/en/secure/design/confidential/software-kits/kit-details.html?kitId=637737) |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | +**Launch Intel PTAT tool as administrator** |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | +**Loading Intel PTAT workspace file from ptat_workspace.json** |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | +**Run Benchmark and Quantization Scripts in WSL** |
| 161 | + |
| 162 | +1. **Copy yolo-v4-tf FP16_INT8 IR model to Downloads folder in Home directory** |
| 163 | + |
| 164 | +```=bash |
| 165 | +cd /mnt/c/Users/Public/Intel-Edge-AI-Performance-Evaluation-Toolkit |
| 166 | +mkdir $HOME/Downloads |
| 167 | +cp -ar openvino_models/ $HOME/Downloads |
| 168 | +``` |
| 169 | + |
| 170 | +2. **Run benchmark_app on yolo-v4-tf FP16_INT8 IR model on CPU** |
| 171 | + |
| 172 | +```=bash |
| 173 | +bash run_yolo-v4-tf-int8-cpu_benchmark.sh |
| 174 | +``` |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | +3. **Run benchmark_app on yolo-v4-tf FP16_INT8 IR model on GPU** |
| 180 | + |
| 181 | + |
| 182 | +```=bash |
| 183 | +bash run_yolo-v4-tf-int8-gpu_benchmark.sh |
| 184 | +``` |
| 185 | + |
| 186 | + |
| 187 | +4. **Run quantization on yolo-v3-tf FP16 IR model** |
| 188 | + |
| 189 | +```=bash |
| 190 | +sudo apt install unzip |
| 191 | +bash tools/download_coco_dataset.sh |
| 192 | +bash quantize_yolo-v3-tf_int8.sh |
| 193 | +``` |
| 194 | + |
| 195 | +## How to contribute |
| 196 | +See [CONTRIBUTING](https://github.com/intel/Intel-Edge-AI-Performance-Evaluation-Toolkit/blob/main/CONTRIBUTING.md) for details. Thank you! |
| 197 | + |
| 198 | + |
| 199 | +## Get a support |
| 200 | +Please report questions, issues and suggestions using: |
| 201 | +[GitHub* Issues](https://github.com/intel/Intel-Edge-AI-Performance-Evaluation-Toolkit/issues) |
0 commit comments