Coder Social home page Coder Social logo

jianmingtong / dpu-pynq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xilinx/dpu-pynq

0.0 1.0 0.0 3.81 MB

DPU on PYNQ

License: Apache License 2.0

Shell 0.24% Python 0.87% Tcl 8.17% SystemVerilog 1.55% Makefile 0.59% Jupyter Notebook 88.59%

dpu-pynq's Introduction

DPU on PYNQ

This repository holds the PYNQ DPU overlay. Specifically, the Vitis AI DPU is included in the accompanying bitstreams with example training and inference notebooks ready to run on PYNQ enabled platforms. Steps are also included to rebuild the designs in Vitis and can be ported onto PYNQ-enabled Zynq Ultrascale+ boards.

In this repository, we currently support the following boards:

  • Ultra96
  • ZCU104
  • KV260

Other Zynq Ultrascale+ boards may be supported with few adjustments. This repository supports Vitis AI 1.4.0.

Quick Start

1. Install

To install the pynq-dpu on your board, simply run in the jupyter notebooks terminal:

pip3 install pynq-dpu --no-build-isolation

Then go to your jupyter notebook home folder and fetch the notebooks:

cd $PYNQ_JUPYTER_NOTEBOOKS
pynq get-notebooks pynq-dpu -p .

This will make sure the desired notebooks shows up in your jupyter notebook folder.

1b. [Optional] Install from ssh

Connect via ssh (e.g., ssh [email protected] on the Ultra96).

On Ultra96 and ZCU104, login as root (e.g., sudo su).

pip3 install pynq-dpu --no-build-isolation
. /etc/profile.d/xrt_setup.sh
. /etc/profile.d/pynq_venv.sh
cd $PYNQ_JUPYTER_NOTEBOOKS
pynq get-notebooks pynq-dpu -p .
chown -R xilinx:xilinx pynq-dpu

2. Run

You are ready to go! Now in jupyter, you can explore the notebooks in pynq-dpu folder.

Rebuild DPU Block Design

The DPU IP comes from the Vitis Ai Github. If you want to rebuild the hardware project, you can refer to the instructions for DPU Hardware Design.

In short, the following files will be generated in boards/<Board> folder:

  1. dpu.bit
  2. dpu.hwh
  3. dpu.xclbin

These are the overlay files that can be used by the pynq_dpu package.

Rebuild DPU Models

DPU models are available on the Vitis AI GitHub repository model zoo, where you can find a model-list containing quantized models, as well as pre-compiled .xmodel files that can be directly loaded into your DPU application.

If you want to recompile the DPU models or train your own network, you can refer to the instructions for DPU models.



Copyright (C) 2021 Xilinx, Inc

SPDX-License-Identifier: Apache-2.0

dpu-pynq's People

Contributors

aiartisan avatar skalade avatar davideconficconi avatar schelleg avatar shengwenliang avatar haipnh avatar bomerzz avatar yunqu avatar

Watchers

James Cloos 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.