DiffusionDet
DiffusionDet copied to clipboard
Why permute pro_features and why `[0]` here?
https://github.com/ShoufaChen/DiffusionDet/blob/1efb36d4b0b721f2d509bc72656235a94d73ab02/diffusiondet/head.py#L253-L254
- Before passing proposal feature into
self.attn, you permute the feature and make the size of it benr_boxes*N*C, it confused me.
For normal transformer block, the feature should be with size N*num_tokens*C however yours nr_boxes*N*C, Why ?
-
[0]makes the feature beN*Cby dragging out the first bbox ?
Oh, I have known the reason of Q2, however still confused about Q1, would you mind explain it to me ? Thank you!