Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matting 自定数据集训练问题 #3739

Open
1 task done
izhaolinger opened this issue Jun 18, 2024 · 15 comments
Open
1 task done

Matting 自定数据集训练问题 #3739

izhaolinger opened this issue Jun 18, 2024 · 15 comments
Labels
question Further information is requested

Comments

@izhaolinger
Copy link

问题确认 Search before asking

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

请提出你的问题 Please ask your question

我使用ppmattingv2-stdc1-human_512,根据自定义数据集训练了自己的模型,加载了ppmattingv2-stdc1-human_512.pdparams作为预训练模型,但预测的结果很奇怪。

原图:
1

预测的alpha图:
1_alpha

预测的结果图:
1_rgba

请问这可能是什么问题呢?

@izhaolinger izhaolinger added the question Further information is requested label Jun 18, 2024
@izhaolinger
Copy link
Author

预测出来的mask图为什么会是灰度图?而不是黑白的呢?

@izhaolinger
Copy link
Author

请大家帮忙看看~

@izhaolinger
Copy link
Author

@wuyefeilin

可以请您指导下吗

@izhaolinger
Copy link
Author

真心请教,付费咨询

@michaelowenliu
Copy link
Collaborator

不经过自定义数据集,直接使用官方预训练模型的结果正常吗?

@yuqilol
Copy link

yuqilol commented Jul 5, 2024

你好,你的loss怎么设定的,我的ppmattingv2缺失了loss好神奇,The failed rule is DefaultPrimaryRule, and the error message is:
No loss specified in the configuration file.

@izhaolinger
Copy link
Author

不经过自定义数据集,直接使用官方预训练模型的结果正常吗?

是正常的

@izhaolinger
Copy link
Author

你好,你的loss怎么设定的,我的ppmattingv2缺失了loss好神奇,The failed rule is DefaultPrimaryRule, and the error message is: No loss specified in the configuration file.

我的loss没有做改动,用的官方配置文件给出的值,您这个看起来像是把loss配置删除了?

@yuqilol
Copy link

yuqilol commented Jul 10, 2024

你好,你的loss怎么设定的,我的ppmattingv2缺失了loss好神奇,The failed rule is DefaultPrimaryRule, and the error message is: No loss specified in the configuration file.

我的loss没有做改动,用的官方配置文件给出的值,您这个看起来像是把loss配置删除了?

这个问题我已经解决了,是工作目录问题,要在matting目录下运行才有loss

@yuqilol
Copy link

yuqilol commented Jul 10, 2024

不经过自定义数据集,直接使用官方预训练模型的结果正常吗?

是正常的

我的是不正常的,我直接用官方的aplha是没有结果的

@yuqilol
Copy link

yuqilol commented Jul 10, 2024

human_alpha
Uploading human_rgba.png…

@yuqilol
Copy link

yuqilol commented Jul 10, 2024

@michaelowenliu
使用命令如下
python tools/predict.py --config configs/ppmattingv2/ppmattingv2-stdc1-human_512.yml --model_path checkpoint/ppmattingv2-stdc1-human_512.pdparams --image_path demo/human.jpg --save_dir ./output/results --fg_estimate True
配置文件未改动过,电脑windows cpu端,更改device为cpu之后输出结果仍旧一致。

@LeslisXu
Copy link

我也是一模一样,自己使用了ppmattingv2-stdc1-human_512做微调,得到的结果也是灰度图,但是不做微调,直接使用下载下来的pretrain model结果就是正常的。

@izhaolinger
Copy link
Author

我也是一模一样,自己使用了ppmattingv2-stdc1-human_512做微调,得到的结果也是灰度图,但是不做微调,直接使用下载下来的pretrain model结果就是正常的。

请问你的问题解决了吗?

@LeslisXu
Copy link

我也是一模一样,自己使用了ppmattingv2-stdc1-human_512做微调,得到的结果也是灰度图,但是不做微调,直接使用下载下来的pretrain model结果就是正常的。

请问你的问题解决了吗?

没有解决,但是我决定试一试用PP3-100数据集等试一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants