Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

The size of tensor a (512) must match the size of tensor b (12) at non-singleton dimension 1 #12

Open
GaoXinJian-USTC opened this issue Oct 7, 2020 · 5 comments

Comments

@GaoXinJian-USTC
Copy link

My labels.csv has 12 categories of num_classes. When it was raining, an error “The size of tensor a (512) must match the size of tensor b (12) at non-singleton dimension 1” occured.

@pjl1995
Copy link
Owner

pjl1995 commented Oct 9, 2020

Could you succeed to run the code if you only use 1 category in train_annots.csv and train_labels.csv?

@GaoXinJian-USTC
Copy link
Author

Could you succeed to run the code if you only use 1 category in train_annots.csv and train_labels.csv?

Yes,but 12 categories can't

@pjl1995
Copy link
Owner

pjl1995 commented Oct 9, 2020

I am sorry that this version of CTracker may not support the multi-category tracking. Maybe you need to modify the code if you want to use CTracker to solve it.

@GaoXinJian-USTC
Copy link
Author

I am sorry that this version of CTracker may not support the multi-category tracking. Maybe you need to modify the code if you want to use CTracker to solve it.

Can you give me some tips on how to modify it? I'm so confused ..XoX

@pjl1995
Copy link
Owner

pjl1995 commented Oct 14, 2020

For the detection part, you can refer to the source code of retinanet:
https://github.com/yhenon/pytorch-retinanet
For the tracking part, you need to rewrite test.py and modify the logic. For example, only the objects of the same category can be associated.

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

No branches or pull requests

2 participants