Skip to content

Commit

Permalink
Support for OpenVINO. x86 only
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Feb 15, 2019
1 parent 17cc111 commit d96a010
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main_openvino.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ def main(camera_FPS, camera_width, camera_height, inference_scale, threshold, de

# DOC
print("DOC Model loading...")
model_xml="irmodels/tensorflow/FP32/weights.xml"
model_bin="irmodels/tensorflow/FP32/weights.bin"
if device == "MYRIAD":
model_xml="irmodels/tensorflow/FP16/weights.xml"
model_bin="irmodels/tensorflow/FP16/weights.bin"
else:
model_xml="irmodels/tensorflow/FP32/weights.xml"
model_bin="irmodels/tensorflow/FP32/weights.bin"
net = IENetwork(model=model_xml, weights=model_bin)
plugin = IEPlugin(device=device)
if device == "CPU":
Expand Down

0 comments on commit d96a010

Please sign in to comment.