Skip to content

Add a method to set the number of threads. #6151

@nlgranger

Description

@nlgranger

MediaPipe Solution (you are using)

face_detection, face_mesh, vision

Programming language

Python

Are you willing to contribute it

None

Describe the feature and the current behaviour/state

Mediapipe does not support setting the maximum number of threads to use.

Will this change the current API? How?

Add a function or env var to set the macimum number of threads.

Who will benefit with this feature?

People with many cores on their system since the default number of threads seem related to it.

Please specify the use cases for this feature

Running multiple models in parallel (in different processes) creates mtoo many threads which is detrimental to efficiency.

Any Other info

No response

Metadata

Metadata

Assignees

Labels

pythonPull requests that update Python codetype:featureEnhancement in the New Functionality or Request for a New Solution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions