Skip to content

tinyjamie/RPi-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Raspberry Pi 4 DNN image

output image

A Raspberry Pi 4 64-OS image with deep learning examples

License

Regularly, we get the question if we have an image of our Raspberry Pi with some frameworks and our deep-learning examples. We are happy to comply with this request.


Installation.

  • Get a 16 GB SD-card which will hold the image.
  • Download the image RPi_64OS_DNN.zip (4 GByte!) from our Gdrive site.
  • Flash the image on the SD-card with the Imager or balenaEtcher.
  • Insert the SD-card in your Raspberry Pi 4 and enjoy.
  • No WiFi installed. Password: 3.14

Tips.

  • You can overclock the Raspberry Pi if your SD-card is not too worn out. 1800 MHz is no problem. Most deep learning examples even work at 1950 MHz.
  • If you are in need of extra space, you can delete the opencv and the opencv_contrib folder from the SD-card. There are no longer needed since all libraries are placed in the /usr/local directory.
  • Use a tool like GParted sudo apt-get install gparted to expand the 16 GB image to larger SD-cards.

Contents.


Pre-installed frameworks.

output image


WiFi.

Since everyone has a unique password on their WiFi connection, we have not activated the WiFi.
To enable the wireless LAN follow the next steps:

  1. Left click on the Ethernet symbol.

    image

  2. Click "Turn on wireless LAN", and wait a few seconds. Your RPi will scan for available networks.

    image

  3. Left click again on the Ethernet symbol and choose your network.

    image

  4. Give your key, and wait a couple of seconds to let the RPi establish the connection.

    image

  5. Success!

    image

OpenCV + TensorFlow.

Importing both TensorFlow and OpenCV in Python can throw the error: cannot allocate memory in static TLS block.
This behaviour only occurs on an aarch64 system and is caused by the OpenMP memory requirements not being met.
For more information, see GitHub ticket #14884.

output image

There are a few solutions. The easiest is to import OpenCV at the beginning, as shown above.
The other is disabling OpenMP by setting the -DBUILD_OPENMP and -DWITH_OPENMP flags OFF.
Where possible, OpenCV will now use the default pthread or the TBB engine for parallelization.
We don't recommend it. Not all OpenCV algorithms automatically switch to pthread.
Our advice is to import OpenCV into Python first before anything else.


paypal

Releases

No releases published

Packages

No packages published