mcmonkeyprojects / sd-infinity-grid-generator-script

Infinite-Axis Grid Generator for Stable Diffusion!
MIT License
178 stars 24 forks source link

Prompt Replacement: Replace Entire comma'ed Phrase with ""--works in xyz plot! #129

Closed rafstahelin closed 5 months ago

rafstahelin commented 5 months ago

The S/R method in xyz plot native script allows me to run an entire string containing "comma's", as long as the string is contained in " " and a comma.

Here's an example: "natural photo of t1k0 woman, closeup, wet hair, bikini top, standing in bedroom, glass door, pool in background, toys, books, mirror, fisheye wideangle lens, high fidelity, small breasts, portrait, zoom, masterpiece","photo of t1k0 woman, fisheye portrait from low angle, in a amazon jungle, bodycon, bikini, sexy, jewellery"

Unusual, but proven to work in Forge xyz plot.

Errors though in Infinite Grid. Is there a code to change to allow this behavior to work?

thanks

mcmonkey4eva commented 5 months ago

In infinite grid generator and swarm, use || to separate text that contains commas, which was added for precisely this reason (and intended to be a bit less of a mess than the old x/y plot script using a csv parser)

Note btw this is shown in the readme https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script?tab=readme-ov-file#basic-usage

rafstahelin commented 5 months ago

My bad. Didn't read the whole thing!! Thanks.