Xilinx / Vitis-AI

Vitis AI is Xilinx’s development stack for AI inference on Xilinx hardware platforms, including both edge devices and Alveo cards.
https://www.xilinx.com/ai
Apache License 2.0
1.44k stars 626 forks source link

Problem deploying tutorial on VCK5000 #839

Open jrobador opened 2 years ago

jrobador commented 2 years ago

Hi everyone, I tried to run the follow tutorial on my VCK5000: https://github.com/Xilinx/Vitis-AI-Tutorials/tree/1.4/Design_Tutorials/12-Alveo-U250-TF2-Classification. When I builded the project, I changed the arch.json (because this tutorial is based on U250) and the the options from: --options '{"input_shape": "4,100,100,3"}' to --options '{"input_shape": "1,100,100,3"}' Because otherwise I got a lot of warnings. After that, when I try to run the deployment, I got segmentation fault (core dumped). I thought it is because I changed the input_shape but I don't know how to fix this problem. Can anyone help me?

wanghy-xlnx commented 2 years ago

Hi @jrobador ,

  1. First of all, you need to confirm whether the card you are using is VCK5000-ES1 or VCK5000-PROD. In case of VCK5000-ES1, Vitis AI 1.4 or 1.4.1 can be used. In case of VCK5000-PROD, you need to use Vitis AI 2.0 on the master branch or later updated version.
  2. You need to make sure that the docker image, platform, XRT version, etc. used correspond to the same Vitis AI version. Refer to Docker image version, Refer to vck5000 platform install.
  3. You can first run the VART samples or the Vitis AI Library samples to make sure the environment is correct.
SuZhan0322 commented 2 years ago

hi @jrobador, Did you modify the input_shape in this file https://github.com/Xilinx/Vitis-AI-Tutorials/blob/1.4/Design_Tutorials/12-Alveo-U250-TF2-Classification/scripts/compile.sh? If so, it shouldn't affect your compiled xmodel. Can you post the warning you encountered before modifying inpu_shape?

jrobador commented 2 years ago

Hi, thanks for your responses. @wanghy-xlnx: My card is VCK5000-ES1 and I have already run the VART examples. The environment is correct.

@SuZhan0322: Yes, that is the change I made to that file. I will check again this tomorrow and I will answer ASAP. I will run again my project and post the output error.

SuZhan0322 commented 2 years ago

Hi @jrobador , Is there any update to this issue?
Another question that needs to be clarified is that there are any warnings in the compiling process?I'm just worried that this model has ops that vck5000-es1 doesn't support. And This is a possibility to cause segmentation fault.

jrobador commented 2 years ago

Hi @SuZhan0322, when I had --options '{"input_shape": "4,100,100,3"}' at compile.sh, I got this warning output. Using this model, I had the following deploy output. For this reason, I change the --options '{"input_shape": "4,100,100,3"}' to --options '{"input_shape": "1,100,100,3"}'. With this options I didn't have error compiling. Then, I run the deploy command and have the following ouput message output message.

If you want, you can contact me at my email to keep working on this issue. joaquinrobador@gmail.com