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

from_coco_dict_or_path, added threading for processing coco_dict["images"] #827

Merged
merged 5 commits into from
Feb 12, 2023

Conversation

ilkermanap
Copy link
Contributor

Added threading for processing the coco_dict["images"] list.

We can provide the number of threads to use. Each thread will process (number of images / number of threads)

Could not test it with the absence of test data.

Added use_threads: bool = False, num_threads: int = 10 parameters to classmethod.

@fcakyon
Copy link
Collaborator

fcakyon commented Feb 12, 2023

Thanks a lot for this significant contribution @ilkermanap!

Would you mind reformatting your code with python -m scripts.run_code_style format then pushing again?

sahi/utils/coco.py Outdated Show resolved Hide resolved
sahi/utils/coco.py Outdated Show resolved Hide resolved
@fcakyon
Copy link
Collaborator

fcakyon commented Feb 12, 2023

@ilkermanap thanks a lot! All tests pass 👍

@fcakyon fcakyon added this pull request to the merge queue Feb 12, 2023
Merged via the queue into obss:main with commit f598518 Feb 12, 2023
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

Successfully merging this pull request may close these issues.

2 participants