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

KeyError: 'cond_stage_model.transformer.text_model.embeddings.token_embedding.weight' #51

Open
Carlyx opened this issue Mar 25, 2023 · 2 comments

Comments

@Carlyx
Copy link

Carlyx commented Mar 25, 2023

token_weights = st["cond_stage_model.transformer.text_model.embeddings.token_embedding.weight"]

And I run :

bash scripts/finetune_real.sh "cat" data/cat real_reg/samples_cat  cat finetune_addtoken.yaml delta_cat.ckpt
@Carlyx
Copy link
Author

Carlyx commented Mar 25, 2023

And these are keys of st:
微信截图_20230325211709

@nupurkmr9
Copy link
Collaborator

Hi, as we fine-tune the pretrained stable diffusion checkpoint. The following below commands should work:

wget https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt 
bash scripts/finetune_real.sh "cat" data/cat real_reg/samples_cat  cat finetune_addtoken.yaml sd-v1-4.ckpt

Thanks.

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

2 participants