rockchip-linux / rknn-toolkit

BSD 3-Clause "New" or "Revised" License
801 stars 173 forks source link

Segmentation fault yolov5s.onn customized #192

Open titopuertolara opened 2 years ago

titopuertolara commented 2 years ago

Hi: Currently i'm facing issues with onnx->rknn conversion. With python simulator everything works fine. but when i convert onnx to rkkn i'm getting segmentation fault error. Here's a couple of screenshots . First one is yolov5s example, then we trained a yolov5s custom model with two classes using yolov5 ultralytics API. Finally . pt model was converted to onnx WhatsApp Image 2022-02-15 at 21 21 49 (1)

zen-xingle commented 2 years ago

Hello,

The problem is raised by the mismatch of class number in C demo. You can correct class number and I think it will work.

titopuertolara commented 2 years ago

Thanks Zen!. That gives me another doubt and its related with rknn c API because i tried to change those indexes with no success.

zhuzhenxxx commented 1 year ago

tensor不一样 rk的yolo经过了裁剪