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

Incompatible tensor size when a running a batch size of 2 #56

Closed
ikram-md opened this issue May 15, 2024 · 2 comments
Closed

Incompatible tensor size when a running a batch size of 2 #56

ikram-md opened this issue May 15, 2024 · 2 comments

Comments

@ikram-md
Copy link

I successfully managed to solve the environment issue, yet now when i tried to launch the training, i am obtaining the following error :
image
And when i use batch size of 1 i get the following error :
image

@ikram-md
Copy link
Author

For now i cannot use a greater batch size than 1, and when using a batch_size 1 other issues are provoked.

@yrcong
Copy link
Owner

yrcong commented May 15, 2024

Please check if you have changed the dataset code.

For the first error (Image 1), it seems you do not pad the images in the same size so that they can be concatenated.

For the second error (Image 2), definitely something wrong with the dataset or collate function. t should be a dict.

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