Stable-textual-inversion_win icon indicating copy to clipboard operation
Stable-textual-inversion_win copied to clipboard

Broken? embeddings in other forks

Open specblades opened this issue 2 years ago • 2 comments

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.

specblades avatar Sep 20 '22 12:09 specblades

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

GucciFlipFlops1917 avatar Sep 20 '22 17:09 GucciFlipFlops1917

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

CodeExplode avatar Sep 20 '22 20:09 CodeExplode