voicepaw / so-vits-svc-fork

so-vits-svc fork with realtime support, improved interface and more features.
Other
8.68k stars 1.15k forks source link

AttributeError: 'HParams' object has no attribute 'spk' when using someone elses model #872

Open hassanshaikley opened 1 year ago

hassanshaikley commented 1 year ago

Describe the bug

I'm using this model https://drive.google.com/file/d/1fuGiMDvN2EXsJSUQWYFtGqDjGVZ-P6Gl/view

And I got this error with other models as well.

To Reproduce

After installing the deps. Literally all I run is the following:

PYTORCH_ENABLE_MPS_FALLBACK=1 svc infer ../../raw_audio_to_vo/1_Céline\ Dion\ -\ My\ Heart\ Will\ Go\ On\ \(Official\ 25th\ Anniversary\ Alternate\ Music\ Video\)\ \[9bFHsd3o1w0\]_\(Vocals\).wav -m weights/SpongeBobSquarePants.pth -c logs/SpongebobSquarepants/config.json

Additional context

python 3.8.16 so-vits-svc-fork 4.1.1 torch 2.0.1 torchaudio 2.0.2

Version

4.1.1

Platform

macOS 13.4

Code of Conduct

No Duplicate

Ivanca commented 11 months ago

It may be an invalid config file, there is a pre-made one at "\vits-svc-fork\venv\Lib\site-packages\so_vits_svc_fork\preprocessing\config_templates\quickvc.json"