-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
Text inversion (.bin) not producing correct results #252
Comments
Maybe you must rename the file to |
Renaming learned_embeds.bin to .pt doesn't work. It'll throw this error.
Embeddings produced with https://github.com/rinongal/textual_inversion work fine. |
I did except im not using any
|
@rabidcopy That repo saves the embeds as Currently retraining it with a shorter placeholder_token to see if that is the cause. |
Well, looks like removing the So make sure the trained placeholder name does not contain symbols, or the tokenizer will split up the name and ruin your prompt. 🤦♂️ |
@AUTOMATIC1111 Oh almost forgot, but you might still want to update the readme like I mentioned at the end of my first post |
…11#252) Co-authored-by: hlky <null>
Hey there!
My custom trained text-inversion embed does not appear to be generating the correct result here. I have tested this embed file and can confirm it works with the hugging face repo inference script (where it was trained).
https://github.com/huggingface/diffusers/tree/main/examples/textual_inversion
I re-named the embed file from
learned_embeds.bin
toeCheddar.bin
and entereCheddar
into the prompt, but I do not get anything close to the correct result.The other public embeds on this hugging face page seem to work though, so I'm at a loss ¯\_(ツ)_/¯
https://huggingface.co/sd-concepts-library
Attached my trained embed file for reference. It's a cat embedding
eCheddar.zip
Also the readme only mentions using .pt files for text inversion embeds, however this mentions we can now use .bin embeds as well.
#151
The text was updated successfully, but these errors were encountered: