CNN correctly predicting a handwritten digit

In my last post, I’ve installed a Jupyter Notebooks with TensorFlow support on a Raspberry Pi’s Kubernetes cluster. Today I will train and run a Convolutional Neural Network to recognize handwritten digits on it.

In deep learning, a convolutional neural network (CNN, or ConvNet) is a class of deep neural networks, most commonly applied to analyzing visual imagery. [Wikipedia].

I’m using the MNIST dataset which is like the “Hello World” of CNN. …


Last time I’ve deployed CockroachDB into my Raspberry Pi’s Kubernetes cluster now it’s time for Jupyter Notebooks with TensorFlow support.

TensorFlow has support for Raspberry Pi running a 64 bits OS but they don’t publish Docker images for the arm64 platform so I decided to create one.

There are lots of articles and posts on how to install TensorFlow X.Y on Raspberry Z but most of them are for older versions of the library or the 32 bits version of the Raspberry and they don’t work with my configuration (Raspberry 4B + Ubuntu 20.04 + Python 3.8).

Luckily I’ve found…


Raspberry Pi 4s now have 64 bits ARM processors and 2, 4, and up to 8GB of RAM. This made them, at least for me, quite interesting to build a local Kubernetes (K8s) cluster to play with.

Installing the latest Ubuntu Server was super simple thanks to Raspberry Pi Imager you can check some instructions here: https://opensource.com/article/20/4/raspberry-pi-imager-mac

After reviewing different approaches to get K8s running on my “cluster” I’ve decided to go with Rancher’s K3S which is super easy to install, is lightweight, and works perfectly.

With a K8s cluster running it was time to install a CockroachDB cluster on…

Marcelo Glezer

Hacker: Go, C++, Python, Js, NoSQL MindTraveler, Serial Griller/Asador Serial. a.k.a Gato

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store