我正在尝试在运行在Raspberry Pi 4上的Ubuntu 18.04上安装DLDT包。DLDT的2019分支似乎安装正确,但存在一些问题,但可以修复。然而,更高的版本(即2020.3)给了我以下错误:
Error compiling Cython file:
------------------------------------------------------------
...
# Usage example:\n
# ```python
# ie = IECore()
# net = ie.read_network(model=path_to_xml_file, weights=path_to_bin_file)
# ```
cpdef IENetwork read_network(self, model: [str, bytes], weights: [str, bytes] = "", init_from_buffer: bool = "False"):
^
------------------------------------------------------------
/home/ubuntu/dldt/inference-engine/ie_bridges/python/src/openvino/inference_engine/ie_api.pyx:136:10: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef class LayersStatsMap(dict):
cdef C.IENetwork net_impl
cdef class IECore:
cdef C.IECore impl
cpdef IENetwork read_network(self, model : [str, bytes], weights : [str, bytes] = ?, bool init_from_buffer = ?)
^
------------------------------------------------------------我使用的CMAKE命令是:
sudo cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_MKL_DNN=OFF -DENABLE_CLDNN=OFF -DENABLE_GNA=OFF -DENABLE_SSE42=OFF -DTHREADING=SEQ -DENABLE_OPENCV=OFF -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DPYTHON_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.6m.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.6 ..函数的声明或使用似乎有问题。有人对此有什么建议吗?
这是一个兼容性问题吗?这是否与某些Cython版本问题有关?我有的是: 0.29.21
希望在这方面能帮上忙。提前感谢!
发布于 2020-08-11 15:52:45
事实证明,我的RPi上有两个版本的cython (即0.26和0.29),而cmake使用的是较旧的版本。一旦我更新了cmake以使用0.29版本,一切都很好。
我还下载了最新版本的DLDT (2020.4版),并使用了与之前相同的cmake命令。这个版本的DLDT检查所需的最低Cython版本是0.29,这让我找到了答案。
发布于 2020-08-08 22:13:48
在Raspberry pi 4上安装和构建openvino的另一个选项,
从https://download.01.org/opencv/2019/openvinotoolkit/R3/下载raspian installer 2019版本
按照此链接中给出的步骤操作- https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_raspbian.html
https://stackoverflow.com/questions/63299117
复制相似问题