InvokeAI/ldm/modules
Lincoln Stein bc18a94d8c add ability to retrieve current list of embedding trigger strings
This PR adds a new attributer to ldm.generate, `embedding_trigger_strings`:

```
gen = Generate(...)
strings = gen.embedding_trigger_strings
strings = gen.embedding_trigger_strings()
```

The trigger strings will change when the model is updated to show only
those strings which are compatible with the current
model. Dynamically-downloaded triggers from the HF Concepts Library
will only show up after they are used for the first time. However, the
full list of concepts available for download can be retrieved
programatically like this:

```
from ldm.invoke.concepts_lib import HuggingFAceConceptsLibrary
concepts = HuggingFaceConceptsLibrary()
trigger_strings = concepts.list_concepts()
```
2023-02-13 14:11:36 -05:00
..
diffusionmodules Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
distributions prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
encoders Merge branch 'main' into fix/sd2-padding-token 2023-01-21 13:11:02 -08:00
image_degradation Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00: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 use 🧨diffusers model (#1583) 2023-01-15 09:22:46 -05: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 use 🧨diffusers model (#1583) 2023-01-15 09:22:46 -05:00
prompt_to_embeddings_converter.py fix: use pad_token for padding 2023-01-20 19:25:20 -08:00
textual_inversion_manager.py add ability to retrieve current list of embedding trigger strings 2023-02-13 14:11: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