mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
bc18a94d8c
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() ``` |
||
---|---|---|
.. | ||
ckpt_generator | ||
config | ||
generator | ||
restoration | ||
training | ||
__init__.py | ||
_version.py | ||
args.py | ||
ckpt_to_diffuser.py | ||
CLI.py | ||
concepts_lib.py | ||
conditioning.py | ||
devices.py | ||
globals.py | ||
image_util.py | ||
log.py | ||
merge_diffusers.py | ||
model_manager.py | ||
patchmatch.py | ||
pngwriter.py | ||
prompt_parser.py | ||
readline.py | ||
seamless.py | ||
server_legacy.py | ||
server.py | ||
txt2mask.py |