Set TORCH_HOME
This commit is contained in:
parent
c8e3604f71
commit
7114f988b4
3
main.py
3
main.py
@ -26,7 +26,8 @@ os.environ["OPENBLAS_NUM_THREADS"] = NUM_THREADS
|
||||
os.environ["MKL_NUM_THREADS"] = NUM_THREADS
|
||||
os.environ["VECLIB_MAXIMUM_THREADS"] = NUM_THREADS
|
||||
os.environ["NUMEXPR_NUM_THREADS"] = NUM_THREADS
|
||||
os.environ["TORCH_HOME"] = os.environ["cache_dir"]
|
||||
if 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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user