近期刚收到邮件openvino
出了最新的
linux
版本(
l_openvino_toolkit_p_2020.4.287.tgz
),故见猎心喜,试图在树莓派上安装,谁知把树莓派
TF
卡写坏了,估计试用会稍稍暂停几天……
以下是之前TF卡尚好时的实验记录,正文开始:
安装完成后,在/opt/intel/openvino/inference_engine/samples/
目录下有各种例程,我们先拿一个最简单的来试试
NCS2
是否已经安装了吧。
把NCS2
计算棒插在树莓派的某个
USB
接口上。
cd /opt/intel/openvino/deployment_tools/inference_engine/samples/python
进入该目录以后,用ls
命令看看
python
例程有哪些
- pi@raspberrypi:/opt/intel/openvino/deployment_tools/inference_engine/samples/python$ ls
- classification_sample classification_sample_async hello_query_device object_detection_sample_ssd requirements.txt style_transfer_sample
复制代码
用cd
命令进入hello_query_device
,
执行
pi@raspberrypi:/opt/intel/openvino/deployment_tools/inference_engine/samples/python$ cd hello_query_device/
再查看目录下文件,只有一个py
文件。
- pi@raspberrypi:/opt/intel/openvino/deployment_tools/inference_engine/samples/python/hello_query_device$ ls
- hello_query_device.py README.md
复制代码
执行这个文件试试:
- pi@raspberrypi:/opt/intel/openvino/deployment_tools/inference_engine/samples/python/hello_query_device$ python3 hello_query_device.py
- Available devices:
- Device: MYRIAD
- Metrics:
- DEVICE_THERMAL: UNSUPPORTED TYPE
- RANGE_FOR_ASYNC_INFER_REQUESTS: 3, 6, 1
- SUPPORTED_CONFIG_KEYS: CONFIG_FILE, PERF_COUNT, EXCLUSIVE_ASYNC_REQUESTS, DEVICE_ID, VPU_MYRIAD_PLATFORM, VPU_IGNORE_IR_STATISTIC, VPU_CUSTOM_LAYERS, VPU_MYRIAD_FORCE_RESET, VPU_PRINT_RECEIVE_TENSOR_TIME, LOG_LEVEL, VPU_HW_STAGES_OPTIMIZATION
- SUPPORTED_METRICS: DEVICE_THERMAL, RANGE_FOR_ASYNC_INFER_REQUESTS, SUPPORTED_CONFIG_KEYS, SUPPORTED_METRICS, OPTIMIZATION_CAPABILITIES, FULL_DEVICE_NAME, AVAILABLE_DEVICES
- OPTIMIZATION_CAPABILITIES: FP16
- FULL_DEVICE_NAME: Intel Movidius Myriad X VPU
- AVAILABLE_DEVICES: 1.1.2-ma2480
- Default values for device configuration keys:
- CONFIG_FILE:
- PERF_COUNT: OFF
- EXCLUSIVE_ASYNC_REQUESTS: OFF
- DEVICE_ID:
- VPU_MYRIAD_PLATFORM:
- VPU_IGNORE_IR_STATISTIC: OFF
- VPU_CUSTOM_LAYERS:
- VPU_MYRIAD_FORCE_RESET: OFF
- VPU_PRINT_RECEIVE_TENSOR_TIME: OFF
- LOG_LEVEL: LOG_NONE
- VPU_HW_STAGES_OPTIMIZATION: ON
复制代码
拔出NCS2
再尝试一次。
- pi@raspberrypi:/opt/intel/openvino/deployment_tools/inference_engine/samples/python/hello_query_device$ python3 hello_query_device.py
- Available devices:
- pi@raspberrypi:/opt/intel/openvino/deployment_tools/inference_engine/samples/python/hello_query_device$
复制代码
可以看到,这次没有找到可用NCS棒。以上是跑最简单的例程,因某些原因,考虑先发出来,后续再补充完善。
|