Skip to content

Instantly share code, notes, and snippets.

@AviKKi
Last active January 25, 2020 11:56
Show Gist options
  • Save AviKKi/52ce77c369aa6c5d1cfe993eff454cfa to your computer and use it in GitHub Desktop.
Save AviKKi/52ce77c369aa6c5d1cfe993eff454cfa to your computer and use it in GitHub Desktop.
# installation
# source - https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.html
# source - https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_apt.html
# Add Key
wget -qO - https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB | sudo apt-key add -
sudo bash -c 'echo "deb https://apt.repos.intel.com/openvino/2019/ all main" > /etc/apt/sources.list.d/intel-openvino-2019.list'
sudo apt update
# to-do: write a script to download latest version of openvino from apt-cache search result
sudo apt-cache search intel-openvino-dev-ubuntu18
sudo apt install intel-openvino-dev-ubuntu18-2019.3.376
## To initialize openVino env variables
source /opt/intel/openvino/bin/setupvars.sh
# Converting a caffee model
cd /opt/intel/openvino/deployment_tools/model_optimizer
python mo_caffee.py --input_model model.caffeemodel -o [output_dir]
# output dir will have a xml and bin file
# Using inference engine
# Downloading and using open models
cd /opt/intel/openvino/deployment_tools/open_model_zoo/tools/downloader
# print all available models
python downloader.py --print_all
# download a specific model from above list
python downloader.py --name [name_of_model]
## Retraing Model
# Source - https://software.intel.com/en-us/articles/retrain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment