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

Include wild cards in save folder structure or file name #411

Open
sjdevries opened this issue Apr 29, 2023 · 1 comment
Open

Include wild cards in save folder structure or file name #411

sjdevries opened this issue Apr 29, 2023 · 1 comment

Comments

@sjdevries
Copy link

Firstly, thank you for this really awesome plugin.

An enhancement feature that I think would be pretty awesome for combinatorial generation would be to save the images in directories based on the wild cards in the prompts.

For example if you used __jumbo/people/nationalities/australasia__ in the prompt, and generated batches of 4. It would put 4 images in each of the following folders:
Australian/
New Zealander/
Norfolk Islander/

For handling multiple wild cards you could have the option of character delimited appending of the wild card values, or using sub-folders.

Example:

__jumbo/people/nationalities/australasia__
__jumbo/appearance/haircolour__

Using " - " as the delimiter:
Australian - Auburn/
Australian - Black/
Australian - Blond/ ...

Using sub-folders:
Australian/Auburn/
Australian/Black/
Australian/Blond/ ...

Another nice option would be a batch name for that entire combinatorial batch. So you could make a batch named "landscapes" with __seasons__ and __terrain__ wild cards to generate images sorted appropriately:
landscapes/summer/mountains/image#
landscapes/winter/hills/image#
landscapes/fall/forest/image#
... etc.

I'm not certain how difficult it is to add patterns to the save options. Something like:
[batch_name] - base folder for the batch to go into
[wild_cards] - makes sub folders for wild cards in order of appearance in prompt
[wild_cards_delimited] - makes folders with wild cards in order of appearance separated by a delimiter

I feel like this would be more useful than the current options for adding the entire prompt or a part of it to the image name or folder name.

@adieyal
Copy link
Owner

adieyal commented May 23, 2023

I think this might be out of scope for the extension. DP focuses on prompt manipulation, not determining where generated images are placed. If I understand your request correctly, another extension would be better suited to dynamically determining where to store outputs, perhaps in cooperation with dynamicprompts through global variables (see #431)

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

No branches or pull requests

2 participants