Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaped Character | #482

Open
uwidev opened this issue May 30, 2023 · 4 comments
Open

Escaped Character | #482

uwidev opened this issue May 30, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@uwidev
Copy link

uwidev commented May 30, 2023

I'm not too sure if this would be worth implementing, but a way to escape the pipe (|) character.

For my case, I was training a lora with the |_| tag, further explained at this here danbooru wiki. Since | is what separates tags with {}, I can't actually use this tag as a wildcard.

edit - fixed link

@uwidev
Copy link
Author

uwidev commented May 30, 2023

It seems that |_| works when the tag is a text file, but when it's in the UI {blue eyes|black eyes|\|_\|} it can't parse it.

I think for now, the wildcard text file should be sufficient. Not too sure if escaped characters would still be a feature though.

@adieyal adieyal added the enhancement New feature or request label May 31, 2023
@adieyal
Copy link
Owner

adieyal commented May 31, 2023

We may implement it in future. It has come up a few times, but for the moment it's low priority.

@Targren
Copy link

Targren commented Nov 17, 2023

Another use case for this would be being able to use prompt editing in combinatorial generations.

E.g. Since prompting for "graying hair" usually just gives gray hair and "salt and pepper hair" gives nightmare fuel, I've found I get the best results with "[ black | gray ] hair " type constructs, but I can't use that in a "{ blonde | brunette | ginger | [black | gray]} hair" prompt.

Just another case where it would be useful.

@Number6UK
Copy link

I was just looking for a way to escape { and }

I'm trying out the https://github.com/Haoming02/sd-forge-couple extension and ran into a conflict with Dynamic Prompts, which another user has also reported here: Haoming02/sd-forge-couple#73

I thought oh, if I could escape { and } then perhaps Dynamic Prompts would just pass it through and it might be processed by sd-forge-couple as normal?

It would be very useful if it was possible to define a custom escape character/sequence (possibly use the backtick as the default?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants