We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GT中除了有类别mask, 还有一些ROI区域, 目的是让模型重点学习ROI区域内的分割细节
list of ROI: [ [x1, y1, x2, y2], [x1, y1, x2, y2], ... ]
目前想法是取这些bbox的中心点, 然后基于bbox的长宽生成一张loss weight热力图, 类似于这种 (图里是基于边缘距离生成的)
框架内的BCELoss虽然可以有pos_weight入参, 但是感觉不能每张图传不同的值, 请问如何修改代码以达成这个目标?
pos_weight
The text was updated successfully, but these errors were encountered:
你好,语义分割中损失的权重是根据类别进行叠加的,但是根据你的说明,你需要在空间维度进行损失权重叠加,我们有一个semantic weight的参数,你可以在每次损失计算时将对应权重传入这个参数中:
PaddleSeg/paddleseg/models/losses/cross_entropy_loss.py
Line 93 in 166f366
Sorry, something went wrong.
shiyutang
No branches or pull requests
问题确认 Search before asking
请提出你的问题 Please ask your question
GT中除了有类别mask, 还有一些ROI区域, 目的是让模型重点学习ROI区域内的分割细节
目前想法是取这些bbox的中心点, 然后基于bbox的长宽生成一张loss weight热力图, 类似于这种 (图里是基于边缘距离生成的)
框架内的BCELoss虽然可以有
pos_weight
入参, 但是感觉不能每张图传不同的值, 请问如何修改代码以达成这个目标?The text was updated successfully, but these errors were encountered: