JPEG parameter struct mismatch: library thinks size is 584, caller expects 728 for python3 in Jetson

0

I am trying to run the darknet_video.py script for YOLO from here

in Jetson (nano and xavier NX). The code runs fine in one nano but not in another nano and NX. The script is run using the following command in Ubuntu 18.04 (Jetpack)

python3 darknet_video.py --input test.mp4 --out_filename out1.txt --weights yolov3-tiny.weights --ext_output --config_file yolov3-tiny.cfg --data_file coco.data --thresh 0.2

Receivng the follwing error in a nano and NX but it runs fine in another nano:

JPEG parameter struct mismatch: library thinks size is 584, caller expects 728
pure virtual method called
terminate called without an active exception
Aborted (core dumped)

Hi,

This may be related to the JPEG library:

May I know how to you install JPEG, OpenCV and darknet first?
Thanks.

@AastaLLL Sure, opencv 4.1 and CUDA 10.2 come preinstalled with Jetpack, I installed YOLO from here

The Jetson that runs fine was used by someone else before so I am not sure exactly what is fixing it, the one that I had a fresh installation (NX) in, I ran the following command but it did not fix the issue.

sudo apt-get install libjpeg-dev

Thanks in advance.

Hi,

We test darknet C++ interface with a built in video. It can work without any issue.

$ ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 -dont_show -ext_outpu

Could you also give the C++ executable a try?
Sometimes the library used between C++ and python will be different.

If the issue goes on, could you share the test.mp4 with us for checking?

Thanks.