Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Hezey opened this issue Oct 8, 2023 · 1 comment

Comments

@Hezey
Copy link

Hezey commented Oct 8, 2023

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)

@sorrowyn
Copy link
Contributor

sorrowyn commented Oct 8, 2023

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)

https://blog.csdn.net/weixin_40802676/article/details/108145671
or you can search in google.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants