Skip to content

Commit 274c90c

Browse files
authored
fixbug: miss cls loss weight in center head (#772)
1 parent fa78c4f commit 274c90c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pcdet/models/dense_heads/center_head.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def get_loss(self):
232232
for idx, pred_dict in enumerate(pred_dicts):
233233
pred_dict['hm'] = self.sigmoid(pred_dict['hm'])
234234
hm_loss = self.hm_loss_func(pred_dict['hm'], target_dicts['heatmaps'][idx])
235+
hm_loss *= self.model_cfg.LOSS_CONFIG.LOSS_WEIGHTS['cls_weight']
235236

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

0 commit comments

Comments
 (0)