Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 c++ 和 sail 运行 yolov5 时出现编码错误 #86

Open
Matveyee opened this issue Jan 24, 2025 · 1 comment
Open

使用 c++ 和 sail 运行 yolov5 时出现编码错误 #86

Matveyee opened this issue Jan 24, 2025 · 1 comment

Comments

@Matveyee
Copy link

Matveyee commented Jan 24, 2025

Logs:
sudo ./yolov5_sail.soc --bmodel=../../models/BM1688/yolov5s_v6.1_3output_fp32_1b.bmodel
set device id: 0
YoloV5 ctor ..

grapgh name -> 0: yolov5s_v6.1_3output;
net input name -> 0: images;
net output name -> 0: output_Transpose; 0: 365_Transpose; 0: 385_Transpose;
input tensor shape -> 1 3 640 640
output tensor 0 shape -> 1 3 80 80 85
output tensor 1 shape -> 1 3 40 40 85
output tensor 2 shape -> 1 3 20 20 85
input dtype -> 0, is fp32=true
output dtype -> 0, is fp32=true

1/4, img_file: ../../datasets/test/000000547383.jpg
../libsophav/jpeg/src/bm_jpeg_interface.c:1137 (bm_jpu_jpeg_enc_encode) ERROR: bmjpeg_enc_ioctl_create_chn failed, ret = -1073250296
could not encode this image :
[2025-01-24 19:08:00.503] [error] [cvwrapper.cpp:4694] cv::imwrite failed
2/4, img_file: ../../datasets/test/zidane.jpg
../libsophav/jpeg/src/bm_jpeg_interface.c:1137 (bm_jpu_jpeg_enc_encode) ERROR: bmjpeg_enc_ioctl_create_chn failed, ret = -1073250296
could not encode this image :
[2025-01-24 19:08:00.692] [error] [cvwrapper.cpp:4694] cv::imwrite failed
3/4, img_file: ../../datasets/test/3.jpg
../libsophav/jpeg/src/bm_jpeg_interface.c:1137 (bm_jpu_jpeg_enc_encode) ERROR: bmjpeg_enc_ioctl_create_chn failed, ret = -1073250296
could not encode this image :
[2025-01-24 19:08:00.938] [error] [cvwrapper.cpp:4694] cv::imwrite failed
4/4, img_file: ../../datasets/test/dog.jpg
../libsophav/jpeg/src/bm_jpeg_interface.c:1137 (bm_jpu_jpeg_enc_encode) ERROR: bmjpeg_enc_ioctl_create_chn failed, ret = -1073250296
could not encode this image :
[2025-01-24 19:08:01.107] [error] [cvwrapper.cpp:4694] cv::imwrite failed

result saved in results/yolov5s_v6.1_3output_fp32_1b.bmodel_test_sail_cpp_result.json

SUMMARY: yolov5 test

[ decode time] loops: 4 avg: 4.937000 ms
[ yolov5 preprocess] loops: 4 avg: 21.514000 ms
[ yolov5 inference] loops: 4 avg: 101.421000 ms
[ yolov5 postprocess] loops: 4 avg: 30.276000 ms
[post 1: get output and decode] loops: 4 avg: 19.321000 ms
[ post 2: filter boxes] loops: 4 avg: 5.447000 ms
[ post 3: nms] loops: 4 avg: 5.477000 ms
YoloV5 dtor ...

@sophon-leevi
Copy link
Collaborator

请问是什么设备,在什么用户下,跑的哪个例程,执行的什么命令?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants