Spaces:
Sleeping
Sleeping
Commit
•
8f686dc
1
Parent(s):
409b5d5
More attempted fix
Browse files- inference/infer_tool.py +1 -4
inference/infer_tool.py
CHANGED
@@ -188,10 +188,7 @@ class Svc(object):
|
|
188 |
F0_mean_pooling=False
|
189 |
):
|
190 |
|
191 |
-
speaker_id =
|
192 |
-
if not speaker_id and type(speaker) is int:
|
193 |
-
if len(self.spk2id.__dict__) >= speaker:
|
194 |
-
speaker_id = speaker
|
195 |
sid = torch.LongTensor([int(speaker_id)]).to(self.dev).unsqueeze(0)
|
196 |
c, f0, uv = self.get_unit_f0(raw_path, tran, cluster_infer_ratio, speaker, f0_filter,F0_mean_pooling)
|
197 |
if "half" in self.net_g_path and torch.cuda.is_available():
|
|
|
188 |
F0_mean_pooling=False
|
189 |
):
|
190 |
|
191 |
+
speaker_id = 0
|
|
|
|
|
|
|
192 |
sid = torch.LongTensor([int(speaker_id)]).to(self.dev).unsqueeze(0)
|
193 |
c, f0, uv = self.get_unit_f0(raw_path, tran, cluster_infer_ratio, speaker, f0_filter,F0_mean_pooling)
|
194 |
if "half" in self.net_g_path and torch.cuda.is_available():
|