树莓派4B+,安装onnx

[复制链接]
269|0
 楼主| 第8号打板工 发表于 2018-9-28 18:40 | 显示全部楼层 |阅读模式
onnx可以在matlab,tensorflow等深度学习神经网络平台间搭桥,方便深度学习神经网络的代码在各平台移植



树莓派怎样用python编辑matlab或tensorflow等平台上的深度学习神经网络:



树莓派安装ONNX就行了,如下:

SourceLinux and MacOSYou will need an install of protobuf and numpy to build ONNX. One easy way to get these dependencies is via Anaconda:# Use conda-forge protobuf, as default doesn't come with protocconda install -c conda-forge protobuf numpyYou can then install ONNX from PyPi (Note: Set environment variable ONNX_ML=1 for onnx-ml):pip install onnxYou can also build and install ONNX locally from source code:git clone github.com/onnx/onnx.gitcd onnxgit submodule update --init --recursivepython setup.py installNote: When installing in a non-Anaconda environment, make sure to install the Protobuf compiler before running the pip installation of onnx. For example, on Ubuntu:sudo apt-get install protobuf-compiler libprotoc-devpip install onnx
您需要登录后才可以回帖 登录 | 注册

本版积分规则

393

主题

393

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部