Spaces:
Runtime error
Runtime error
Update inference_f0.py
Browse files- inference_f0.py +1 -0
inference_f0.py
CHANGED
@@ -7,6 +7,7 @@ from fairseq import checkpoint_utils
|
|
7 |
import pyworld,librosa
|
8 |
import torch.nn.functional as F
|
9 |
|
|
|
10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
model_path = "path_to_ContentVec_legacy500.pt"
|
12 |
print("load model(s) from {}".format(model_path))
|
|
|
7 |
import pyworld,librosa
|
8 |
import torch.nn.functional as F
|
9 |
|
10 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
12 |
model_path = "path_to_ContentVec_legacy500.pt"
|
13 |
print("load model(s) from {}".format(model_path))
|