w-okada / voice-changer

リアルタイムボイスチェンジャー Realtime Voice Changer
Other
16.4k stars 1.8k forks source link

no attribute 'hubert_model' #200

Closed iljung1106 closed 1 year ago

iljung1106 commented 1 year ago

VC PROCESSING!!!! EXCEPTION!!! 'SoVitsSvc40v2' object has no attribute 'hubert_model' Traceback (most recent call last): File "voice_changer\VoiceChanger.py", line 229, in on_request_sola File "voice_changer\SoVitsSvc40v2\SoVitsSvc40v2.py", line 244, in generate_input File "voice_changer\SoVitsSvc40v2\SoVitsSvc40v2.py", line 201, in get_unit_f0 AttributeError: 'SoVitsSvc40v2' object has no attribute 'hubert_model'

No matter what vc I use, this error appears.

zaarul commented 1 year ago

Experiencing the same thing both v1 and v2.

w-okada commented 1 year ago

Did you set hubert_base.pt in the folder?

Tybost commented 1 year ago

Experiencing the same thing both v1 and v2.

Edit: I finally got passed the error and got it working (for V1) Just realized you're trying to get V2 working and it should get you passed the hubert error. Doesn't seem like v1 trained models work with v2 and v2 doesn't seem as popular (hard to find test models) so make sure your using a V2 trained model.

1) You need to edit start_http (Notepad++) and change --content_vec_500_onnx_on true to false (at least for V1) 2) Drag checkpoint_best_legacy_500.pt to MMVCServerSIO_win_onnxgpu-cuda_v.1.5.2.4a\MMVCServerSIO\so-vits-svc-40\cluster (or 40v2 cluster for V2)

Example model used for V1: https://huggingface.co/OlivineEllva/so-vits-svc-4.0-models/tree/main/LyraBonHearts G_37000, config(lyra), lyra_kmeans_2853

Edit: In case your model doesn't properly load (fails at 50%) then change 0 to 1 model slot. This is happening to me on v.1.5.2.4a

w-okada commented 1 year ago

@Tybost Thanks and you are great!. I couldn't find the reason of this situation, but you found. I Think that's it. --content_vec_500_onnx_on should be false.

w-okada commented 1 year ago

New version is up. v.1.5.2.5 At this version, I fixed the problem about .bat. Please use this.