cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ray
Visitor
Visitor
505 Views
Registered: ‎07-25-2021

test compiled caffe model on zcu104 board get some error

When I test compiled caffe model on zcu104 board, I get some error

How can I resolve this problem?

messageImage_1627213535115.jpg

0 Kudos
12 Replies
gguasti
Moderator
Moderator
484 Views
Registered: ‎11-29-2007

please could you try with a different video format, i.e. .webm or .raw?

0 Kudos
ray
Visitor
Visitor
469 Views
Registered: ‎07-25-2021

I was trying to test another video format like webcam or MOV, but still get same error. The file test_video_yolov4 is I download from Vitis AI github website. 

test.PNG

0 Kudos
ray
Visitor
Visitor
469 Views
Registered: ‎07-25-2021

I also try webm file to test, and get the same error too. 

test2.PNG

0 Kudos
gguasti
Moderator
Moderator
420 Views
Registered: ‎11-29-2007

I would need to reproduce the issue

please which Vitis AI release /docker / board image are you using?

0 Kudos
ray
Visitor
Visitor
385 Views
Registered: ‎07-25-2021

My envs is Vitis AI : 1.3, docker :  xilinx/vitis-ai-cpu:latest, board image :  ZYNQMP common image(2020.1) and ZCU104 Base 2020.1. thanks!

0 Kudos
ray
Visitor
Visitor
379 Views
Registered: ‎07-25-2021

The Vitis-AI docker image version is 1.3.598

0 Kudos
ray
Visitor
Visitor
226 Views
Registered: ‎07-25-2021

When I run VART Demo I got the same error

root@xilinx-zcu104-2019_1:/usr/share/adas_detection# ./adas_detection adas.webm yolov4_leaky_spp_m_pruned_0_36.xmodel
-sh: ./adas_detection: cannot execute binary file: Exec format error

0 Kudos
graces
Moderator
Moderator
219 Views
Registered: ‎07-16-2008

What version of ZCU104 board image did you download?

root@xilinx-zcu104-2019_1

This is different from your previous snapshot - root@zynqmp-common-2020_1

-----------------------------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs.
-----------------------------------------------------------------------------------------------------------------------
0 Kudos
ray
Visitor
Visitor
215 Views
Registered: ‎07-25-2021

Yes the system is different. The img is generate by previous version(2019).

Can I  ask about how to use the xmodel I generate by caffe and tensorflow? I use YOLOv4 to training by my own dataset.

0 Kudos
graces
Moderator
Moderator
214 Views
Registered: ‎07-16-2008

Please use the compatible SD card image with your common image 2020.1. The host executable is compiled with corresponding cross-compiler.

-----------------------------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs.
-----------------------------------------------------------------------------------------------------------------------
0 Kudos
ray
Visitor
Visitor
184 Views
Registered: ‎07-25-2021

OK! But how can I resolve the problem "cannot execute binary file: Exec format error" ? 

0 Kudos
graces
Moderator
Moderator
133 Views
Registered: ‎07-16-2008

I think you need to cross compile the application code when necessary. Please refer to the setup steps.

https://github.com/Xilinx/Vitis-AI/tree/1.3.2/setup/mpsoc/VART

If you use the existing execute binary file, ensure you use the compatible petalinux image.

-----------------------------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs.
-----------------------------------------------------------------------------------------------------------------------
0 Kudos