wutianze / dnndk-pynqz2

First lesson for you to use DNNDK, also it can be helpful for your AI learning
64 stars 26 forks source link

Deploying a custom object detector #7

Closed zackdilan closed 4 years ago

zackdilan commented 4 years ago

@wutianze I really appreciate your work, but I would like to get cleared of few details regarding my own network deployment on PYNQ Z2. I am completely new to FPGA and Xilinx software tools(But I understood the flow of deploying and using the DNNDK toolkit on a higher level). So my question is regarding the build-pynqz2-system. I have downloaded the image file from the link you have provided. if I have it, is it possible to skip all the steps mentioned in the build-pynqz2-system doc file? if not what should be done, I expect a clear explanation (how the pipeline flows ). I didn't mean your explanation is bad, I am not able to catch up.

Thanks in advance, Zack

wutianze commented 4 years ago

Good news, if you have downloaded the image file, the only thing next is to burn it into the sd card. You can skip the steps in the .md, but I still recommend you read it.

zackdilan commented 4 years ago

Yes, I have gone through it. But I have a question regarding making the DPU overlay. The DPU IP should be a custom one right? Does the one correspond to the network that we are working with? Or the image that you have given can be used with any neural network?

wutianze commented 4 years ago

DPU can be used for any neural network(except for some unsupported layers). You can read DNNDK doc for how to build your own elf file from trained model which can then be run in DPU. The image I provided is based on DNNDKv3.0, it's general, you can run your own elf file in it.

zackdilan commented 4 years ago

Hey, I almost reached until the Yolo app demo. How long does this command take to run on the device ./yolo ./images/ i. It's taking a lot of time. Is it like that?

wutianze commented 4 years ago

Try running ./yolo dog.jpg? ./images will detect all the images, so maybe slow.

zackdilan commented 4 years ago

pynq doubt What is wrong here?

wutianze commented 4 years ago

Sorry, the usage is ./yolo dog.jpg i

zackdilan commented 4 years ago

it throws an error:dog.jpg is not a valid directory! ,

wutianze commented 4 years ago

Oh, please put .jpg in a directory you created and then ./yolo ./your_dir/ i, but make sure there is only one image in the dir