This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Install MXNET 1.5.X on Raspberry Pi 4 #20151
Unanswered
Raunak-Singh-Inventor
asked this question in
Ideas
Replies: 1 comment 1 reply
-
|
We have a guide on building for raspberry pi (source). This doc includes a guide on cross-compilation. Have you tried the instructions there? Do you see a need to update the doc? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We must document the MXNET installation steps properly in Readme file.
The recommended way is to do this on any Linux machine with 16 GB memory and 8 CPU machine using Docker. It takes 15 mins to finish the build. Native building on raspberry itself is possible but takes more than 4-5 hours.
To install follow this link which has instructions but are not clear
https://mxnet.apache.org/versions/1.4.1/install/index.html?version=master&platform=Devices&language=Python&processor=CPU
Docker installation
Step 1 Install Docker on your machine by following the docker installation instructions.
Note - You can install Community Edition (CE)
Step 2 Post installation steps to manage [Docker] as a non-root user.
Follow the four steps in this docker documentation to allow managing docker containers without sudo.
Actual Build
Step 1: Go to folder of your choice e.g.
cd ~/DownloadsStep 2: Clone the repository e.g. targeting MXNET verison 1.5.x, using this command
git clone -b v1.5.x https://github.com/apache/incubator-mxnet.git mxnetStep 3: go inside mxnet that you cloned
cd mxnetStep 4: run this command to also get additional 3rd party repos for successful build
`git submodule update --init --recursive'
Step5: Run the build using docker by kicking of the python script
ci/build.py -p armv7The resulting artifact will be located in build/mxnet-x.x.x-py2.py3-none-any.whl, copy this file to your Raspberry Pi. For us the target file name was mxnet-1.5.1-py2.py3-none-any.whl
You will also need to do this command on RaspberryPi
pip install mxnet-1.5.1-py2.py3-none-any.whlsudo apt-get install libgfortran3pip install --upgrade requests==2.20.1pip install gluoncv==0.7.0pip install opencv-pythonBeta Was this translation helpful? Give feedback.
All reactions