My last CPU vs TPU bench-marked CPU vs. Edge TPU image classification inference. With the tiny 28×28 images used (i.e. MNIST database demo), it showed the TPU lagging behind CPU! This time I did another test with larger test and training images using MobileNet V2. The codes are (and modified for CPU) from Coral.ai support website.

Results CPU only ..


vs with Edge TPU ..


Bingo! With the more “representative” test image dataset, it was shown that the use of a ML accelerator like the Coral Edge TPU, inference screamed well ahead of CPU for image classification.
So, therefore this round the winner is ..

Next I am pretty keen to work on some Edge CPU vs TPU for video, e.g. object detection tests.
Latest posts
- Complete Step by Step : Image Classification with TensorFlow and CNN
- Voice recognition using Tensorflow Lite in nRFS52840 development board
- Tested Bard vs ChatGPT to write a Python script for MNIST digit prediction!
- Edge TPU vs CPU for OpenCV Object Detection on IMX8
- Tensorflow Lite CPU vs TPU. Take Two!