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.49k stars 630 forks source link

Error while running resnet50 on kria KR250 #1410

Open NikoSalamini opened 8 months ago

NikoSalamini commented 8 months ago

I am trying to run a resnet50 model on the KRIA KR260 board, I followed the Hackster tutorial:

Everything is ok until I try to launch the resnet50 model using this command and I get the following error:

./resnet50 /usr/share/vitis_ai_library/models/resnet50/resnet50.xmodel
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0306 02:21:51.199921  4471 resnet50.cpp:153] Check failed: !input_image.empty()         cannot load /usr/share/vitis_ai_library/models/resnet50/resnet50.xmodel
*** Check failure stack trace: ***
Aborted

What's wrong? the image folder is in ~/Vitis-AI/examples/vai_runtime, while the model is in ~/Vitis-AI/examples/vai_runtime. I also tried to launch the command using env LIBRARY_LD_PATH=path_to_libraries but it doesn't work. I didn't install the vitis_ai runtime.

KrishnaGaihre commented 8 months ago

Are you running "https://github.com/Xilinx/Vitis-AI/tree/3.0/examples/vai_runtime/resnet50" example? Do you have "../images/" in your Board? If not have then install by following this [https://github.com/Xilinx/Vitis-AI/tree/3.0/examples/vai_runtime#running-vitis-ai-examples-1, Step1]. Regards,