add cache

This commit is contained in:
shahules786 2022-11-10 16:01:06 +05:30
parent 252d380acc
commit a2e083b315
1 changed files with 5 additions and 2 deletions

View File

@ -18,8 +18,11 @@ from enhancer.inference import Inference
from enhancer.loss import LOSS_MAP, LossWrapper
from enhancer.version import __version__
CACHE_DIR = ""
HF_TORCH_WEIGHTS = ""
CACHE_DIR = os.getenv(
"ENHANCER_CACHE",
os.path.expanduser("~/.cache/torch/enhancer"),
)
HF_TORCH_WEIGHTS = "pytorch_model.ckpt"
DEFAULT_DEVICE = "cpu"