element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultra96 Hardware Design How do I compile the TensorFlow2 weight file for the Ultra96v2 board?
  • Forums
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 1 reply
  • Answers 1 answer
  • Subscribers 44 subscribers
  • Views 407 views
  • Users 0 members are here
  • ultra96
  • vitis-ai
Related

How do I compile the TensorFlow2 weight file for the Ultra96v2 board?

rajivbishwokarma
rajivbishwokarma 9 months ago

Hello everyone,

 

I am trying to compile the TensorFlow 2 weight file for the Ultra96v2 board. I am following this tutorial: https://github.com/Xilinx/Vitis-AI-Tutorials/blob/master/Design_Tutorials/08-tf2_flow/README.md. In the compiling step, ZCU102 and U50 boards are defined using specific arch.json files. For ZCU102, /opt/vitis_ai/compiler/arch/DPUCZDX8G/ZCU102/arch.json is used, while for U50 /opt/vitis_ai/compiler/arch/DPUCAHX8H/U50/arch.json file is used. My questions are:

 

1. How do I create this file for the Ultra96v2 board? Or is this already provided by Avnet/Xilinx?

2. After getting this file, can I use the following command to compile the model for the Ultra96v2 board?

vai_c_tensorflow2 --model quant_model/q_model.h5 --arch <ultra-96-v2>/arch.json --output_dir compiled_model --net_name customcnn

 

Thank you!

  • Reply
  • Cancel
  • Cancel

Top Replies

  • albertabeef
    albertabeef 9 months ago +1 suggested

    Rajiv,

     

    First, the tutorial you are referring to is for Vitis-AI 1.3, which is important to identify.

    Second, the arch.json file you are looking for is generated when a Vitis-AI with DPU is created for any…

  • albertabeef
    0 albertabeef 9 months ago

    Rajiv,

     

    First, the tutorial you are referring to is for Vitis-AI 1.3, which is important to identify.

    Second, the arch.json file you are looking for is generated when a Vitis-AI with DPU is created for any given board.

     

    Xilinx provides arch.json files for their pre-built Vitis-AI designs (ie. ZCU102, U50, etc...).

     

    For the Ultra96-V2, I recommend using the following Vitis-AI 1.3 design, which has a B2304 DPU (with low RAM usage).
       https://avnet.me/vitis-ai-1.3-project

    It comes with the following arch.json file, which can be found in the BOOT partition of the pre-built SD card image:

       {"target":"DPUCZDX8G_ISA0_B2304_MAX_BG2"}

     

    You can use this arch.json file when compiling models to run on this Vitis-AI 1.3 design.

     

    If you generate a design with a different DPU configuration, you will need to use the arch.json specific to that design.

     

    I hope this answers your question ...

     

    Regards,

     

    Mario.

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube