打印

树莓派4B+,安装onnx

[复制链接]
244|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
冷冻链|  楼主 | 2018-10-6 18:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

397

主题

397

帖子

0

粉丝