This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
PythonAPI MultiStick
PINTO edited this page Dec 31, 2018
·
4 revisions
https://software.intel.com/en-us/articles/OpenVINO-InferEngine#inpage-nav-12
https://software.intel.com/en-us/articles/transitioning-from-intel-movidius-neural-compute-sdk-to-openvino-toolkit#inpage-nav-9
https://software.intel.com/en-us/forums/computer-vision/topic/798625
https://software.intel.com/en-us/forums/computer-vision/topic/801648
https://github.com/yuanyuanli85/open_model_zoo/blob/ncs2/demos/python_demos/multiple_device_ncs2_async.py
plugin = IEPlugin(device = "MYRIAD")
plugin.set_config({"KEY_VPU_FORCE_RESET": "NO"})
↓
plugin = IEPlugin(device = "MYRIAD")
plugin.set_config({"VPU_FORCE_RESET": "NO"})
self.net = IENetwork.from_ir(model=model_xml, weights=model_bin)
self.exec_net = self.plugin.load(network=self.net, num_requests=2)
".wait(-1)" is synchronous processing.
self.exec_net.start_async(request_id=self.next_request_id, inputs={input_blob: image})
if self.exec_net.requests[self.current_request_id].wait(-1) == 0:
res = self.exec_net.requests[self.current_request_id].outputs[out_blob]
・・・
# exchange request id
self.current_request_id, self.next_request_id = self.next_request_id, self.current_request_id