This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/intel-iot-devkit/smart-video-workshop/tree/master/object-detection | |
Detailed steps are mentioned in https://github.com/intel-iot-devkit/smart-video-workshop/tree/master/object-detection | |
Part I | |
======== | |
sudo mkdir -p /opt/intel/workshop/ | |
sudo chown ubuntu.ubuntu -R /opt/intel/workshop/ | |
cd /opt/intel/workshop/ | |
git clone https://github.com/intel-iot-devkit/smart-video-workshop.git | |
export CV=/opt/intel/workshop/smart-video-workshop/ | |
Part II | |
======== | |
mkdir -p mobilenet-ssd/FP32 | |
cd /opt/intel/computer_vision_sdk_2018.5.455/deployment_tools/model_optimizer | |
cd /opt/intel/workshop/smart-video-workshop/object-detection | |
so ./downloader.py –name mobilenet-ssd | |
cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/ | |
sudo python3 mo.py --input_model /opt/intel/computer_vision_sdk_2018.5.455/deployment_tools/model_downloader/object_detection/common/mobilenet-ssd/caffe/mobilenet-ssd.caffemodel -o /opt/intel/workshop/smart-video-workshop/object-detection --scale 256 --mean_values [127,127,127] | |
cd /opt/intel/workshop/smart-video-workshop/object-detection | |
sudo apt-get install libgflags-dev | |
/home/ubuntu/code/open_model_zoo-master/demos/build/intel64/Release/lib | |
eval echo "~$ubuntu" | |
/opt/intel/computer_vision_sdk/inference_engine | |
PartIII | |
========= | |
#Edit MakeFile Contents | |
all: | |
g++ -fPIE -O3 -o tutorial1 --std=c++11 main.cpp -I. \ | |
-I/opt/intel/openvino/opencv/include/ \ | |
-I/opt/intel/computer_vision_sdk/inference_engine/include/ \ | |
-I/opt/intel/computer_vision_sdk/inference_engine/include/cpp \ | |
-L/opt/intel/computer_vision_sdk/inference_engine/lib/intel64 -linference_engine -ldl -lpthread \ | |
-L/opt/intel/openvino/computer_vision_sdk/opencv/lib -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -lopencv_highgui -lopencv_videoio -lopencv_video -lgflags -I/opt/intel/computer_vision_sdk/inference_engine/include -I/opt/intel/computer_vision_sdk/inference_engine/samples/ -I./ -I/opt/intel/computer_vision_sdk/inference_engine/samples/common/format_reader/ -I/opt/intel/openvino/computer_vision_sdk/opencv/include -I/usr/local/include -I/opt/intel/computer_vision_sdk/inference_engine/samples/thirdparty/gflags/include -I/opt/intel/computer_vision_sdk/opencv/include -I/opt/intel/computer_vision_sdk/opencv/include/cpp -I/opt/intel/computer_vision_sdk/inference_engine/samples/extension -L/opt/intel/computer_vision_sdk/inference_engine/bin/intel64/Release/lib -L/opt/intel/computer_vision_sdk/inference_engine/lib/ubuntu_16.04/intel64 -L/opt/intel/workshop/smart-video-workshop/object-detection/lib -L/opt/intel/computer_vision_sdk/opencv/lib -ldl -linference_engine -lopencv_highgui -lopencv_core -lopencv_imgproc -lopencv_videoio -lopencv_imgcodecs -L/opt/intel/workshop/smart-video-workshop/object-detection/lib | |
make | |
./tutorial1 -i /home/ubuntu/code/Cars.mp4 -m /opt/intel/workshop/smart-video-workshop/object-detection/mobilenet-ssd.xml | |
Happy Mastering DL!!!
No comments:
Post a Comment