`device_name="MYRIAD" for Intel NCS2` comment (#8327)
Display device_name="MYRIAD" for Intel NCS2 option per user question in https://github.com/ultralytics/yolov5/issues/8154
This commit is contained in:
parent
a2a1ed201d
commit
724d5b21b7
|
|
@ -366,7 +366,7 @@ class DetectMultiBackend(nn.Module):
|
||||||
if not Path(w).is_file(): # if not *.xml
|
if not Path(w).is_file(): # if not *.xml
|
||||||
w = next(Path(w).glob('*.xml')) # get *.xml file from *_openvino_model dir
|
w = next(Path(w).glob('*.xml')) # get *.xml file from *_openvino_model dir
|
||||||
network = ie.read_model(model=w, weights=Path(w).with_suffix('.bin'))
|
network = ie.read_model(model=w, weights=Path(w).with_suffix('.bin'))
|
||||||
executable_network = ie.compile_model(model=network, device_name="CPU")
|
executable_network = ie.compile_model(network, device_name="CPU") # device_name="MYRIAD" for Intel NCS2
|
||||||
output_layer = next(iter(executable_network.outputs))
|
output_layer = next(iter(executable_network.outputs))
|
||||||
meta = Path(w).with_suffix('.yaml')
|
meta = Path(w).with_suffix('.yaml')
|
||||||
if meta.exists():
|
if meta.exists():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue