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 change batch_size for model.predict for YOLO-NAS? #1272

Closed
Allison2324 opened this issue Jul 12, 2023 · 3 comments
Closed

How to change batch_size for model.predict for YOLO-NAS? #1272

Allison2324 opened this issue Jul 12, 2023 · 3 comments

Comments

@Allison2324
Copy link

Allison2324 commented Jul 12, 2023

How to change batch_size for model.predict for YOLO-NAS?

As I can see it's 32 by default. I need to change it.

@Louis-Dupont
Copy link
Contributor

Hi @Allison2324
I opened a PR to add this as an option to the model.predict method.
Until this is merged/released, you can go for one of the two workarounds:

pipeline = model._get_pipeline()  # Same API as `model.predict()`
predictions = pipeline(IMAGES, batch_size=8)
...

@Louis-Dupont
Copy link
Contributor

@Allison2324 The parameter batch_size was added in this PR which was merged. The feature is available on the master branch and will be part of the next release 3.1.3.

@harpreetsahota204
Copy link

Hi @Allison2324 -

Thanks for opening an issue for SG. I'm gathering some feedback on SuperGradients and YOLO-NAS.

Would you be down for a quick call to chat about your experience?

If a call doesn't work for you, no worries. I've got a short survey you could fill out: https://bit.ly/sgyn-feedback.

I know you’re super busy, but your input will help us shape the direction of SuperGradients and make it as useful as possible for you.

I appreciate your time and feedback. Let me know what works for you.

Cheers,

Harpreet

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

No branches or pull requests

3 participants