`device_name="MYRIAD" for Intel NCS2` comment (#8327)
Browse filesDisplay device_name="MYRIAD" for Intel NCS2 option per user question in https://github.com/ultralytics/yolov5/issues/8154
- 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(
|
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():
|