Replies: 1 comment
-
if it is initialized by nn.Parameter(num_queries, embed_dims) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I read the code of DETR, I found that the self.query_embedding was created as a nn.Embedding layer but only its weight was used in the model. I was a bit confused. See here:
mmdetection/mmdet/models/dense_heads/detr_head.py
Line 259 in 1a90fa8
If only the weight is needed, why not initialize the self.query_embedding by nn.Parameter(num_queries, embed_dims)?
Beta Was this translation helpful? Give feedback.
All reactions