Tianxiaomo / pytorch-YOLOv4

PyTorch ,ONNX and TensorRT implementation of YOLOv4
Apache License 2.0
4.46k stars 1.49k forks source link

"illegal instruction" (core dumped) When Running demo_darknet2onnx.py #566

Open mericgeren opened 9 months ago

mericgeren commented 9 months ago

Hello,

I am trying to convert yolov4 model from darknet. I am using Jetson Nano and have compatible versions of CUDA, TensorRT, cuDNN and OpenCV installed. But, when i enter this command: sudo python3 demo_darknet2onnx.py ~/yolo_workspace/darknet/cfg/yolov4.cfg ~/yolo_workspace/darknet/data/coco.names ~/yolo_workspace/darknet/yolov4.weights ~/yolo_workspace/darknet/data/dog.jpg 1

It gives me this output: Illegal instruction

If i omit "sudo" from the command, i see this output: Illegal instruction (core dumped)

Please let me know if i might be missing something.

Thanks in advance.

arionulibasa commented 7 months ago

change your numpy version to 1.19.4