Set TORCH_HOME
This commit is contained in:
parent
c8e3604f71
commit
7114f988b4
1
main.py
1
main.py
@ -26,6 +26,7 @@ os.environ["OPENBLAS_NUM_THREADS"] = NUM_THREADS
|
|||||||
os.environ["MKL_NUM_THREADS"] = NUM_THREADS
|
os.environ["MKL_NUM_THREADS"] = NUM_THREADS
|
||||||
os.environ["VECLIB_MAXIMUM_THREADS"] = NUM_THREADS
|
os.environ["VECLIB_MAXIMUM_THREADS"] = NUM_THREADS
|
||||||
os.environ["NUMEXPR_NUM_THREADS"] = NUM_THREADS
|
os.environ["NUMEXPR_NUM_THREADS"] = NUM_THREADS
|
||||||
|
if os.environ["cache_dir"]:
|
||||||
os.environ["TORCH_HOME"] = os.environ["cache_dir"]
|
os.environ["TORCH_HOME"] = os.environ["cache_dir"]
|
||||||
|
|
||||||
BUILD_DIR = os.environ.get("LAMA_CLEANER_BUILD_DIR", "./lama_cleaner/app/build")
|
BUILD_DIR = os.environ.get("LAMA_CLEANER_BUILD_DIR", "./lama_cleaner/app/build")
|
||||||
|
Loading…
Reference in New Issue
Block a user