Update extract_feature_print.py
Browse files- extract_feature_print.py +4 -3
extract_feature_print.py
CHANGED
|
@@ -46,6 +46,9 @@ def printt(strr):
|
|
| 46 |
|
| 47 |
printt(sys.argv)
|
| 48 |
model_path = sys.argv[7]
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
printt(exp_dir)
|
| 51 |
wavPath = "%s/1_16k_wavs" % exp_dir
|
|
@@ -69,9 +72,7 @@ def readwave(wav_path, normalize=False):
|
|
| 69 |
feats = feats.view(1, -1)
|
| 70 |
return feats
|
| 71 |
|
| 72 |
-
|
| 73 |
-
model_path = "/kaggle/working/Mangio-RVC-Fork/hubert_base.pt"
|
| 74 |
-
Custom_Embed = True
|
| 75 |
# HuBERT model
|
| 76 |
printt("load model(s) from {}".format(model_path))
|
| 77 |
# if hubert model is exist
|
|
|
|
| 46 |
|
| 47 |
printt(sys.argv)
|
| 48 |
model_path = sys.argv[7]
|
| 49 |
+
if os.path.split(model_path)[0] == "/kaggle/working/Mangio-RVC-Fork/Custom":
|
| 50 |
+
model_path = "/kaggle/working/Mangio-RVC-Fork/hubert_base.pt"
|
| 51 |
+
Custom_Embed = True
|
| 52 |
|
| 53 |
printt(exp_dir)
|
| 54 |
wavPath = "%s/1_16k_wavs" % exp_dir
|
|
|
|
| 72 |
feats = feats.view(1, -1)
|
| 73 |
return feats
|
| 74 |
|
| 75 |
+
|
|
|
|
|
|
|
| 76 |
# HuBERT model
|
| 77 |
printt("load model(s) from {}".format(model_path))
|
| 78 |
# if hubert model is exist
|