Skip to content

how do I disable multiprocessing? #2184

Closed Answered by ternaus
alita-moore asked this question in Q&A
Discussion options

You must be logged in to vote

Albumentations by itself does not perform multiprocessing, but libraries it depends on could, like opencv or numpy.

import os
os.environ["OMP_NUM_THREADS"] = "1"
os.environ["OPENBLAS_NUM_THREADS"] = "1"
os.environ["MKL_NUM_THREADS"] = "1"
os.environ["VECLIB_MAXIMUM_THREADS"] = "1"
os.environ["NUMEXPR_NUM_THREADS"] = "1"

should do the job.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alita-moore
Comment options

Answer selected by alita-moore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants