Spaces:
Configuration error
Configuration error
Commit
·
5b8252c
1
Parent(s):
dbcea98
Update infer_tools/infer_tool.py
Browse files
infer_tools/infer_tool.py
CHANGED
|
@@ -21,11 +21,6 @@ from preprocessing.hubertinfer import Hubertencoder
|
|
| 21 |
from utils.hparams import hparams, set_hparams
|
| 22 |
from utils.pitch_utils import denorm_f0, norm_interp_f0
|
| 23 |
map_location=torch.device('cpu')
|
| 24 |
-
# Enable JIT mode
|
| 25 |
-
torch.backends.intel.set_jit_enabled(True)
|
| 26 |
-
|
| 27 |
-
# Enable IPEX
|
| 28 |
-
torch.backends.intel.set_use_ipex(True)
|
| 29 |
if os.path.exists("chunks_temp.json"):
|
| 30 |
os.remove("chunks_temp.json")
|
| 31 |
|
|
|
|
| 21 |
from utils.hparams import hparams, set_hparams
|
| 22 |
from utils.pitch_utils import denorm_f0, norm_interp_f0
|
| 23 |
map_location=torch.device('cpu')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
if os.path.exists("chunks_temp.json"):
|
| 25 |
os.remove("chunks_temp.json")
|
| 26 |
|