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

Segmentation Fault When Loading Custom RKNN #10

Open
mdurrani808 opened this issue Aug 18, 2023 · 1 comment
Open

Segmentation Fault When Loading Custom RKNN #10

mdurrani808 opened this issue Aug 18, 2023 · 1 comment

Comments

@mdurrani808
Copy link

mdurrani808 commented Aug 18, 2023

When running ./build-linux_RK3588 on an Orange Pi 5 running Ubuntu 22.04, I get a segmentation fault on line 26 (the line that runs rknn_yolov5_demo. This is a model converted from onnx using rknn-toolkit-2 if that helps. Any tips to get this working? Regular model provided works fine w/o segmentation faults.
2023.zip

Seems like it has the segfault on line 52 of rknnPool.hpp

@leafqycc
Copy link
Owner

When running ./build-linux_RK3588 on an Orange Pi 5 running Ubuntu 22.04, I get a segmentation fault on line 26 (the line that runs rknn_yolov5_demo. This is a model converted from onnx using rknn-toolkit-2 if that helps. Any tips to get this working? Regular model provided works fine w/o segmentation faults. 2023.zip

Seems like it has the segfault on line 52 of rknnPool.hpp

I guess you didn't specify the platform during the conversion process,
#rknn.config(mean_values=[[0, 0, 0]], std_values=[[255, 255, 255]])
rknn.config(mean_values=[[0, 0, 0]], std_values=[[255, 255, 255]],target_platform='rk3588')

and you can refer to this repository for model training
https://github.com/airockchip/yolov5

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