RejektsAI / EVC

Easy Voice Cloning (Addons for RVC)
MIT License
25 stars 27 forks source link

easy-infer2 not working #3

Open TheTrustyHammer opened 1 year ago

TheTrustyHammer commented 1 year ago

always get this attempting to load a RVC V2 model

loading weights/XXXV1.pth gin_channels: 256 self.spk_embed_dim: 109 Traceback (most recent call last): File "easy-infer2.py", line 443, in get_vc(sorted(names)[0]) File "easy-infer2.py", line 295, in get_vc print(net_g.load_state_dict(cpt["weight"], strict=False)) # 不加这一行清不干净, 真奇葩 File "C:\Users\U\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\modules\module.py", line 1497, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for SynthesizerTrnMs256NSFsid: size mismatch for enc_p.emb_phone.weight: copying a param with shape torch.Size([192, 768]) from checkpoint, the shape in current model is torch.Size([192, 256]).

Is it really updated to work with V2?

Ironically - EasierGUI.py works just fine loading the same model.

Can you please clarify what's wrong or fix easy-infer2.py please?

RejektsAI commented 1 year ago

Use GUI.py not easy-infer2.py.

El dom., 16 de julio de 2023 3:23 p. m., THELASTOFUS < @.***> escribió:

always get this attempting to load a RVC V2 model

loading weights/XXXV1.pth gin_channels: 256 self.spk_embed_dim: 109 Traceback (most recent call last): File "easy-infer2.py", line 443, in get_vc(sorted(names)[0]) File "easy-infer2.py", line 295, in get_vc print(net_g.load_state_dict(cpt["weight"], strict=False)) # 不加这一行清不干净, 真奇葩 File "C:\Users\U\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\modules\module.py", line 1497, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for SynthesizerTrnMs256NSFsid: size mismatch for enc_p.emb_phone.weight: copying a param with shape torch.Size([192, 768]) from checkpoint, the shape in current model is torch.Size([192, 256]).

Is it really updated to work with V2?

— Reply to this email directly, view it on GitHub https://github.com/777gt/EVC/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYFRH3BJZKV2UN2SAGPOQL3XQRET3ANCNFSM6AAAAAA2MEVOYM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TheTrustyHammer commented 1 year ago

Do you mean EasierGUI? Was hoping to use a fully fledged version that also allows training. :(

RejektsAI commented 1 year ago

I mean the file called GUI.py which supports both training and inference

El dom., 16 de julio de 2023 3:36 p. m., THELASTOFUS < @.***> escribió:

Do you mean EasierGUI? Was hoping to use a fully fledged version that also allows training. :(

— Reply to this email directly, view it on GitHub https://github.com/777gt/EVC/issues/3#issuecomment-1637184629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYFRH3HFVZ23TU3QNX7X4V3XQRGFPANCNFSM6AAAAAA2MEVOYM . You are receiving this because you commented.Message ID: @.***>

TheTrustyHammer commented 1 year ago

Sorry what gui.py? The mangio one? There is no gui.py on this github

TheTrustyHammer commented 1 year ago

Was hoping for an easy-inference style GUI that also could train like RVC V1

RejektsAI commented 1 year ago

Where did you get the EasyGUI? If you want to train both RVC 1 and 2 models, you can use Mangio's fork. I'm maintaining the current GUI.py from the -EVC- repository. It trains RVC V2 models and does inference, as well as providing a simple TTS interface with access to elevenlabs and Wav2Lip for a fuller experience but it does not train V1 models.

El dom., 16 de julio de 2023 6:30 p. m., THELASTOFUS < @.***> escribió:

Was hoping for an easy-inference style GUI that also could train like RVC V1

— Reply to this email directly, view it on GitHub https://github.com/777gt/EVC/issues/3#issuecomment-1637216026, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYFRH3CUCVUBZWNLSNT5H5TXQR2R5ANCNFSM6AAAAAA2MEVOYM . You are receiving this because you commented.Message ID: @.***>

TheTrustyHammer commented 1 year ago

i got it from this repo...

but I don't see any GUI.py in the branch? Only "EasierGUI.py" which has no inference tab. Easy-infer2.py and easy-infer.py neither work with V2 models in the /weights folder - they seem to error out.

https://github.com/777gt/EVC

RejektsAI commented 1 year ago

That's a lot of miscellaneous files, the repository for it is:

https://github.com/777gt/-EVC-

El dom., 16 de julio de 2023 7:08 p. m., THELASTOFUS < @.***> escribió:

i got it from this repo...

but I don't see any GUI.py in the branch?

https://github.com/777gt/EVC

— Reply to this email directly, view it on GitHub https://github.com/777gt/EVC/issues/3#issuecomment-1637224894, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYFRH3CGLBTXQ5RFRQMZV3TXQR67PANCNFSM6AAAAAA2MEVOYM . You are receiving this because you commented.Message ID: @.***>

TheTrustyHammer commented 1 year ago

Oh go figure... i was using this 777gt/EVC one lol no dashes

TheTrustyHammer commented 1 year ago

Thanks got it working! For V1 training - would one have to use the older repo with easy-infer.py?

RejektsAI commented 1 year ago

On Mon, Jul 17, 2023 at 4:31 PM THELASTOFUS @.***> wrote:

Thanks got it working! For V1 training - would one have to use the older repo with easy-infer.py?

— Reply to this email directly, view it on GitHub https://github.com/777gt/EVC/issues/3#issuecomment-1638914307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYFRH3AWKNK2XRVXQMXM6YLXQWVKTANCNFSM6AAAAAA2MEVOYM . You are receiving this because you commented.Message ID: @.***>

if it still works, sure. The latest easyGUI does not support v1, for simplicity’s sake. It’s not meant to be a comprehensive tool, but the simplest.