This commit is contained in:
parent
b6cae0ebf4
commit
9b95376a79
@ -40,6 +40,9 @@ from lama_cleaner.helper import (
|
|||||||
|
|
||||||
NUM_THREADS = str(multiprocessing.cpu_count())
|
NUM_THREADS = str(multiprocessing.cpu_count())
|
||||||
|
|
||||||
|
# fix libomp problem on windows https://github.com/Sanster/lama-cleaner/issues/56
|
||||||
|
os.environ["KMP_DUPLICATE_LIB_OK"]="True"
|
||||||
|
|
||||||
os.environ["OMP_NUM_THREADS"] = NUM_THREADS
|
os.environ["OMP_NUM_THREADS"] = NUM_THREADS
|
||||||
os.environ["OPENBLAS_NUM_THREADS"] = NUM_THREADS
|
os.environ["OPENBLAS_NUM_THREADS"] = NUM_THREADS
|
||||||
os.environ["MKL_NUM_THREADS"] = NUM_THREADS
|
os.environ["MKL_NUM_THREADS"] = NUM_THREADS
|
||||||
|
Loading…
Reference in New Issue
Block a user