mcmonkeyprojects / sd-infinity-grid-generator-script

Infinite-Axis Grid Generator for Stable Diffusion!
MIT License
182 stars 25 forks source link

How to express square brackets in configuration YAML? #124

Closed greasyi closed 10 months ago

greasyi commented 10 months ago

I wanted to try e.g. [dog:cat:0.5] in a value for a "Prompt" axis, but square brackets denote lists in YAML. I tried escaping with \[dog:cat:0.5\] but the backslashes made it into the final prompt, which caused the prompt to "fail".

Is this a feature request, or is there already a way to accomplish this that I don't know about?

mcmonkey4eva commented 10 months ago

Just "quote" the whole line, eg:

    prompt: "some [prompt] here"