Commit Graph

38 Commits (2c4e5a08e4e2d032aace256a6b6deb86fb7b907e)

Author SHA1 Message Date
uorufu ef20d28ee8
Update wildcards.py
Okay, completely rewrote and reworked it. 
Code looks.... A bit better now.

Works quite nicely.
2025-08-03 06:02:14 +02:00
uorufu 6557871ce7
Update wildcards.py
bug
2025-07-30 00:33:35 +02:00
uorufu b649b39751
Update wildcards.py
Added nested wildcards.

For example using Prompt:  `__0_wildcard_2__`  from

wildcard.txt
```
line 1
line 2: __0_wildcard_3__
line 3
```
Will have `line 2: line 3` as a prompt result.
2025-07-30 00:13:52 +02:00
uorufu 3ad1e59835
Update wildcards.py
Final update for now. 

So new features added the past couple of days:

- negative and hires prompt support.
- line locking support added. ( `__1_wildcard_12__` locks to 12th line of wildcard.txt )
- Made the script a bit easier to read? (It's still a bit of a mess, and there are plenty of efficiency improvements to be had, but it works and is pretty robust as it is now.)

Basically, it's working as I originally wanted it to now. So probably done with it.
2024-10-13 21:06:13 +02:00
uorufu bfedbd4c4f
Update wildcards.py 2024-10-13 16:28:12 +02:00
uorufu de883e46cc
Update wildcards.py 2024-10-13 16:22:41 +02:00
uorufu 796872db62
Update wildcards.py 2024-10-13 15:51:31 +02:00
uorufu c286856580
Update wildcards.py
Negative and Hires prompts functioning properly as well.

Some changes/fixes.

Note: I can't seem to fix the infotext of hires prompt. 

It does apply the correct prompt for image generation, but in a batch all images have the hires prompt of the first image in their infotext.
2024-10-13 15:47:21 +02:00
uorufu 1fa6f023f6
Update wildcards.py
Added negative prompt wildcards. 
Pretty much done with this extension for now.


Only known bug:

If you use lora's inside wildcards, it doesn't work when using "Batch Size".
It still works fine with "Batch Count" however.

This has to do with automatic1111/forge handling prompts outside of the extension. I suspect when you use "Batch Size", the prompt lora's are loaded once for all iterations. Whereas with "Batch Count" it reloads the lora's newly for each iteration.

# TLDR: Don't use "Batch Size", or don't use lora's inside of wildcards.
2024-10-09 21:43:03 +02:00
uorufu 103f5ef2d8
Update wildcards.py
Good thing I am not a professional. 
Small bug fixed.
2024-10-09 18:13:59 +02:00
uorufu 05eb10326e
Update wildcards.py
Code cleanup as it was a mess and added locking lines. (ie. __0_wildcard_14__ will lock to the 14th line in the wildcard.txt file)
2024-10-09 17:25:01 +02:00
uorufu 23c8f968c9
Update wildcards.py
small oopsy, fixed
2024-08-31 21:14:51 +02:00
uorufu 814a5d37c9
Update!
Added functionality to lock the wildcard to a specific line between 1 and 99

For example:

normal wildcard (wildcard.txt) getting random line number: __1_wildcard__
locked wildcard getting line number between 1-99, in example the fourth line in the wildcard: __1_wildcard_4__

This allows you to lock certain wildcards to a specific line for testing/batching.
2024-08-31 21:04:47 +02:00
uorufu 9ed839c354
Update wildcards.py 2024-04-08 23:10:34 +02:00
uorufu cba238a9a2
Update wildcards.py 2024-04-07 13:59:40 +02:00
uorufu 0eaaae0210
Update wildcards.py 2024-04-06 16:26:55 +01:00
uorufu cd2486db82
Update wildcards.py
Optimizations, fixes
2024-04-06 14:52:22 +01:00
uorufu b220cdad2f
Update wildcards.py
oops
2024-04-05 07:38:17 +02:00
uorufu e1b496a927
Update wildcards.py 2024-04-05 07:19:27 +02:00
uorufu a35cad863b
Update wildcards.py 2024-04-05 07:17:57 +02:00
uorufu 714989f0f0
Update wildcards.py 2024-04-05 07:13:37 +02:00
uorufu ad9a0277bb
Update wildcards.py
Massive update.
Added iterative wildcards
Fixed some issues
Also added the ability to use wildcards the old way.
(Although I recommend using tiered wildcards.)
Also added the settings into txt2img menu.
2024-04-05 06:20:03 +02:00
uorufu 0cf286664a
Update wildcards.py 2024-04-03 00:51:55 +02:00
uorufu 0be0b26633
Update wildcards.py
Keep same seed option had a bug where turning the setting off wouldn't work until a full reload.
2024-04-02 21:59:01 +02:00
uorufu fcc2f2a599
Add files via upload
Brought back seed locking option in settings, working with adetailer now.
2024-04-02 03:51:19 +02:00
uorufu 8c750ab556
Add files via upload
Updated random method to be way better. Increased wildcard tiers to 20 ( `` `__0_textfile__  --->  __19_textfile__` ``
2024-04-02 02:20:05 +02:00
uorufu 147d6297eb
Update wildcards.py 2024-04-01 22:10:42 +02:00
uorufu c34200c64b
Add files via upload
bugfixes / cleaning code
2024-04-01 21:18:24 +02:00
uorufu 4c17ff6d87
Update wildcards.py 2024-04-01 16:34:39 +02:00
AUTOMATIC c7d49e1839 remove the spam from console 2023-07-30 23:08:05 +03:00
AUTOMATIC d00d148540 add --wildcards-dir commandline argument
make wildcards work with hires fix prompts
2023-07-30 20:06:25 +03:00
AUTOMATIC 6ed81ed1ea fix variation seeds always returning same values 2022-10-29 19:18:48 +03:00
AUTOMATIC 2c0e7d7e19 added an option to use same seed for all images 2022-10-22 19:19:34 +03:00
AUTOMATIC fdefa37a0f do not show wildcard prompt parameter if it's the same 2022-10-22 15:39:50 +03:00
AUTOMATIC 9e165c8c91 bugfix: look in the correct directory when searching for wildcard 2022-10-22 15:10:04 +03:00
AUTOMATIC e541bf5af8 add a warning message for wildcards without files pt2 2022-10-22 15:06:56 +03:00
AUTOMATIC bec4dd53cd add a warning message for wildcards without files 2022-10-22 15:03:58 +03:00
AUTOMATIC df7dbcdcb8 first 2022-10-22 14:29:23 +03:00