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

Updated fork #39

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 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
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
52 changes: 39 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
# Wildcards
An extension version of a script from https://github.com/jtkelm2/stable-diffusion-webui-1/blob/main/scripts/wildcards.py
#### Wildcards Adetailer fix

Allows you to use `__name__` syntax in your prompt to get a random line from a file named `name.txt` in the wildcards directory.
A personal fork I made to make wildcards extension work better with Adetailer.

## 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.
# Final update (probably)

Added negative and hires prompt support




# Update

locking a wildcard: `__0_wildcard_12__` will lock to the 12th line of the wildcard.txt file.

Cleaned up code a bit as it was a bit of a mess.

# Upate:

## Install manually
Alternatively, to install by hand:
-Added the functionality back to use normal wildcards `__wildcard__` next to tiered wild cards `__0_wildcard__` upto `__19_wildcard__`.

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
```
-Added functionality for iterative wildcards that go through text files line by line. `__$_wildcard__`

Then restart the webui.
-Fixed a bunch of bugs and made it work a lot better, also added settings to txt2img UI instead of inside settings menu for seed locking.

## Changes from main extension:

1. Now, order does not matter and you can add any wildcard to adetailer prompt without it generating a different item.

2. Also, I have made it so there can be tiers. So you can link certain wildcard txt files to each other so all of them will grab the same line number in the TXT.
The proper use for this fork is by using `__0_name__` up to `__9_name__` to pull from **name.txt** in the wildcards directory. (the leading number **should not** be on the txt filename.)
Every wildcard using the same leading number will use the same random generation (and if the txt files have an equal amount of lines, will pick the same line number.

This is great when you want to add a lengthy bit of prompt into the main prompt but only want a small part of the same prompt in adetailer prompt (Or you want to seperate lora's. Now you can just seperate them into two txt files and use the same leading number like `__0_partone__ __0_parttwo__` in your main prompt and only `__0_partone__` in adetailer. If both partone.txt and parttwo.txt have the same number of lines, they will both get the same linenumber.

3. For the best randomization, unless you need to use the same tier, it is best to use as many tiers as possible. So `__0_name__ __1_name__ __2_name__` etc. Right now the maximum amount of tiers is 20 (0 to 19), I think that is a nice amount.


Just like the main extension, make sure you use spaces at the beginning and end of newlines.


## 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.
Loading