glenn-jocher commited on
Commit
724d5b2
·
unverified ·
1 Parent(s): a2a1ed2

`device_name="MYRIAD" for Intel NCS2` comment (#8327)

Browse files

Display device_name="MYRIAD" for Intel NCS2 option per user question in https://github.com/ultralytics/yolov5/issues/8154

Files changed (1) hide show
  1. models/common.py +1 -1
models/common.py CHANGED
@@ -366,7 +366,7 @@ class DetectMultiBackend(nn.Module):
366
  if not Path(w).is_file(): # if not *.xml
367
  w = next(Path(w).glob('*.xml')) # get *.xml file from *_openvino_model dir
368
  network = ie.read_model(model=w, weights=Path(w).with_suffix('.bin'))
369
- executable_network = ie.compile_model(model=network, device_name="CPU")
370
  output_layer = next(iter(executable_network.outputs))
371
  meta = Path(w).with_suffix('.yaml')
372
  if meta.exists():
 
366
  if not Path(w).is_file(): # if not *.xml
367
  w = next(Path(w).glob('*.xml')) # get *.xml file from *_openvino_model dir
368
  network = ie.read_model(model=w, weights=Path(w).with_suffix('.bin'))
369
+ executable_network = ie.compile_model(network, device_name="CPU") # device_name="MYRIAD" for Intel NCS2
370
  output_layer = next(iter(executable_network.outputs))
371
  meta = Path(w).with_suffix('.yaml')
372
  if meta.exists():