OpenVINO如何指定设备为神经棒

百里不守约_45690024 2021-03-08 10:04:33
import openvino.inference_engine as ie
import cv2
import numpy
import time


def main():
####################### Device Initialization ########################
# Plugin initialization for specified device and load extensions library if specified
plugin = ie.IEPlugin(device="MYRIAD")
#########################################################################

我参考别人是这么使用来指定设备为神经棒,但是我自己电脑和树莓派上都没有IEPlugin这个函数,请问应该如何处理。
...全文
3237 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
JackieLee 2023-04-05
  • 打赏
  • 举报
回复

To set the inference device as the Intel Neural Compute Stick 2 (NCS2) in OpenVINO, you can follow these steps:

First, make sure that you have installed the OpenVINO toolkit and the Intel Neural Compute SDK on your system.

Connect your Intel NCS2 device to your computer and ensure that it is properly recognized by your system.

Set the environment variables required for OpenVINO and the Intel Neural Compute SDK by running the following commands in a terminal or command prompt:

bash
Copy code
source /opt/intel/openvino/bin/setupvars.sh
source /opt/intel/openvino_2021.4.582/deployment_tools/inference_engine/external/97-myriad-usbboot.rules
sudo udevadm control --reload-rules && udevadm trigger
Navigate to the directory containing the OpenVINO sample code that you want to run.

Use the following command to run the sample code with the Intel NCS2 device:

php
Copy code
./.sh -d MYRIAD
Replace with the name of the sample code that you want to run.

The -d flag specifies the target device, which in this case is MYRIAD, the code name for the Intel NCS2 device.

The sample code will run and output the inference results to the console or to a file, depending on the sample.

Note that the specific steps may vary depending on your system configuration and the version of OpenVINO and the Intel Neural Compute SDK that you are using. Be sure to consult the OpenVINO documentation for more information on using the Intel NCS2 with OpenVINO.

566

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧