Commit Graph

69 Commits

Author SHA1 Message Date
Travis Geiselbrecht bba306d414 fix: remove callbacks properly in remove_callbacks_for_function()
Like remove_current_script_callback just before, also remove from the
ordered_callbacks_map to keep the callback map and ordered callback map
in sync.
2024-04-15 21:10:11 -07:00
v0xie a669b8a6bc fix: remove script callbacks in ordered_callbacks_map 2024-04-01 12:51:09 -07:00
AUTOMATIC1111 611faaddef change the default name for callback from None to "unnamed" 2024-03-17 23:19:24 +03:00
AUTOMATIC1111 3670b4f49e lint 2024-03-10 15:16:12 +03:00
AUTOMATIC1111 2f55d669a2 add support for specifying callback order in metadata 2024-03-10 15:14:04 +03:00
AUTOMATIC1111 7e5e67330b add UI for reordering callbacks 2024-03-10 14:09:48 +03:00
AUTOMATIC1111 0411eced89 add names to callbacks 2024-03-10 07:52:57 +03:00
AUTOMATIC1111 b7f45e67dc add before_token_counter callback and use it for prompt comments 2024-02-11 12:56:53 +03:00
Chengsong Zhang 37906e429a
make denoiser None by default 2024-01-07 20:17:42 -06:00
continue-revolution f56cebf5ba add self instead 2024-01-07 12:35:35 -06:00
continue-revolution 425507bd10 add p to cfgdenoiserparams 2024-01-07 10:25:01 -06:00
AUTOMATIC1111 924642331b
Merge pull request #12846 from a666/deprecated-types
Fix some deprecated types
2023-09-09 10:31:56 +03:00
catboxanon 549b475be9 Add noisy latent to ExtraNoiseParams for callback 2023-08-29 14:22:04 -04:00
a666 b6c1a1bbbf Fix some deprecated types 2023-08-29 00:54:57 -06:00
catboxanon 254be4eeb2 Add extra noise callback 2023-08-16 21:45:19 -04:00
Aarni Koskela 51864790fd Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressions 2023-06-02 15:07:10 +03:00
AUTOMATIC a5e851028e add hiding and a colspans to startup profile table 2023-06-01 10:01:42 +03:00
AUTOMATIC b3390a9840 Merge branch 'dev' into startup-profile 2023-06-01 08:42:50 +03:00
AUTOMATIC 05933840f0 rename print_error to report, use it with together with package name 2023-05-31 19:56:37 +03:00
Aarni Koskela 00dfe27f59 Add & use modules.errors.print_error where currently printing exception info by hand 2023-05-29 09:17:30 +03:00
AUTOMATIC 339b531570 custom unet support 2023-05-27 15:47:33 +03:00
AUTOMATIC 0cc05fc492 work on startup profile display 2023-05-21 00:41:41 +03:00
AUTOMATIC 2582a0fd3b make it possible for scripts to add cross attention optimizations
add UI selection for cross attention optimization
2023-05-18 22:48:28 +03:00
AUTOMATIC 005849331e remove output_altered flag from AfterCFGCallbackParams 2023-05-14 08:15:22 +03:00
Sakura-Luna 8abfc95013
Update script_callbacks.py 2023-05-14 12:56:34 +08:00
catboxanon 3078001439 Add/modify CFG callbacks
Required by self-attn guidance extension
https://github.com/ashen-sensored/sd_webui_SAG
2023-05-14 01:49:41 +00:00
Aarni Koskela 49a55b410b Autofix Ruff W (not W605) (mostly whitespace) 2023-05-11 20:29:11 +03:00
AUTOMATIC a95dc02535 remove unwanted changes from #8789 2023-04-29 19:05:43 +03:00
AUTOMATIC1111 f96e6fbd0c
Merge pull request #8789 from Rucadi/master
Add polling and reload callback for extensions.
2023-04-29 19:03:10 +03:00
Rucadi a80d7d090c
Update script_callbacks.py 2023-03-21 18:47:05 +01:00
AUTOMATIC 7f2005127f rename CFGDenoiserParams fields for #8064 2023-03-11 14:52:29 +03:00
laksjdjf 534cf60afb
Update script_callbacks.py 2023-02-24 14:26:55 +09:00
laksjdjf 327186b484
Update script_callbacks.py 2023-02-24 14:03:46 +09:00
opparco b78c5e87ba Add cfg_denoised_callback 2023-02-11 11:18:38 +09:00
rucadi 5ca4230524 Merge branch 'master' of https://github.com/Rucadi/stable-diffusion-webui-polling 2023-02-02 20:12:08 +01:00
rucadi eb5eb8aa11 Add a callback called before reloading the server 2023-02-02 20:10:47 +01:00
rucadi 3662a274e2 Add polling callback 2023-02-02 20:10:47 +01:00
AUTOMATIC 855b9e3d1c Lora support!
update readme to reflect some recent changes
2023-01-21 16:15:53 +03:00
space-nuko 6c88eaed4f Add script callback for fixing infotext parameters 2023-01-12 13:50:09 -08:00
AUTOMATIC 65ed4421e6 add callback for when the script is unloaded 2023-01-06 13:55:50 +03:00
AUTOMATIC e672cfb074 rework of callback for #6094 2023-01-01 18:37:55 +03:00
AlUlkesh 5f12b23b8b Adding image numbers on grids
New grid option in settings enables adding of image numbers on grids. This makes identifying the images, especially in larger batches, much easier.

Revert "Adding image numbers on grids"

This reverts commit 3530c283b4b1d3a3cab40efbffe4cf2697938b6f.

Implements Callback for image grid loop

Necessary to make "Add image's number to its picture in the grid" extension possible.
2023-01-01 11:21:50 +01:00
rucadi 0c8825b2be Add a callback called before reloading the server 2022-12-16 18:31:20 +01:00
rucadi 1742c04bab Add polling callback 2022-12-16 17:10:13 +01:00
AUTOMATIC 3596af0749 Add API for scripts to add elements anywhere in UI. 2022-11-19 19:10:28 +03:00
AUTOMATIC 1610b32584 add callback for creating a tab in train UI 2022-11-08 08:38:10 +03:00
DepFA 5844ef8a9a
remove private underscore indicator 2022-11-04 16:02:25 +00:00
DepFA c3cd0d7a86
Should be one underscore for module privates not two 2022-11-04 12:19:16 +00:00
DepFA c07f1d0d78
Convert callbacks into a private map, add utility functions for removing callbacks 2022-11-02 16:59:10 +00:00
Maiko Tan dd2108fdac
fix: should invoke callback as well in api only mode 2022-11-02 15:04:35 +08:00