w-okada / voice-changer

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

Unable to load voices that are 500MB in size. #341

Closed AOVTuber closed 1 year ago

AOVTuber commented 1 year ago

Issue Type

Question

vc client version number

v.1.5.3.5a

OS

Win10

GPU

RTX 3060

Clear setting

yes

Sample model

yes

Input chunk num

yes

Voice Changer type

RVC

Model type

pytorch

Situation

Most .pth voices I find that are around 57MB in size work really well with the RVC section of your app, but the ones that are about 500MB in size, do not work at all (they don't even load). Do you know why this might be?

Fasteroid commented 1 year ago

Reproduced with a 523MB model of Wrecking Ball's Mech from OW2 on version 1.5.3.5:

loadModel {'defaultTune': 0, 'defaultIndexRatio': 1, 'defaultProtect': 0.5, 'sampleId': '', 'rvcIndexDownload': True, 'files': {'rvcModel': 'C:\\Users\\Faste\\AppData\\Local\\Temp\\tmpieo3j0l6\\upload_dir\\4\\WreckingBall.pth'}}
Traceback (most recent call last):
  File "voice_changer\VoiceChanger.py", line 334, in loadModel
  File "voice_changer\RVC\RVC.py", line 158, in loadModel
  File "voice_changer\RVC\ModelSlotGenerator.py", line 11, in _setInfoByPytorch
KeyError: 'config'

[Voice Changer] Model Load Error! Check your model is valid. 'config'
AOVTuber commented 1 year ago

Well, just discovered those 500MB files arent's for RVC, they're for So-vits-svc-4.0, so no wonder it wasn't working for me.