Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieval model error #155

Open
dillfrescott opened this issue Dec 16, 2023 · 1 comment
Open

Retrieval model error #155

dillfrescott opened this issue Dec 16, 2023 · 1 comment

Comments

@dillfrescott
Copy link

Traceback (most recent call last):
  File "C:\Users\cross\Downloads\so-vits-svc-5.0\svc_inference.py", line 241, in <module>
    main(args)
  File "C:\Users\cross\Downloads\so-vits-svc-5.0\svc_inference.py", line 202, in main
    out_audio = svc_infer(model, retrieval, spk, pit, ppg, vec, hp, device)
  File "C:\Users\cross\Downloads\so-vits-svc-5.0\svc_inference.py", line 117, in svc_infer
    sub_ppg = retrieval.retriv_hubert(ppg[cut_s:cut_e, :])
  File "C:\Users\cross\Downloads\so-vits-svc-5.0\feature_retrieval\retrieval.py", line 43, in retriv_hubert
    np_vec = self._hubert_index.retriv(vec.numpy())
  File "C:\Users\cross\Downloads\so-vits-svc-5.0\feature_retrieval\index.py", line 59, in retriv
    scores, _, nearest_vectors = self._index.search_and_reconstruct(features, k=self._n_nearest)
  File "C:\Users\cross\miniconda3\envs\sovits\lib\site-packages\faiss\class_wrappers.py", line 378, in replacement_search_and_reconstruct
    assert d == self.d
AssertionError
@xwang0415
Copy link

in svc_inference.py L117-L118:
https://github.com/PlayVoice/so-vits-svc-5.0/blob/b61616d086ece100528de1c7d3b54a8daa01d88f/svc_inference.py#L117C18-L117C18
"
sub_ppg = retrieval.retriv_hubert(ppg[cut_s:cut_e, :])
sub_vec = retrieval.retriv_whisper(vec[cut_s:cut_e, :])
"

be changed to:
"
sub_ppg = retrieval.retriv_whisper(ppg[cut_s:cut_e, :])
sub_vec = retrieval.retriv_hubert(vec[cut_s:cut_e, :])
"
because ppg features are extracted from whisper,and vec features are extracted from hubert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants