Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
560994b
Update README.md
uorufu Apr 1, 2024
4c17ff6
Update wildcards.py
uorufu Apr 1, 2024
e7f153c
bugfixes
Apr 1, 2024
c34200c
Add files via upload
uorufu Apr 1, 2024
147d629
Update wildcards.py
uorufu Apr 1, 2024
b3bf0c8
Made random method -way- better, and dotted some i's.
Apr 2, 2024
8c750ab
Add files via upload
uorufu Apr 2, 2024
bf0d7d2
Update README.md
uorufu Apr 2, 2024
c79aebc
Functionality back
Apr 2, 2024
fcc2f2a
Add files via upload
uorufu Apr 2, 2024
eed69f8
Merge branch 'master' of https://github.com/uorufu/stable-diffusion-w…
Apr 2, 2024
0be0b26
Update wildcards.py
uorufu Apr 2, 2024
6be56a2
Merge branch 'master' of https://github.com/uorufu/stable-diffusion-w…
Apr 2, 2024
0cf2866
Update wildcards.py
uorufu Apr 2, 2024
7f25773
Merge branch 'master' of https://github.com/uorufu/stable-diffusion-w…
Apr 2, 2024
ad9a027
Update wildcards.py
uorufu Apr 5, 2024
f2c164b
Merge branch 'master' of https://github.com/uorufu/stable-diffusion-w…
Apr 5, 2024
ad25150
Update README.md
uorufu Apr 5, 2024
fa44a58
Update README.md
uorufu Apr 5, 2024
714989f
Update wildcards.py
uorufu Apr 5, 2024
a35cad8
Update wildcards.py
uorufu Apr 5, 2024
e1b496a
Update wildcards.py
uorufu Apr 5, 2024
b220cda
Update wildcards.py
uorufu Apr 5, 2024
cd2486d
Update wildcards.py
uorufu Apr 6, 2024
0eaaae0
Update wildcards.py
uorufu Apr 6, 2024
cba238a
Update wildcards.py
uorufu Apr 7, 2024
9ed839c
Update wildcards.py
uorufu Apr 8, 2024
814a5d3
Update!
uorufu Aug 31, 2024
23c8f96
Update wildcards.py
uorufu Aug 31, 2024
05eb103
Update wildcards.py
uorufu Oct 9, 2024
ffd25af
Update README.md
uorufu Oct 9, 2024
103f5ef
Update wildcards.py
uorufu Oct 9, 2024
1fa6f02
Update wildcards.py
uorufu Oct 9, 2024
c286856
Update wildcards.py
uorufu Oct 13, 2024
796872d
Update wildcards.py
uorufu Oct 13, 2024
de883e4
Update wildcards.py
uorufu Oct 13, 2024
bfedbd4
Update wildcards.py
uorufu Oct 13, 2024
3ad1e59
Update wildcards.py
uorufu Oct 13, 2024
5fb6715
Update README.md
uorufu Oct 13, 2024
b649b39
Update wildcards.py
uorufu Jul 29, 2025
6557871
Update wildcards.py
uorufu Jul 29, 2025
856f929
Update README.md
uorufu Jul 29, 2025
ef20d28
Update wildcards.py
uorufu Aug 3, 2025
3f02fce
Update README.md
uorufu Aug 3, 2025
62fc84d
Update README.md
uorufu Aug 3, 2025
2275588
Update README.md
uorufu Aug 3, 2025
b31d269
Add files via upload
uorufu Aug 3, 2025
fbc30df
Update README.md
uorufu Aug 3, 2025
2c4e5a0
Update README.md
uorufu Aug 3, 2025
5b222be
Update wildcards.py
uorufu Aug 3, 2025
6c53247
Update wildcards.py
uorufu Aug 6, 2025
adcc6ab
Update README.md
uorufu Aug 8, 2025
58d03fe
Update wildcards.py
uorufu Aug 8, 2025
28d44ff
Update wildcards.py
uorufu Aug 26, 2025
4855eff
Additional function for seed locking + some fixes
uorufu Nov 14, 2025
5d183ef
minor
uorufu Nov 14, 2025
f966813
Update README title and formatting
uorufu Nov 19, 2025
4834da1
Update wildcards.py
uorufu Dec 30, 2025
3124cb2
Refactor WildcardsScript for improved clarity
uorufu Jun 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
# Wildcards
An extension version of a script from https://github.com/jtkelm2/stable-diffusion-webui-1/blob/main/scripts/wildcards.py
## Wildcards with Adetailer Support (Forge)

Allows you to use `__name__` syntax in your prompt to get a random line from a file named `name.txt` in the wildcards directory.
#### Supports:
* ***All Prompts***: Positive \ Negative \ HR Postive \ HR Negative \ Adetailer Positive \ Adetailer Negative
* ***Nested Wildcards*** inside of wildcard text files. (ie. hair.txt line 1: `__20_hairstyle__ __21_haircolor__ hair` makes for a cleaner looking prompt where you only need one wildcard. `__0_hair__`. Be careful when nesting a wildcard inside of itself.)

## Install
To install from webui, go to `Extensions -> Install from URL`, paste `https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards.git`
into URL field, and press Install.
#### Features
* ***Tiered Wildcards*** that share the same random generation based on the seed. (ie. `__0_wildcard__` up to `__99_wildcard__`)
* ***Iterative wildcards*** that go through wildcard text files line by line in a batch. (ie. `__$_wildcard__`)
* ***Locking wildcards*** to specific lines. (ie. `__0_wildcard_9__`/`__wildcard_9__` in which in all cases the ninth line from the wildcard will be chosen. for `__$_wildcard_9__`, it will lock to the ninth line when generating a single image, but in a batch it will start to iterate starting from that line instead.)
* Depreciated vanilla use. (ie. `__wildcard__` completely random, remaking the same seed will never be the same, haha.)
#### Menu
* Locking random seed generation to a specific seed.
* Changing inner and outer separators and iterative symbol, for if you have compatibility issues.
<img width="1740" height="334" alt="wcad" src="https://github.com/user-attachments/assets/72c49e9c-dc1c-4e55-87b7-e0bc956266a5" />

#### Tiered Wildcards: `__0_wildcard__` up to `__99_wildcard__`
* The number represents a linked random seed generation. So `__0_wildcard__` will output the same result in any prompt. As long as the wildcards have the same number of lines, can link different wildcards with each other. (ie. `__5_one__` and `__5_two__` where one.txt and two.txt both have 50 lines of text will always pick the same line result.

## Install manually
Alternatively, to install by hand:
#### Incompatibility:
- Do not use `_`character in wildcard txt file names. (or whichever INNER separator you input in the menu, the inner separator will conflict with any instances of it in wildcard text file names.)
- Do not use `__` anywhere else in the prompt. (or whichever OUTER separator you input in the menu, the outer separator will conflict with any instances of it in the prompt text.)
- Does not work properly with Batch Size. Use Batch Count instead when making batches.

#### Install
To install from webui, go to `Extensions -> Install from URL`, paste `https://github.com/uorufu/stable-diffusion-webui-wildcards-adetailer`
into URL field, and press Install.

From your base `stable-diffusion-webui` directory, run the following command to install:
```
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards extensions/stable-diffusion-webui-wildcards
```
![Screenshot](https://raw.githubusercontent.com/uorufu/stable-diffusion-webui-wildcards-adetailer/refs/heads/master/ss.png)

Then restart the webui.
Loading