You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
This extension is fantastic for working with a large amount of trained models, but I was wondering if it would be possible to have a mode that replaces some trigger word with the pre-set keyword for a model. For example:
A photo of $trigger on a scenic mountaintop
or
A charcoal drawing of an army of ducks following $trigger with a pan flute
would replace $trigger with whatever keyword was associated with the model. This way the keyword could come anywhere in the prompt rather than always being pre/appended.
I naively think this could be as simple as replacing:
if keyword_placement.startswith('keyword'):
arr.append(prompt)
else:
arr.insert(0, prompt)
with something like
trigger = 'xyz'
if keyword_placement.startswith('keyword'):
arr.append(prompt)
elif 'replace' in keyword_placement:
arr = prompt.replace(trigger, ''.join(arr))
else:
arr.insert(0, prompt)
and the relevant menu options, but I may be missing something.
Thanks!
The text was updated successfully, but these errors were encountered:
Thank you. that's a very good idea.
I'll think about the implementation.
Any suggestion for the trigger word? It should not interfere with other extensions.
I also want to use "keyword" rather than "trigger" because of the extension name.
Hello,
This extension is fantastic for working with a large amount of trained models, but I was wondering if it would be possible to have a mode that replaces some trigger word with the pre-set keyword for a model. For example:
A photo of $trigger on a scenic mountaintop
or
A charcoal drawing of an army of ducks following $trigger with a pan flute
would replace $trigger with whatever keyword was associated with the model. This way the keyword could come anywhere in the prompt rather than always being pre/appended.
I naively think this could be as simple as replacing:
with something like
and the relevant menu options, but I may be missing something.
Thanks!
The text was updated successfully, but these errors were encountered: