Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected keys in state dict when loading Unified Voice #80

Open
seedlessbuns opened this issue Jun 27, 2023 · 6 comments
Open

Unexpected keys in state dict when loading Unified Voice #80

seedlessbuns opened this issue Jun 27, 2023 · 6 comments

Comments

@seedlessbuns
Copy link

image

After starting training from the GUI and from CLI I get this error. Not sure what is going on, could I have the wrong autoregressive.pth? I don't see how this is the case, but it seems like something is not formatted/reformatted correctly from my very basic understanding of the State Dict.

@jtfl28
Copy link

jtfl28 commented Jul 10, 2023

I also got this error, changed
network.load_state_dict(load_net_clean, strict=strict)
to
network.load_state_dict(load_net_clean, strict=False)
in codes/trainer/basem_model.py

seems to be training now, but no idea what effect this will have on the end model

@jtfl28
Copy link

jtfl28 commented Jul 13, 2023

I also got this error, changed network.load_state_dict(load_net_clean, strict=strict) to network.load_state_dict(load_net_clean, strict=False) in codes/trainer/basem_model.py

seems to be training now, but no idea what effect this will have on the end model

Tried using the model that I just trained with this change, and it looks like it doesn't work.
image
I guess this repo is broken in its current state.

@BurnedP
Copy link

BurnedP commented Jul 13, 2023

I am getting the same errors, no clue as to why. I already tried reinstalling and going over the process again. It is a problem with torch, but I am unsure what the problem is exactly.

@Bonk1971
Copy link

same.

@Bonk1971
Copy link

Shout out to @FurkanGozukara he has an updated repository with the fix for this. Short answer. Update Transformers to 4.28.1
pip install transformers==4.28.1

@FurkanGozukara
Copy link

Shout out to @FurkanGozukara he has an updated repository with the fix for this. Short answer. Update Transformers to 4.28.1 pip install transformers==4.28.1

thank you so much

here the updated repo. i try to keep my tutorials working :)

https://github.com/FurkanGozukara/Stable-Diffusion/blob/main/Tutorials/Deep-Voice-Clone-Tutorial-Tortoise-TTS.md

also here my tutorial

https://youtu.be/OiMRlqcgDL0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants