UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
735 Views
Registered: ‎08-04-2017

Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

I am trying to follow UG1327 v1.5 > Ch. 5: Network Deployment Overview using xlnx_dnndk_v3.0_190624.tar.gz on an Ultra96 running xilinx-ultra96-prod-dpu1.4-desktop-buster-2019-05-31.img.zip.

I am able to get to Compiling the Hybrid Executable, but I cannot seem to find the $dnndk_pkg/samples/resnet50 directory.  Previously in DNNDK v2.08 Beta, it was located in $dnndk_pkg/Ultra96/samples/resnet50, but it is no longer there.  Ch. 3 Upgrading and Porting > Since v3.0 > Example Changes states that samples are in the Xilinx AI SDK, but after following UG1354 v1.0 up to Ch. 2 Quick Start > Setting Up the Target, I do not see it in the /usr/share/XILINX_AI_SDK/samples directory.

Where may I find $dnndk_pkg/samples/resnet50?

 

Best Regards,

Joseph

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
327 Views
Registered: ‎05-24-2019

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

@pvlbadin @jchang_endiag @stevekuznicki @dcc3 @idiotic_genius 

I have good news!  With the release of DNNDKv31 this week, the factory has once again added in the API sample code.  They have provided four C/C++ samples as well as two Python API samples.  You can find those samples in the <dnndk_pkg>/<board>/samples directory as per past releases.

Thanks for your feedback and help in improving the tool.

--Quenton

View solution in original post

10 Replies
Adventurer
Adventurer
684 Views
Registered: ‎07-20-2017

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

It is inside directory "Ultra96/usr/share/XILINX_AI_SDK/samples/classification". The file name is "test_video_classification_resnet_50"

Regards, abhidan@logictronix.com
Please mark the Answer as "Accept as solution" if information provided solves your query. Give Kudos if you think it was helpful and reply oriented.
Adventurer
Adventurer
657 Views
Registered: ‎08-04-2017

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

Thanks for pointing me to that, Abhidan.  I missed it b/c I was searching for "resnet50", but it has been renamed "resnet_50".

It seems like this sample might be different than the one mentioned in UG1327 v1.5Ch. 5: Network Deployment OverviewCompiling the Hybrid Executable.  I did not see a Makefile to compile the hybrid executable from the dpu_resnet50_0.elf generated from running dnnc.sh.

Where may I find the resnet50 (or resnet_50) sample with a Makefile to compile the hybrid executable?  Or are these UG1327 v1.5 instructions out of date?  Should I be following something else to try TensorFlow support in DNNDK?

Best Regards,

Joseph

0 Kudos
Adventurer
Adventurer
635 Views
Registered: ‎08-04-2017

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

I ended up using the resnet50 sample from DNNDK v2.08 Beta, which seems to work fine.  I was originally concerned there might be incompatibilities between different versions of DNNDK, but this does not appear to be the case.

In order to get the DNNDK v2.08 Beta sample to work with the DNNDK v3.0 .elf, I had to update main.cc as follows:

  1. Update INPUT_NODE and OUTPUT_NODE to match the output of running dnnc.sh
  2. Replace the dpuSetImage2() call per [DNNDK] Invalid mean value for DPU kernel, Tensorflow support.

 

Best Regards,

Joseph

Xilinx Employee
Xilinx Employee
580 Views
Registered: ‎05-24-2019

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

@jchang_endiag @nwillard  If you want, I have a slide deck that might help....let me know and I will send it over.

0 Kudos
Adventurer
Adventurer
552 Views
Registered: ‎08-04-2017

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

@quentonh,

Sure, additional documentation would be great, thanks!

Best Regards,

Joseph

0 Kudos
Contributor
Contributor
481 Views
Registered: ‎07-24-2018

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

I am having a similar issue using the UG1327 version 1.5 guide to run the resnet50 example.  Could you also send this slide deck to me?

Thanks!

0 Kudos
Xilinx Employee
Xilinx Employee
440 Views
Registered: ‎05-24-2019

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

@dcc3 Please send me a private message with your email address and I will contact you with this.

--Quenton

0 Kudos
Observer stevekuznicki
Observer
408 Views
Registered: ‎10-15-2009

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution
Could Xilinx just update the dnndk tar file with the sample files??? Otherwise send over working demo code?
thanks
0 Kudos
Visitor pvlbadin
Visitor
343 Views
Registered: ‎08-16-2019

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

There are more people facing the same issue, could you please post the solution on the web or update the manual? It is very unpleasant to find out there are missing files on the development kit / errors in the manual and we have to find the right post on the forum and ask you for a solution... :( Thanks!

0 Kudos
Xilinx Employee
Xilinx Employee
328 Views
Registered: ‎05-24-2019

Re: Where is "$dnndk_pkg/samples/resnet50"?

Jump to solution

@pvlbadin @jchang_endiag @stevekuznicki @dcc3 @idiotic_genius 

I have good news!  With the release of DNNDKv31 this week, the factory has once again added in the API sample code.  They have provided four C/C++ samples as well as two Python API samples.  You can find those samples in the <dnndk_pkg>/<board>/samples directory as per past releases.

Thanks for your feedback and help in improving the tool.

--Quenton

View solution in original post