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
# soc semantic loss downsampled_fusion = F.interpolate(pred_fusion, scale_factor=1/8, mode='nearest') downsampled_pseudo_gt_fusion = downsampled_fusion.max(1)[1] pseudo_gt_semantic = pred_semantic.max(1)[1] soc_semantic_loss = F.cross_entropy(pred_semantic, downsampled_pseudo_gt_fusion.detach()) + \ F.cross_entropy(downsampled_fusion, pseudo_gt_semantic.detach()) backup_fusion, backup_detail, _ = self.config.output_backup # sub-objectives consistency between `pred_detail` and `pred_backup_detail` (on boundaries only) backup_detail_loss = boundaries * F.cross_entropy(pred_detail, backup_detail.max(1)[1], weight=self.config.classes_weight, reduction='none') backup_detail_loss = torch.mean(backup_detail_loss) # sub-objectives consistency between pred_matte` and `pred_backup_matte` (on boundaries only) backup_fusion_loss = boundaries * F.cross_entropy(pred_fusion, backup_fusion.max(1)[1], reduction='none') backup_fusion_loss = torch.mean(backup_fusion_loss) self.config.loss = 5 * soc_semantic_loss + backup_detail_loss + backup_fusion_loss
The text was updated successfully, but these errors were encountered:
# 手臂检测情况略有好转,但误检消除能力变弱,图片存在较多误检 self.config.loss = 1 * soc_semantic_loss + backup_detail_loss + backup_fusion_loss
# 手臂检测情况更差,误检消除能力增强,图片存在极少误检 self.config.loss = 10 * soc_semantic_loss + backup_detail_loss + backup_fusion_loss
Sorry, something went wrong.
No branches or pull requests
损失配置
模型表现
The text was updated successfully, but these errors were encountered: