sd-dynamic-prompts icon indicating copy to clipboard operation
sd-dynamic-prompts copied to clipboard

[Feature Request]: Custom directory path for wildcards base.

Open LLKoder opened this issue 1 year ago • 13 comments

It would be nice if user can to choose in settings the path where the wildcards database is located (+subdirrectorys).

LLKoder avatar May 25 '23 07:05 LLKoder

For the time being, you should be able to replace the wildcards/ directory with a symlink pointing elsewhere.

akx avatar May 25 '23 10:05 akx

@akx, also does this work for Windows?

LLKoder avatar May 25 '23 10:05 LLKoder

@LLKoder It should. See https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/

akx avatar May 25 '23 10:05 akx

Thanks a lot!

LLKoder avatar May 25 '23 11:05 LLKoder

mklink /d Link Target

example: mklink /d wildcards c:\automatic\extensions\sd-dynamic-prompts\wildcards will create a link wildcards in your current directory that points to c:\automatic\extensions\sd-dynamic-prompts\wildcards

(/d creates a directory link rather than a file link. Note that you can substitute /d with /j for a directory junction. Junctions are resolved server-side, rather than client-side; useful for some applications running over a network.)

brknsoul avatar May 26 '23 04:05 brknsoul

Doesn't this already work according to the documentation:

WILDCARDS: The extension looks for wildcard files in WILDCARD_DIR. The default location is /path/to/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards. It can also be manually defined in the main webui config.json under wildcard_dir. When in doubt, the help text for the extension in the webui lists the full path to WILDCARD_DIR

tscott65 avatar Jun 08 '23 23:06 tscott65

If I'm being honest I didn't know that, I found that options in Settings of WebUI and then I wrote:

It would be nice if user can to choose in settings the path where the wildcards database is located (+subdirrectorys).

I mean WebUI either.

LLKoder avatar Jun 11 '23 05:06 LLKoder

Doesn't this already work according to the documentation:

WILDCARDS: The extension looks for wildcard files in WILDCARD_DIR. The default location is /path/to/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards. It can also be manually defined in the main webui config.json under wildcard_dir. When in doubt, the help text for the extension in the webui lists the full path to WILDCARD_DIR

Don't think so, I set wild_card (upper+lower case) in config.json with multiple restart of WebUI, the path is still hardcoded to the extension one. 图片 图片

YannJun avatar Aug 11 '23 22:08 YannJun

@YannJun wildcar is not wildcard.

akx avatar Aug 14 '23 17:08 akx

@YannJun wildcar is not wildcard.

indeed, too blind to see it.

YannJun avatar Aug 14 '23 20:08 YannJun

So @YannJun did adding "wildcard_dir": "your-path" work?

clarencestephen avatar Jun 22 '24 17:06 clarencestephen