DAB-DETR icon indicating copy to clipboard operation
DAB-DETR copied to clipboard

RuntimeError: Sizes of tensors must match except in dimension 0. Got 0 and 300 (The offending index is 0)

Open Hezey opened this issue 1 year ago • 1 comments

When I was training my own data set with DN-DETR, I encountered the following problems, how do I solve them? Who can tell me, please? @sorrowyn @whatchang @SlongLiu @developer0hye @rentainhe

Traceback (most recent call last): tgt = torch.cat([tgt_weight, indicator0], dim=1) + label_enc.weight[0][0]*torch.tensor(0).cuda() RuntimeError: Sizes of tensors must match except in dimension 0. Got 0 and 300 (The offending index is 0)

Hezey avatar Oct 08 '23 08:10 Hezey