Skip to content

Commit 2cb5f78

Browse files
committed
fix lint
Signed-off-by: wep21 <[email protected]>
1 parent 79415f6 commit 2cb5f78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/TransFusion/transfusion/transfusion_head.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,8 @@ def forward_single(self, inputs, metas):
194194
#################################
195195
# image to BEV
196196
#################################
197-
lidar_feat_flatten = lidar_feat.view(batch_size,
198-
lidar_feat.shape[1],
199-
-1) # [BS, C, H*W]
197+
lidar_feat_flatten = lidar_feat.view(batch_size, lidar_feat.shape[1],
198+
-1) # [BS, C, H*W]
200199
bev_pos = self.bev_pos.repeat(batch_size, 1, 1).to(lidar_feat.device)
201200

202201
#################################
@@ -702,7 +701,8 @@ def get_targets_single(self, gt_instances_3d, preds_dict, batch_idx):
702701
device=device)
703702
center_int = center.to(torch.int32)
704703

705-
draw_heatmap_gaussian(heatmap[gt_labels_3d[idx]], center_int, radius)
704+
draw_heatmap_gaussian(heatmap[gt_labels_3d[idx]], center_int,
705+
radius)
706706

707707
mean_iou = ious[pos_inds].sum() / max(len(pos_inds), 1)
708708
return (
@@ -843,4 +843,4 @@ def loss_by_feat(self, preds_dicts: Tuple[List[dict]],
843843

844844
loss_dict['matched_ious'] = layer_loss_cls.new_tensor(matched_ious)
845845

846-
return loss_dict
846+
return loss_dict

0 commit comments

Comments
 (0)