Closed Corgano closed 1 year ago
use ||
instead of ,
.
if ||
is present, commas are ignored.
This is in the readme here https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script#basic-usage and here https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script#1-grid-definition-file
Thank You so much! It would be fantastic if this was added in the documentation in the info next to the prompt replacement feature, completely missed it.
On Wed, Jun 7, 2023 at 9:45 AM mcmonkey4eva @.***> wrote:
Closed #66 https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script/issues/66 as completed.
— Reply to this email directly, view it on GitHub https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script/issues/66#event-9461140510, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGSARIQMWAPWN4SLTTHEXLXKCOYJANCNFSM6AAAAAAY5ZHJJA . You are receiving this because you authored the thread.Message ID: <mcmonkeyprojects/sd-infinity-grid-generator-script/issue/66/issue_event/9461140510 @github.com>
I'm trying to use the Prompt Replacement feature to iterate through multiple poses, however Im racking my brain how to have it replaced one term with multiple terms
For instance I can have a prompt
masterpeice, well drawn, cat ears, cat girl, holding itemhere
and have it replaced item here with one thing easilyItemhere=apples, itemhere=a harpoon, itemhere=her tits
The result is as you expect, 3 images with the anime girl holding the 3 different itemsThe issue is in some replacements, you want to replace with a set of terms. Same prompt, consider the following replacements
itemhere=apples, itemhere=(a harpoon, scuba mask, flippers), itemhere=(her friends tits, couple, duo, embarrassed)
Given the item being held there are additional terms that also make sense to be included, but in other cases no additional terms are desired.Right now it breaks it at EVERY comma, garbling the intended result. Ideally there would be a way to escape the commas so that they are not broken apart when being used as a replacement string, but also replaced by regular commas when being included in the end prompt. I can't find a way to do this and even tried adding in my own solution (adding a line to convert a different symbol like ; into , when doing the replacement) but nothing I try works. Any ideas?