PaddlePaddle / Paddle-Lite-Demo

lib, demo, model, data
Apache License 2.0
681 stars 284 forks source link

人像分割demo, 在把demo的model换成了hrnet_w18.nb后输出图像显示失败 #349

Open badboy-tian opened 1 year ago

badboy-tian commented 1 year ago

https://github.com/PaddlePaddle/Paddle-Lite-Demo/blob/develop/human_segmentation/ios/human_segmentation/human_segmentation/ViewController.mm

输入图: image

换model之前输出图: IMG_F618724199E9-1

huan'c换成hrnet_w18.nb后, 输入改成1,3,512,512 输出图: image

astraylinux commented 1 year ago

我也遇到一样的问题,还有在维护嘛 - -

WeinanHu commented 9 months ago

与后续output的处理有关,我直接往human_segmentation的android工程中替换安卓的model.nb为hrnet_w18.nb,直接会闪退; 目前paddlepaddle的human_segmentation这个demo可以在android和iOS上都正常运行;但是模型改了后都会跑不了; https://github.com/PaddlePaddle/Paddle-Lite-Demo/blob/develop/human_segmentation

如果换成hrnet_w18.nb,要用另一个demo跑,但是这个demo只有android的,,如果iOS跑需要自己模仿android的demo改后续的output部分。我也新手,难以入手修改 https://github.com/PaddlePaddle/PaddleSeg/blob/release/2.9/Matting/deploy/human_matting_android_demo