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

Broken? embeddings in other forks #29

Open
specblades opened this issue Sep 20, 2022 · 2 comments
Open

Broken? embeddings in other forks #29

specblades opened this issue Sep 20, 2022 · 2 comments

Comments

@specblades
Copy link

specblades commented Sep 20, 2022

Hi!
I trained embeddings with single placeholder and single init word, 11 pictures, 12k iterations and no --init_word in cell. Its going nice. Pictures in train folder are good. txt2img demo in your colab works well, but. When i try to use embeddings in another forks, it wont produce me a similar result. I read a bunch of threads but cant find answer. It rly doing nothing and i dont know why. Can you advise something?

For example in this repo - https://github.com/AUTOMATIC1111/stable-diffusion-webui

UPD.
Apparently, if you do not use the line --init_word "XX" in the cell, then embedding will not work in other forks.

@GucciFlipFlops1917
Copy link

I think the lstein repo has a more readily interconvertible output set for textual inversion, not requiring that line you cited.

@CodeExplode
Copy link

CodeExplode commented Sep 20, 2022

Both repos appear to save embeddings in the exact same format, with only minor differences like using quotation marks vs apostrophes for string declarations

https://github.com/nicolai256/Stable-textual-inversion_win/blob/main/ldm/modules/embedding_manager.py#L131

https://github.com/invoke-ai/InvokeAI/blob/main/ldm/modules/embedding_manager.py#L210

They both also only override the init_word from the yaml if it's in the command line the same way:

https://github.com/nicolai256/Stable-textual-inversion_win/blob/main/main.py

https://github.com/invoke-ai/InvokeAI/blob/main/main.py#L721

Is it possible that you deleted the initializer words setting in the settings yaml specblades?

https://github.com/nicolai256/Stable-textual-inversion_win/blob/main/configs/stable-diffusion/v1-finetune.yaml#L27

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

3 participants