w-okada / voice-changer

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

AttributeError: 'HParams' object has no attribute 'n_speakers' #164

Closed 2p31-1 closed 1 year ago

2p31-1 commented 1 year ago
PORT:16961, LOG_FILE:LOG_FILE_16961, model_param: -m /content/drive/MyDrive/VoiceChanger/mika/G_24000.pth
VoiceChanger Initialized (GPU_NUM:1, mps_enabled:False)
Traceback (most recent call last):
  File "/content/voice-changer/server/MMVCServerSIO.py", line 104, in <module>
    voiceChangerManager.loadModel(CONFIG, MODEL, ONNX_MODEL)
  File "/content/voice-changer/server/voice_changer/VoiceChangerManager.py", line 14, in loadModel
    info = self.voiceChanger.loadModel(config, model, onnx_model)
  File "/content/voice-changer/server/voice_changer/VoiceChanger.py", line 72, in loadModel
    n_speakers=self.hps.data.n_speakers,
AttributeError: 'HParams' object has no attribute 'n_speakers'
w-okada commented 1 year ago

The latest version, you cannot pass the parameter for model. delete "-m xxx.pth", and upload via GUI.

w-okada commented 1 year ago

no reply. Close.

2blackbar commented 11 months ago

HEy dev, this error makes the gui stuck in a bootloop and its pretty serious, your answer is pretty vague, where i should go and remove files from, cant you add some check to ignore those errors and just load gui without model if there such error that can cause bootloop? It makes the whole gui stop working

OK i had to go to "model dir" directory and rmove the model it was loading that caused probblems but id prerefe if this gui did that on its own when it encounters this issue.

w-okada commented 11 months ago

use feature request template