InvokeAI/ldm
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
..
data Textual Inversion for M1 2022-09-27 01:39:17 +02:00
invoke add ability to retrieve current list of embedding trigger strings 2023-02-13 14:11:36 -05:00
models rename override/restore methods to better reflect what they actually do 2023-01-30 16:23:44 +01:00
modules add ability to retrieve current list of embedding trigger strings 2023-02-13 14:11:36 -05:00
__init__.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
generate.py add ability to retrieve current list of embedding trigger strings 2023-02-13 14:11:36 -05:00
lr_scheduler.py prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
simplet2i.py Squashed commit of the following: 2022-09-12 14:31:48 -04:00
util.py Allow multiple models to be imported by passing a directory. 2023-02-05 08:11:02 -08:00