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 |