simple_bev icon indicating copy to clipboard operation
simple_bev copied to clipboard

The problem of offset

Open liwuhen opened this issue 4 years ago • 1 comments

def get_center_and_offset_bev(self, lrtlist_cam, seg_bev): ...... ...... offset = torch.stack([offset[:,0], offset[:,2]], dim=1) min_offset = torch.min(offset, dim=3)[0] max_offset = torch.max(offset, dim=3)[0] offset = min_offset + max_offset

The meaning expressed by the sum of min_offset and max_offset? What is the role of MIN_offset and max_offset?

liwuhen avatar Sep 05 '22 03:09 liwuhen

This is a shortcut to obtaining the nonzero values along the Y dimension, to get a BEV offset map. There are zeros above and below the car regions, and inside the car regions we have vectors with positive and negative numbers. With these lines we eliminate the Y dimension while retaining the right values within the car regions.

aharley avatar Sep 06 '22 20:09 aharley