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

How to merge p_crops into a batch? #10

Open
Korverf opened this issue Jul 15, 2021 · 0 comments
Open

How to merge p_crops into a batch? #10

Korverf opened this issue Jul 15, 2021 · 0 comments

Comments

@Korverf
Copy link

Korverf commented Jul 15, 2021

Thanks for your great work! Since you have not released the training code, I write a training code based on FairMOT. However, I meet a problem when using the dataloader:
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimenson0. Got 4 and 5 in dimenson 1 at /opt/conda/conda-bld/pytorch_1579022034529/work/aten/src/TH/generic/THTensor.cpp:612

And I find the reason is that the size of p_crops is various in different pics(it depends on the number of objects in the picture),so I cannot use dataloader to stack the p_crops into a batch. Can you tell me how to merge p_crops into a batch?

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

1 participant