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

bmvpu_dec_create failed #80

Open
Yhc-777 opened this issue Dec 27, 2024 · 5 comments
Open

bmvpu_dec_create failed #80

Yhc-777 opened this issue Dec 27, 2024 · 5 comments

Comments

@Yhc-777
Copy link

Yhc-777 commented Dec 27, 2024

/media/oscar/Basislink/BM1688/SDK-1.7/SourceCode/libsophon/libsophav/video/dec/src/bm_ioctl.c:321 (bmdec_chn_open) ERROR: can not open cvi dec device /dev/soph_vc_dec.

在运行yolov8_pose的时候报错如下:

./yolov8_bmcv.soc --input=../../datasets/dance.mp4 --bmodel=../../models/BM1688/yolov8s-pose_fp32_1b.bmodel --dev_id=0 --conf_thresh=0.25 --nms_thresh=0.7
set device id: 0
YoloV8 ctor ..
*** Run in SOC mode ***

########################
NetName: yolov8s-pose
---- stage 0 ----
Input 0) 'images' shape=[ 1 3 640 640 ] dtype=FLOAT32 scale=1
Output 0) 'output0_Concat' shape=[ 1 56 8400 ] dtype=FLOAT32 scale=1
########################

[h264_bm @ 0x558c0c0e50] bm decoder id: 0
[h264_bm @ 0x558c0c0e50] bm output format: 0
[h264_bm @ 0x558c0c0e50] mode bitstream: 2, frame delay: -1
/media/oscar/Basislink/BM1688/SDK-1.7/SourceCode/libsophon/libsophav/video/dec/src/bm_ioctl.c:321 (bmdec_chn_open) ERROR: can not open cvi dec device /dev/soph_vc_dec.

[h264_bm @ 0x558c0c0e50] bmvpu_dec_create failed
Failed to open video codec
[NULL @ 0x558c0c0e50] openDec video_stream_idx = -1, pix_fmt = 0
Segmentation fault

请问怎么解决?

@sophon-leevi
Copy link
Collaborator

是不是在admin用户下跑的?应该是权限问题,改用linaro用户跑试试。

@Matveyee
Copy link

Matveyee commented Jan 24, 2025

你好。我遇到了类似的问题,但我用的是“enc”而不是“dec”。你解决了这个问题吗?
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

decoder ctor: filepath=../../datasets/test_car_person_1080P.mp4
open filepath=../../datasets/test_car_person_1080P.mp4
[h264_bm @ 0x559b9bccf0] bm decoder id: 0
[h264_bm @ 0x559b9bccf0] bm output format: 101
[h264_bm @ 0x559b9bccf0] mode bitstream: 2, frame delay: -1
1, det_nums: 729
../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 18:46:45.457] [error] [cvwrapper.cpp:4694] cv::imwrite failed

@sophon-leevi
Copy link
Collaborator

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

@Matveyee
Copy link

我在 SM9 上的 sophon-demo 上执行用户“linaro”的命令 ./yolov5_sail.soc

@sophon-leevi
Copy link
Collaborator

SM9上面的sdk大概不是公版的sdk,模组类问题请咨询下你们sm9项目对应的项目经理吧

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

3 participants