BEVFormer icon indicating copy to clipboard operation
BEVFormer copied to clipboard

rotate_center

Open minrui-hust opened this issue 2 years ago • 6 comments

rotate_center is default to be [100, 100], that is ok for base config, which has bev resolution of 200x200, but for small and tiny config, which has 150x150 and 50x50, it seems rotate_center is not the center of the bev image for these configs. is this on purpose or a mistake?

minrui-hust avatar Aug 22 '22 08:08 minrui-hust

Yeah, it's a mistake. Fixing it will obtain higher scores😂.

zhiqi-li avatar Aug 22 '22 08:08 zhiqi-li

Thanks for your reply. Another question: In temporal_self_attention.py, you concate the ‘query’ and ‘value[:bs]’ in line 195, which i guess you mean to concatenating previous bev_query and current bev_query in feature dimension, howevery 'value' is reshaped from shape [B,2,query_len,F]( in encoder.py line 203), which has batch in first dimension, after reshape, ’value[:bs]‘ will not be the first batch(which is according to pre_query), but half pre_quey and half cur_query. Maybe reshape from [2, B, query_len, F] to [2*B, query_len, F] is what you intended?

minrui-hust avatar Aug 23 '22 03:08 minrui-hust

Thanks for pointing out our mistakes, would you like to raise a pull requests and become a contributor of BEVFormer?

zhiqi-li avatar Aug 23 '22 04:08 zhiqi-li

very glad to, i will make a PR after train and eval.

minrui-hust avatar Aug 23 '22 06:08 minrui-hust

@zhiqi-li @minrui-hust hello,I have a question. if I change the bev coords to [200,100](means bev_h=200,bev_w=100),and I change the rotate center to be [50,100], will it work? Thanks.

Zhutianyi7230 avatar Mar 24 '23 04:03 Zhutianyi7230

ge the bev coords to [200,100](means bev_h=200,bev_w=100),and I change the rotate center to b

I think it will work, but we don't need to set the center. The rotation function by default rotates around the center of the tensor.

usergxx avatar Jul 23 '24 01:07 usergxx