add cache
This commit is contained in:
parent
252d380acc
commit
a2e083b315
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue