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

[Question] How to pass the batch size wenn fine tuning the SAM model on own dataset? #447

Open
wilhem opened this issue Nov 16, 2024 · 0 comments

Comments

@wilhem
Copy link

wilhem commented Nov 16, 2024

I have a problem, when passing more than one element to the network during the training phase on my dataset.

The problem is here:

predictor.set_image(image)

if the image has shape: (16, 1024, 1024, 3) where 16 is the batch size, and 3 the number of channels,
then I get an error, that the dimension does not match the desired input.
If the batch size is 1, then it works.

How to deal with it?

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