"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;

March 29, 2019

Day #229 - Running Pytorch Model in OpenVino

Step 1 - ONNX Pre-Requisites Install


Step 2 - Save Pytorch Model in ONNX Format

#Customize and Run this model

Step 3 - Goto Model Optimizer Directory
sudo python3 mo.py --input_model /home/ubuntu/code/resnet51mid.onnx 
<code>python3 mo.py --input_model <INPUT_MODEL>.onnx</code>



This will generate the required xml to be run with OpenVino Model

Step 4 - Custom Model Training


Step 5 - Custom Model Export


./pedestrian_tracker_demo -i /home/ubuntu/code/smarthub_915am_cut.mp4.mp4 -m_det /opt/intel/computer_vision_sdk/deployment_tools/intel_models/person-detection-retail-0013/FP32/person-detection-retail-0013.xml -m_reid /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/resnet51mid.xml -d_det CPU

Happy Mastering DL!!!

No comments: