PaddleSeg icon indicating copy to clipboard operation
PaddleSeg copied to clipboard

按照官方文档,使用PP-HumanSeg和Matting效果极差

Open WS-W opened this issue 2 years ago • 6 comments

问题确认 Search before asking

  • [X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

python src/seg_demo.py --config inference_models/portrait_pp_humansegv2_lite_256x144_inference_model_with_softmax/de ploy.yaml --img_path data/images/portrait_heng.jpg --save_dir data/images_result/portrait_heng_v2.jpg 按照readme进行了下载模型和数据的操作,使用上述命令用官方模型对官方提供的样例图片进行分割,没有报错,成功保存结果图片,但是结果如下 portrait_heng_v2

另外,在使用Matting的时候,将下述语句写为.sh并运行 export CUDA_VISIBLE_DEVICES=0 python tools/predict.py \ --config F:/PaddleSeg-release-2.8/Matting/ppmattingv2-stdc1-human_512/deploy.yaml \ --model_path F:/PaddleSeg-release-2.8/Matting/ppmattingv2-stdc1-human_512/model.pdmodel \ --image_path demo/human.jpg \ --save_dir ./output/results \ --fg_estimate True 可以运行,但效果极差,如下图所示 human_rgba 不知道是什么原因?

WS-W avatar Apr 30 '23 13:04 WS-W

human_rgba 我也一样奇奇怪怪的问题

cvv-student avatar May 23 '23 10:05 cvv-student

我也是 human

JIANG3330 avatar Jun 09 '23 07:06 JIANG3330

windows上会出现这个问题,Linux下正常

JIANG3330 avatar Jun 10 '23 01:06 JIANG3330

我也出现了上面这种情况,最后发现是paddlepaddle版本和此项目版本不对应导致的。起初我的paddlepaddle-gpu是2.5.1版本,该项目我切换到release/2.8.0版本,出现了你上面这种问题。后来我遵从2.8.0的说明文件,降低了paddlepaddle-gpu的版本到2.4.0,该问题就解决了。另附一个2.4.0的安装指令 python -m pip install paddlepaddle-gpu==2.4.0.post112 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html

falcomlife avatar Aug 03 '23 08:08 falcomlife

windows上会出现这个问题,Linux下正常

linux 一样如上有问题

aiXia121 avatar Nov 16 '23 11:11 aiXia121

官方没人出来解释一下吗

tensor-song avatar Jul 16 '24 07:07 tensor-song