element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Community
  • Products
  • Dev Tools
  • Avnet Boards Community
  • More
  • Cancel
Avnet Boards Community
Avnet Boards Blog Benchmarking Edge Impulse on Avnet's MaaXBoard
  • Avnet Boards Blog
  • Forums
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Community to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fononye
  • Date Created: 19 Jan 2024 7:49 PM Date Created
  • Views 864 views
  • Likes 3 likes
  • Comments 0 comments
  • avnet
  • maaxboard
Related
Recommended

Benchmarking Edge Impulse on Avnet's MaaXBoard

fononye
fononye
19 Jan 2024

image

Introduction

This will walk you through setting up your MaaXBoard with the hardware and software you must have, direct you through changes to make on an Edge impulse project and additional package installation steps, and result in running a script with an Edge Impulse model to see how it performs in terms of processing speed, power, and accuracy.

Debian vs Yocto

In addition, this benchmarking project was done with the Yocto image instead of the Debian image Monica used in her project. The Debian image is used for main desktop features for embedded systems. The Yocto image has more flexibility with custom features for embedded systems Below is an image from Kosta Zertsekel's article titled Yocto vs Ubuntu for Embedded that sums up the difference between the two.

image
Goal

This benchmark involves running the FOMO and MobileNet Edge Impulse models on the Yocto image for the MaaXBoard and seeing how it compares to Tenserflow models previously benchmarked on a Debian Image. A reference to this can be found on this Benchmarking Machine Learning on Avnet's MaaXBoard post by Monica Houston. After running the benchmark, you'll see results of power consumption (measured by the current), the accuracy of the models, and their inference time. From the results you can determine which model you would prefer to use for object detection projects.

Image

The models are tested on an image that consists of an apple and banana as the main objects. This is the same image used in Monica's Benchmarking Machine Learning project and Alasdair Allan's own benchmarking project. So I also used this image to keep my project as consistent as possible 

image

Models

FOMO vs MobileNet

The Edge Impulse model that will the main focus of this benchmark is the Faster Object, More Objects (FOMO) model that Edge Impulse studio provides as opposed to the default MobileNetV2 SSD for a better benchmark. For object detection, the FOMO model is set to take a 224x224 input for the image size like the other models in Monica Houston's Benchmarking Machine Learning on MaaXBoard project (MobileNet v.2, Mobilenet v.1, EfficientNet v0) whereas the MobileNetV2 SSD model only takes a 320x320 input for image size. Compared to MobileNetV2 SSD, FOMO is 30x faster and captures the position of objects instead of the whole size in the image. This is stated in the Announcing FOMO (Faster Objects, More Objects) Edge Impulse blog. The default Edge Impulse model has also been tested and its results are also compared to the other models.

Dataset

For the Edge Impulse models, I took 181 pictures of backgrounds, apples and bananas.

Ex:

image

Benchmarking Guides

Here are step by step guides on how to install and run Edge Impulse on the MaaXBoard and benchmark the model.

Install and Run: http://avnet.me/install_ei_maaxboard

Benchmark: http://avnet.me/ei_maaxboard_benchmark

Results of Benchmarking for Edge Impulse

MobileNet Model Build (320x320) on MaaXBoard:

image
A pretty good score for the fruit, although it sees a board and the cable it's connected to as a banana

FOMO Model Build (224x224) on MaaXBoard:

image
With the FOMO model, it doesn't use bounding boxes to surround the objects

With the image size reduced and the model not utilizing full-size bounding boxes, the FOMO model runs significantly faster but is still accurate.

Comparison of Results

Compared to the other models in Monica Houston's Hackster project Benchmarking Machine Learning on MaaXBoard (results shown below), the Edge Impulse model results are slower than a few other models in processing speed, but it has a pretty high accuracy.

  • Note the results below are the result of models ran on the Yocto image instead of the Debian image. The accuracy scores are the same but the inference speed is slower compared to when the models were run on Monica's project.

image
image
image
 

Conclusion

Based on the results, the Edge Impulse models consumes more power compared to the other models. Depending on the image input size (320x320 vs 224x224) and the use of or omission of bounding boxes, the inference for object detection can be faster or slower compared to other models. In terms of accuracy, the Edge Impulse models did well! Though they were pretty accurate in object detection, the FOMO model had the faster inference time.

See how the models you make on Edge Impulse compares to other models on the MaaXBoard!

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube