PaddlePaddle / PaddlePaddle/PaddleX
移动端部署人像分割模型出错
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
您好!我按照 https://paddlex.readthedocs.io/zh_CN/develop/examples/human_segmentation.html#paddle-lite
将模型部署在移动端时,直接运行demo默认的分类模型正常,但是部署人像分割模型humanseg_mobile_quant、和humanseg_mobile_inference时在load模型时闪退,报以下错误,请问是什么原因?
2020-08-04 15:47:45.938 6283-6307/com.baidu.paddlex.lite.demo A/Paddle-Lite: [F 8/ 4 15:47:45.938 ...evelop/Paddle-Lite/lite/api/light_api.cc:160 BuildRuntimeProgram] Check failed: it != kernels.end():
--------- beginning of crash
2020-08-04 15:47:45.939 6283-6307/com.baidu.paddlex.lite.demo A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 6307 (Predictor Worke), pid 6283 (ddlex.lite.demo)
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: Build fingerprint: 'ZTE/GEN_CN_P671S20/P671S20:9/PPR1.180610.011/20190613.133443:user/release-keys'
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: Revision: '0'
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: ABI: 'arm64'
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: pid: 6283, tid: 6307, name: Predictor Worke >>> com.baidu.paddlex.lite.demo <<<
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: Cause: null pointer dereference
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: Abort message: '[F 8/ 4 15:47:45.938 ...evelop/Paddle-Lite/lite/api/light_api.cc:160 BuildRuntimeProgram] Check failed: it != kernels.end():
'
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x0 00000000000000a0 x1 00000070eafd8680 x2 00000070eae00000 x3 0000000000000009
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x4 00000000000001d8 x5 0000000000000088 x6 287273746f6d6827 x7 7f7f7f7f7f7f7f7f
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x8 aef3bf7daac75721 x9 aef3bf7daac75721 x10 00000000000001d8 x11 0000000000000000
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x12 0000000000000018 x13 0000000000000000 x14 00000000ffffffff x15 00000071053fb008
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x16 00000071a03b1be0 x17 00000071a0345920 x18 00000071053fa89a x19 00000071053fb918
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x20 00000071053fb8d0 x21 00000070eb5b4880 x22 0000000000000000 x23 00000071053fb8e8
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x24 00000071053fb860 x25 00000070eaddd370 x26 00000071053fb950 x27 00000071053fb888
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: x28 0000000000000003 x29 00000071053fbbc0
2020-08-04 15:47:46.014 6350-6350/? A/DEBUG: sp 00000071053fb760 lr 00000070eb5504f4 pc 00000070eb5504f4
2020-08-04 15:47:46.015 6350-6350/? A/DEBUG: backtrace:
2020-08-04 15:47:46.015 6350-6350/? A/DEBUG: #00 pc 00000000001814f4 /data/app/com.baidu.paddlex.lite.demo-7Yi5Uj2UgyxrBKM_4aXIOw==/lib/arm64/libpaddle_lite_jni.so (paddle::lite::LightPredictor::BuildRuntimeProgram(paddle::lite::cpp::ProgramDesc const&)+4688)
2020-08-04 15:47:46.448 6353-6353/? E/AEE_AED: no valid package list
2020-08-04 15:47:46.451 654-654/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_04
2020-08-04 15:47:46.470 436-436/? E/lowmemorykiller: Error writing /proc/6283/oom_score_adj; errno=22
2020-08-04 15:47:46.486 1069-1154/? E/InputDispatcher: channel '70077ce com.baidu.paddlex.lite.demo/com.baidu.paddlex.lite.demo.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-08-04 15:47:46.486 1069-1154/? E/InputDispatcher: channel '43a0cd0 com.baidu.paddlex.lite.demo/com.baidu.paddlex.lite.demo.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-08-04 15:47:46.549 23262-23284/? E/R-Loader-UNREAD: updateUnreadApps time:3
2020-08-04 15:47:46.552 23262-23284/? E/R-Loader-UNREAD: onUnreadInfoChange cname:com.android.messaging/com.android.messaging.ui.conversationlist.ConversationListActivity#UserHandle{0} unread old 0 unread new 0
2020-08-04 15:47:46.553 23262-23262/? E/Launcher.Model: onUpdateDynamicIcon-updateDynamicIcon2
2020-08-04 15:47:46.556 23262-23284/? E/R-Loader: isNotificationEnable pkg's res com.android.messaging/true/10061
2020-08-04 15:47:46.556 23262-23284/? E/Launcher.Model: Model is not Loaded ,can not start the update task!
2020-08-04 15:47:46.557 23262-25413/? E/PcModeManagerProxy: invokeSafe: public int com.zte.pcmode.PCModeManager.getPCDisplayID()
java.lang.NullPointerException: null receiver
at java.lang.reflect.Method.invoke(Native Method)
at com.zte.b.a.a(PcModeManagerProxy.java:57)
at com.zte.b.a.b(PcModeManagerProxy.java:62)
at com.zte.b.a.d(PcModeManagerProxy.java:99)
at com.zte.b.a.e(PcModeManagerProxy.java:125)
at com.android.systemui.shared.recents.model.RecentsTaskLoadPlan.preloadPlan(RecentsTaskLoadPlan.java:113)
at com.android.quickstep.o.onTaskStackChangedBackground(RecentsModel.java:217)
at com.android.systemui.shared.system.TaskStackChangeListeners.onTaskStackChanged(TaskStackChangeListeners.java:83)
at android.app.ITaskStackListener$Stub.onTransact(ITaskStackListener.java:50)
at android.os.Binder.execTransact(Binder.java:739)
2020-08-04 15:47:46.561 23262-23284/? E/R-Loader-UNREAD: onUnreadInfoChange cname:com.android.contacts/com.android.contacts.activities.DialtactsActivity#UserHandle{0} unread old 0 unread new 0
2020-08-04 15:47:46.564 23262-23284/? E/R-Loader: isNotificationEnable pkg's res com.android.contacts/true/10057
2020-08-04 15:47:46.564 23262-23284/? E/Launcher.Model: Model is not Loaded ,can not start the update task!
2020-08-04 15:47:46.566 23262-23284/? E/R-Loader-UNREAD: onUnreadInfoChange cname:com.zte.softdabjjc/com.zte.softda.moa.StartActivity#UserHandle{0} unread old 0 unread new 0
2020-08-04 15:47:46.569 23262-23284/? E/R-Loader: isNotificationEnable pkg's res com.zte.softdabjjc/true/10196
2020-08-04 15:47:46.569 23262-23284/? E/Launcher.Model: Model is not Loaded ,can not start the update task!
2020-08-04 15:47:46.571 23262-23284/? E/R-Loader-UNREAD: onUnreadInfoChange cname:com.android.calendar/com.android.calendar.AllInOneActivity#UserHandle{0} unread old 0 unread new 0
2020-08-04 15:47:46.573 23262-23284/? E/R-Loader: isNotificationEnable pkg's res com.android.calendar/true/10101
2020-08-04 15:47:46.573 23262-23284/? E/Launcher.Model: Model is not Loaded ,can not start the update task!
2020-08-04 15:47:46.575 23262-23284/? E/R-Loader-UNREAD: onUnreadInfoChange cname:com.android.settings/com.android.settings.Settings#UserHandle{0} unread old 1 unread new 1
2020-08-04 15:47:46.577 23262-23284/? E/R-Loader: isNotificationEnable pkg's res com.android.settings/true/1000
2020-08-04 15:47:46.577 23262-23284/? E/Launcher.Model: Model is not Loaded ,can not start the update task!
2020-08-04 15:48:00.001 1069-1153/? E/MtkDataShapingUtils: Exception openLteGateByDataShaping
2020-08-04 15:48:00.018 23262-23262/? E/Launcher.Model: onUpdateDynamicIcon-updateDynamicIcon2
2020-08-04 15:48:05.992 1069-1153/? E/MtkDataShapingUtils: Exception openLteGateByDataShaping
2020-08-04 15:48:08.899 634-716/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
2020-08-04 15:48:35.991 1069-1153/? E/MtkDataShapingUtils: Exception openLteGateByDataShaping
2020-08-04 15:49:00.001 1069-1153/? E/MtkDataShapingUtils: Exception openLteGateByDataShaping
2020-08-04 15:49:00.018 23262-23262/? E/Launcher.Model: onUpdateDynamicIcon-updateDynamicIcon2
2020-08-04 15:49:05.992 1069-1153/? E/MtkDataShapingUtils: Exception openLteGateByDataShaping
2020-08-04 15:49:08.900 634-716/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Paddle-Lite failure at lite/api/light_api.cc:160 in LightPredictor::BuildRuntimeProgram, using the Android demo and the humanseg_mobile_quant and humanseg_mobile_inference models to reproduce the crash. Compare this with the default classification model and determine why the segmentation models cannot load; done means the models load without the reported kernel-check failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- machine-learning, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100