Ncnn: 把retinaface迁移到android运行有错

Created on 23 Feb 2020  ·  6Comments  ·  Source: Tencent/ncnn

ncnn example里面retinaface, 编译到ubuntu16.04运行正常。
编译到android, 通过打印发现,stride32运行正常,但是stride16,stride8两处都会出错,返回-100.
通过ex.extract,对应blob发现crop0的输入,是可以得到的,但是extract输出blob,就会返回-100, 为什么会这样呢?

bug

Most helpful comment

试了下把 example retinaface 直接编译了 android 版本放在手机上跑
gpu能出结果,cpu坏掉了,mnet.25 的模型,我看看

All 6 comments

试了下把 example retinaface 直接编译了 android 版本放在手机上跑
gpu能出结果,cpu坏掉了,mnet.25 的模型,我看看

修好了,更新代码吧~

辛苦您了,能跑了

请问ncnn下运行retinaface gpu和cpu速度分别如何?谢谢

retinaface 迁移到android上执行到ex.extract("output0", out); 会报A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 7711 (obilenetssdncnn), pid 7711 (obilenetssdncnn)的错误。然后app会闪退(cpu 和gpu都会如此)。retinaface使用的mnet.25,ncnn-android-vulkan-lib 20200727。是什么原因呢?

android studio tombstone 如图
QQ20200728-0
使用addr2line debug获得的信息如图
QQ20200728-2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mychina75 picture mychina75  ·  4Comments

lovehuanhuan picture lovehuanhuan  ·  3Comments

chuan298 picture chuan298  ·  3Comments

yizhaoyanbo picture yizhaoyanbo  ·  3Comments

SisterL picture SisterL  ·  3Comments