Skip to content

Commit

Permalink
fixbug: miss cls loss weight in center head (open-mmlab#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
jihanyang authored Jan 24, 2022
1 parent fa78c4f commit 274c90c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pcdet/models/dense_heads/center_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def get_loss(self):
for idx, pred_dict in enumerate(pred_dicts):
pred_dict['hm'] = self.sigmoid(pred_dict['hm'])
hm_loss = self.hm_loss_func(pred_dict['hm'], target_dicts['heatmaps'][idx])
hm_loss *= self.model_cfg.LOSS_CONFIG.LOSS_WEIGHTS['cls_weight']

target_boxes = target_dicts['target_boxes'][idx]
pred_boxes = torch.cat([pred_dict[head_name] for head_name in self.separate_head_cfg.HEAD_ORDER], dim=1)
Expand Down

0 comments on commit 274c90c

Please sign in to comment.