Steps to install Detectron2 on Raspberry Pi
1- Install PyTorch dependencies first
$ sudo apt update
$ sudo apt install libopenblas-dev libblas-dev m4 cmake cython python3-dev python3-yaml python3-setuptools python3-wheel python3-pillow python3-numpy
$ sudo apt install libatlas3-base
$ sudo pip3 install numpy
$ python3 -m pip install Pillow2- Download torch and torchvision wheel files
- torch (v1.5)
- torchvision (v0.6)
3- Install torch and torchvision wheel files
$ pip3 install torch-1.5.0a0%2B4ff3872-cp37-cp37m-linux_armv7l.whl
$ pip3 install torchvision-0.6.0a0%2Bb68adc4- Build Detectron2 from Source
$ git clone https://github.com/facebookresearch/detectron2.git
$ python -m pip install -e detectron2If you face "matplotlib.cbook.TimeoutError: LOCKERROR" while importing matplotlib
$ rm -r /home/pi/.cache/matplotlib- ¯\_(ツ)_/¯