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

batch predictions #6

Open
shashi-netra opened this issue May 3, 2024 · 2 comments
Open

batch predictions #6

shashi-netra opened this issue May 3, 2024 · 2 comments

Comments

@shashi-netra
Copy link

The autodistill sample takes 1 image at a time, is there a way to predict on a batch to maximize utilization on GPU.

@Samuel5106
Copy link

Samuel5106 commented May 6, 2024

@shashi-netra can you elaborate more about the issue so that I can help you

@shashi-netra
Copy link
Author

Please refer to code samplehere

def run_llava(video_file):
    frame_images = read_video(video_file)
    preds = llava_model(frame_images)
    return preds

Instead of sending 1 frame at a time, hopefully I can send a batch to get batched predictions.

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