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

Make batch size configurable #443

Open
sky-2002 opened this issue Dec 26, 2024 · 3 comments
Open

Make batch size configurable #443

sky-2002 opened this issue Dec 26, 2024 · 3 comments

Comments

@sky-2002
Copy link

sky-2002 commented Dec 26, 2024

@VikParuchuri
Currently batch size is set to 32 when device is cuda or mps, yes we can alter OcrBuilder but not able to do it when using PdfConverter.

Maybe reading these batch size form an env variable would be helpful

I can add if this sounds good

@sky-2002
Copy link
Author

sky-2002 commented Jan 2, 2025

Maybe i misinterpreted, we can set them from OcrBuilder.recognition_batch_size and so on..

@VikParuchuri
Copy link
Owner

You can pass in the config via json file in the cli - --config_json PATH: Path to a JSON configuration file containing additional settings.

@VikParuchuri
Copy link
Owner

If you have a json file with {"recognition_batch_size": 16}, that will override the setting

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