InvokeAI/ldm/modules
blessedcoolant 69cc0993f8
Add Embedding Parsing (#1973)
* Add Embedding Parsing

* Add Embedding Parsing

* Return token_dim in embedding_info

* fixes to handle other variants

1. Handle the case of a .bin file being mislabeled .pt (seen in the
wild at https://cyberes.github.io/stable-diffusion-textual-inversion-models/)

2. Handle the "broken" .pt files reported by https://github.com/invoke-ai/InvokeAI/issues/1829

3. When token name is not available, use the basename of the pt or bin file rather than the
   whole path.

fixes #1829

* remove whitespace

Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
2022-12-15 17:26:36 -05:00
..
diffusionmodules cleanup 2022-10-21 15:07:11 +02:00
distributions prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
encoders Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
image_degradation prevent crash that occurs when changing models.yaml on windows systems 2022-11-25 16:59:31 -05:00
losses prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
__init__.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
attention.py Save and display per-token attention maps (#1866) 2022-12-10 15:57:41 +01:00
ema.py prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
embedding_manager.py Add Embedding Parsing (#1973) 2022-12-15 17:26:36 -05:00
x_transformer.py prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00