Code Monkey home page Code Monkey logo

zynqmp-hailo-ai's Introduction

Multi-camera YOLOv5 on the Zynq UltraScale+ and Hailo-8 AI accelerator

Description

This project demonstrates the combined power of the Zynq UltraScale+ and the Hailo-8 AI accelerator when used in multi-camera vision applications. The repo contains designs for several Zynq UltraScale+ development boards and connects to 4x Raspberry Pi cameras via the Opsero RPi Camera FMC. The Hailo-8 AI accelerator connects to the development board via the FPGA Drive FMC Gen4 or the M.2 M-key Stack FMC depending on the target design (see list of target designs below).

A detailed description of this design and how to use it was written up in this blog post: Multi-camera YOLOv5 on Zynq UltraScale+ with Hailo-8 AI Acceleration

Multi-camera YOLOv5 on ZynqMP and Hailo-8

Important links:

Requirements

This project is designed for version 2022.1 of the Xilinx tools (Vivado/Vitis/PetaLinux). If you are using an older version of the Xilinx tools, then refer to the release tags to find the version of this repository that matches your version of the tools.

In order to test this design on hardware, you will need the following:

Target designs

Note that there are two target designs for the ZCU106 board: zcu106 and zcu106_hpc0, and the differences are explained in the table below. All target designs except zcu106 require the M.2 M-key Stack FMC as the M.2 adapter for the Hailo-8, with the RPi Camera FMC stacked on top of it.

Target board Target design FMC slots used Cameras M.2 adapter for Hailo M.2 active slots
ZCU104 zcu104 LPC 4 M.2 M-key Stack FMC 1
ZCU106 zcu106 HPC0+HPC1 (note 1) 4 FPGA Drive FMC Gen4 1
ZCU106 zcu106_hpc0 HPC0 4 M.2 M-key Stack FMC 2 (note 3)
PYNQ-ZU pynqzu LPC 2 (note 2) M.2 M-key Stack FMC 1
Genesys-ZU genesyszu LPC 2 (note 2) M.2 M-key Stack FMC 1
UltraZed EV carrier uzev HPC 4 M.2 M-key Stack FMC 2 (note 3)

Notes:

  1. The zcu106 target design uses the FPGA Drive FMC Gen4 as the M.2 adapter for the Hailo-8. In that design, the FPGA Drive FMC Gen4 connects to HPC1 while the RPi Camera FMC connects to the HPC0 connector.
  2. The pynqzu and genesyszu target designs have video pipelines for only 2 cameras (CAM1 and CAM2 as labelled on the RPi Camera FMC). This is due to the resource limitations of the devices on these boards.
  3. The zcu106_hpc0 and uzev target designs have support for 2x M.2 modules. To use the Hailo demo scripts, at least one of these modules must be the Hailo-8 M.2 AI Acceleration Module. The second slot can be used for a second Hailo module, or an NVMe SSD for storage.

Build instructions

This repo contains submodules. To clone this repo, run:

git clone --recursive https://github.com/fpgadeveloper/zynqmp-hailo-ai.git

Source Vivado and PetaLinux tools:

source <path-to-petalinux>/2022.1/settings.sh
source <path-to-vivado>/2022.1/settings64.sh

Build all (Vivado project, accelerator kernel and PetaLinux):

cd zynqmp-hailo-ai/PetaLinux
make petalinux TARGET=uzev

Contribute

We strongly encourage community contribution to these projects. Please make a pull request if you would like to share your work:

  • if you've spotted and fixed any issues
  • if you've added designs for other target platforms
  • if you've added software support for other cameras

Thank you to everyone who supports us!

The TODO list

  • Test all M.2 M-key Stack FMC based designs on hardware
  • Add 2x camera script for PYNQ-ZU board
  • Add some demo scripts for VVAS and VCU

About us

Opsero Inc. is a team of FPGA developers delivering FPGA products and design services to start-ups and tech companies. Follow our blog, FPGA Developer, for news, tutorials and updates on the awesome projects we work on.

zynqmp-hailo-ai's People

Contributors

fpgadeveloper avatar gfilippi avatar

Stargazers

 avatar hipojin avatar Milan Nedić avatar  avatar Mario Bergeron avatar  avatar  avatar

Watchers

 avatar  avatar Mario Bergeron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.