mirror of
https://github.com/svc-develop-team/so-vits-svc.git
synced 2025-01-09 04:27:31 +08:00
fixed the error when using feature retrieval
This commit is contained in:
parent
225f7fdfa5
commit
5e91b889df
@ -229,7 +229,7 @@ class Svc(object):
|
||||
if speaker_id is None:
|
||||
raise RuntimeError("The name you entered is not in the speaker list!")
|
||||
feature_index = self.cluster_model[speaker_id]
|
||||
feat_np = c.transpose(0,1).cpu().numpy()
|
||||
feat_np = np.ascontiguousarray(c.transpose(0,1).cpu().numpy())
|
||||
if self.big_npy is None or self.now_spk_id != speaker_id:
|
||||
self.big_npy = feature_index.reconstruct_n(0, feature_index.ntotal)
|
||||
self.now_spk_id = speaker_id
|
||||
|
Loading…
Reference in New Issue
Block a user