Commit Graph

2727 Commits

Author SHA1 Message Date
AUTOMATIC
5a666f3904 bump gradio to 3.27 2023-04-29 09:21:31 +03:00
AUTOMATIC
101a18fc84 bump gradio to 3.27 2023-04-29 09:17:35 +03:00
Garrett Sutula
aac478cb9d Should be "utils" 2023-04-27 21:40:16 -04:00
Garrett Sutula
ed46abea35 fix for method moved to gradio_client 2023-04-27 21:30:55 -04:00
Garrett Sutula
d1e62b2961 Improve param semantics, 2023-04-27 21:30:19 -04:00
Garrett Sutula
43186ad084 Add tls_verify arg for use with self-signed certs 2023-04-27 20:29:21 -04:00
darnell8
bb426de1cd Fix CLIP FileExistsError 2023-04-25 22:53:06 +08:00
catalpaaa
b2f6e0704e add subpath support 2023-04-25 07:27:24 -07:00
missionfloyd
0e071ae504 Custom delimiters 2023-04-25 08:08:57 -06:00
dennissheng
bbc7a778d8 fix ui img2img scripts 2023-04-24 17:36:16 +08:00
Sakura-Luna
eff00413ae Refresh bug fix 2023-04-21 12:34:38 +08:00
Sakura-Luna
988dd02632 Add img2img refreshed correctly 2023-04-20 15:09:19 +08:00
Sakura-Luna
2c24e09dfc Fix gallery not being refreshed correctly 2023-04-20 14:53:37 +08:00
AdjointOperator
dec5cdd9b8
add tiled inference support for ScuNET 2023-04-19 15:35:50 +08:00
Deciare
d40e44ade4 Option to use CPU for random number generation.
Makes a given manual seed generate the same images across different
platforms, independently of the GPU architecture in use.

Fixes #9613.
2023-04-18 23:27:46 -04:00
missionfloyd
f4b332f041 Add "None" option to extra networks dropdowns 2023-04-18 17:01:46 -06:00
Matěj Račinský
eddcdb8061 adds label to buttons to make them hide 2023-04-17 23:48:28 +02:00
siutin
3e5b3c79e4 replace with #wrap_session_call 2023-04-17 13:53:41 +08:00
catboxanon
9de7298898
Update processing.py 2023-04-16 21:06:37 -04:00
catboxanon
234fa9a57d
Update shared.py 2023-04-16 21:06:22 -04:00
catboxanon
4d0c816303
Modify step multiplier flow 2023-04-16 20:39:45 -04:00
catboxanon
81b276a1ea
Add second order samplers compat option 2023-04-16 20:39:18 -04:00
catboxanon
56f8a6b081
Fix sampler schedules with step multiplier 2023-04-16 20:34:52 -04:00
siutin
984970068c multi users support 2023-04-17 01:06:28 +08:00
File_xor
acbec22554 Add self argument that is mandatory to [clip_skip] filename pattern. 2023-04-16 17:14:11 +09:00
File_xor
596556162e Add filename pattern for CLIP_stop_at_last_layers. 2023-04-16 16:49:21 +09:00
tqwuliao
02e3518807 Add new FilenameGenerator [hasprompt<prompt1|default><prompt2>..] 2023-04-15 23:20:08 +08:00
catboxanon
fbab3fc6d1
Only handle image mask if any option enabled 2023-04-14 17:24:55 -04:00
catboxanon
3af152d488
Fix image mask composite for weird resolutions 2023-04-14 17:17:14 -04:00
Brad Smith
dab5002c59
sort self.word_embeddings without instantiating it a new dict 2023-04-13 23:19:10 -04:00
yike5460
7c62bb2788 fix: support for default branch 2023-04-10 09:38:26 +08:00
Ilya Khadykin
c19618f370 fix(extras): fix batch image processing on 'Extras\Batch Process' tab
This change fixes an issue where an incorrect type was passed to the PIL.Image.open() function that caused the whole process to fail.

Scope of this change is limited to only batch image processing, and it shouldn't affect other functionality.
2023-04-09 21:33:09 +02:00
yike5460
1aba8d82cb feat: add branch support for extension installation 2023-04-09 22:22:43 +08:00
Brad Smith
27b9ec60e4
sort embeddings by name (case insensitive) 2023-04-08 15:58:00 -04:00
gk
d609f6030e Add [batch_number] and [generation_number] filename patterns 2023-04-07 21:04:46 +09:00
forsurefr
63a6f9b4d9
Do not save init image by default 2023-04-07 12:13:51 +03:00
For Sure
b3593d0997 Add support for saving init images in img2img 2023-04-06 19:42:26 +03:00
Andre Ubuntu
48c06af8dc Pythonic way to achieve it 2023-04-05 20:51:29 -03:00
Andre Ubuntu
52a8f286ef fix preprocess orientation 2023-04-05 20:28:00 -03:00
hitomi
539a69860b fix --realesrgan-models-path not working 2023-04-04 20:39:51 +08:00
Nathanael Santoso
3158d17ccf fixed an issue with using ngrok for other connections and also ngrok not using auth_token 2023-04-04 07:41:55 +00:00
Nathanael Santoso
2edf73b38f Improved message clarity 2023-04-04 06:57:39 +00:00
Nathanael Santoso
5ebe3b2504 Added guard clause to prevent multiple tunnel creations 2023-04-04 06:50:29 +00:00
gmasil
f7215906af
allow styles.csv to be symlinked or mounted in docker without moving the file around 2023-04-03 18:19:57 +02:00
space-nuko
fbaf6e4fd8 Namespace metadata fields 2023-04-02 21:41:23 -05:00
Pluventi
9a4e650800 Update postprocessing.py
Solution for anyone getting an error when batching on extras, even with a clean install of "stable diffusion webui"
2023-04-03 03:32:48 +02:00
space-nuko
7c016dd642 Calculate shorthash on merge if not exist 2023-04-02 19:06:39 -05:00
space-nuko
afc349c2c0 Add field for model merge type
Incase this is supported by other merge extensions
2023-04-02 18:40:33 -05:00
space-nuko
d132481058 Embed model merge metadata in .safetensors file 2023-04-02 17:41:55 -05:00
Z_nonymous
18e4ca4694 Fix #9185 2023-03-31 10:54:42 +02:00
siutin
70ab21e67d keep randomId simpler 2023-03-30 17:20:09 +08:00
siutin
90366b8d85 tool button 2023-03-30 17:20:09 +08:00
siutin
e0b58527ff use condition to wait for result 2023-03-30 17:20:09 +08:00
siutin
4242e194e4 add a button to restore the current progress 2023-03-30 17:20:09 +08:00
siutin
9407f1731a store the last generated result 2023-03-30 17:20:09 +08:00
siutin
dbca512154 add an internal API for obtaining current task id 2023-03-30 17:20:09 +08:00
devdn
44e8e9c368 fix live preview & alternate uncond guidance for better quality 2023-03-30 00:54:28 -04:00
space-nuko
3ccf6f5ae8 Add webui link 2023-03-29 19:26:52 -05:00
space-nuko
1c0544abdb Add links for commits in table, if remote is from GitHub 2023-03-29 19:21:57 -05:00
space-nuko
64bbd3bf03 Make into divs 2023-03-29 19:00:51 -05:00
space-nuko
9b1fa82981 Add filename to UI and config name to filename 2023-03-29 18:55:57 -05:00
space-nuko
f3320b802c Various UI fixes in config state tab 2023-03-29 18:35:25 -05:00
space-nuko
f22d0dde4e Better checking of extension state from Git info 2023-03-29 18:32:29 -05:00
space-nuko
ad5afcaae0 Save/restore working webui/extension configs 2023-03-29 16:55:33 -05:00
space-nuko
67955ca9e5 Make selected tab configurable with UI config 2023-03-29 13:07:12 -05:00
AUTOMATIC
22bcc7be42 attempted fix for infinite loading for settings that some people experience 2023-03-29 08:58:29 +03:00
Vespinian
70a0a11783 Changed behavior that puts the args from alwayson_script request in the script_args, so don't accidently resize the arg list if we get less arg then or default list has 2023-03-28 23:52:51 -04:00
devdn
bc90592031 increase range of negative guidance minimum sigma option 2023-03-28 20:59:31 -04:00
devdn
42082e8a32 performance increase 2023-03-28 20:56:01 -04:00
AUTOMATIC
d667fc435f add "resize by" and "resize to" tabs to img2img 2023-03-28 22:23:40 +03:00
AUTOMATIC
3856ada5cc do not add mask blur to infotext if there is no mask 2023-03-28 22:20:31 +03:00
AUTOMATIC
433b3ab701 Revert "Merge pull request #7931 from space-nuko/img2img-enhance"
This reverts commit 4268759370, reversing
changes made to 1b63afbedc.
2023-03-28 20:36:57 +03:00
AUTOMATIC1111
4268759370
Merge pull request #7931 from space-nuko/img2img-enhance
Add `Upscale by` and `Upscaler` options to img2img
2023-03-28 20:21:25 +03:00
AUTOMATIC
1b63afbedc sort hypernetworks and checkpoints by name 2023-03-28 20:03:57 +03:00
AUTOMATIC1111
daa5a83bb7
Merge pull request #9052 from space-nuko/temp-disable-extensions
Temporary disable extensions option
2023-03-28 19:42:09 +03:00
AUTOMATIC1111
f1db987e6a
Merge pull request #8958 from MrCheeze/variations-model
Add support for the unclip (Variations) models, unclip-h and unclip-l
2023-03-28 19:39:20 +03:00
space-nuko
4414d36bf6
Merge branch 'master' into img2img-enhance 2023-03-28 10:59:12 -04:00
space-nuko
082613036a
Merge branch 'master' into remove-watermark-option 2023-03-27 16:26:23 -05:00
space-nuko
fc8e1008ea Make disable configurable between builtin/extra extensions 2023-03-27 12:44:49 -04:00
space-nuko
2a4d3d2124 Add temporary "disable all extensions" option for debugging use 2023-03-27 12:04:45 -04:00
AUTOMATIC
77f9db3b08 serve css as independent files 2023-03-27 12:59:12 +03:00
AUTOMATIC
9e82896d5f remove an extra unneeded row in outputs 2023-03-27 10:20:01 +03:00
AUTOMATIC
5fcd4bfa3d do not read extensions' git stuff at startup 2023-03-27 10:02:30 +03:00
AUTOMATIC1111
c7daba71de
Merge pull request #8669 from Vespinian/fix-api-running-unwanted_scripts
Fix for API running unwanted alwayson scripts
2023-03-27 08:11:34 +03:00
AUTOMATIC1111
769def1e41
Merge pull request #8944 from SirFrags/extra_save_geninfo
Transfer generation parameters to previews
2023-03-27 08:06:54 +03:00
AUTOMATIC
a70ae917ea update button pressed down style for #8569 2023-03-27 08:05:55 +03:00
AUTOMATIC1111
a7d6fc3b42
Merge pull request #8569 from missionfloyd/extra-networks-toggle
Make extra networks button togglable
2023-03-27 07:35:39 +03:00
AUTOMATIC1111
c5e1efb4ca
Merge pull request #8525 from bluelovers/pr/sort-001
feat: try sort as ignore-case
2023-03-27 07:34:18 +03:00
AUTOMATIC
3d09b4e99f remove -y, bring back -f 2023-03-27 07:12:40 +03:00
AUTOMATIC
ff0d97c1e3 bring back -y 2023-03-27 07:11:39 +03:00
AUTOMATIC1111
3b5a3fab91
Merge pull request #8943 from space-nuko/fix-accordion-padding
Fix padding on accordion/dropdown list elements
2023-03-27 06:45:39 +03:00
MrCheeze
1f08600345 overwrite xformers in the unclip model config if not available 2023-03-26 16:55:29 -04:00
AUTOMATIC
4c1ad743e3 for img2img, use None as upscaler instead of erroring out if the desired upscaler is not found 2023-03-26 11:01:32 +03:00
MrCheeze
8a34671fe9 Add support for the Variations models (unclip-h and unclip-l) 2023-03-25 21:03:07 -04:00
bluelovers
d64ff4248b remove changes in textual_inversion.py 2023-03-26 06:15:09 +08:00
missionfloyd
6f18c9b13f
Merge branch 'master' into extra-networks-toggle 2023-03-25 14:51:25 -06:00
space-nuko
c9647c8d23 Support Gradio's theme API 2023-03-25 16:11:41 -04:00
SirFrags
abc4d3a693
preview replace save params 2023-03-25 15:59:50 -04:00
space-nuko
d3b188c82d Fix padding on accordion/dropdown list elements 2023-03-25 15:52:06 -04:00
space-nuko
c5f9f7c237 Use .success() callback on img2img preview inputs change 2023-03-25 14:26:36 -04:00
Vespinian
23f6dfce4c Reworked this PR, now we have 2 default arg list (one for each tab) that will be initialized on the first api request and then reused afterwards. The init_script_args copies the corresponding default list and applies the modifications asked by the api request. 2023-03-25 14:16:35 -04:00
Vespinian
f371579571 Revert "Made copies of global scriptrunners, now we clear the copied scriptrunner of alwayson_scripts and only add back the ones that that were requested"
This reverts commit dfa258de5f.
2023-03-25 14:11:46 -04:00
Vespinian
db602b100e Revert "Comment fix"
This reverts commit f04bd037a5.
2023-03-25 14:11:38 -04:00
space-nuko
7ea5d395c4 Add upscaler to img2img 2023-03-25 12:52:43 -04:00
space-nuko
68999d0b15 Add upscale slider to img2img 2023-03-25 12:52:35 -04:00
kurilee
993c11549c
Merge branch 'AUTOMATIC1111:master' into master 2023-03-25 22:47:05 +08:00
kurilee
b2fc7dba2e Add option "keep original size" to textual inversion images preprocess 2023-03-25 22:45:41 +08:00
AUTOMATIC
69eb2a9ee8 add missing extensions_dir, extensions_builtin_dir to extensions.py 2023-03-25 17:39:53 +03:00
AUTOMATIC1111
9b2dcb04bc
Merge branch 'master' into master 2023-03-25 16:15:29 +03:00
AUTOMATIC
8c801362b4 split commandline args into its own file
make launch.py use the same command line argument parser as the main program
2023-03-25 16:05:25 +03:00
Andrey
3ec7e19f2b Split history: mv temp modules/shared.py 2023-03-25 14:30:50 +03:00
Andrey
a5cef4932f Split history: mv modules/shared.py modules/cmd_args.py 2023-03-25 14:30:49 +03:00
AUTOMATIC1111
6b00d876f7
Merge pull request #7936 from EllangoK/master
Custom height and width settings for Extra Networks cards
2023-03-25 13:01:49 +03:00
AUTOMATIC1111
a03536f213
Merge pull request #8662 from vladmandic/api-handler
api error handler
2023-03-25 12:47:32 +03:00
AUTOMATIC
616cc13b6b update overflow-wrap: break-word; for gradio 3.23 2023-03-25 12:43:14 +03:00
Karun
63a2f8d822
Merge branch 'master' into master 2023-03-25 05:12:55 -04:00
AUTOMATIC1111
8dbe793af5
Merge branch 'master' into extra-network-info 2023-03-25 12:08:24 +03:00
AUTOMATIC1111
956ed9a737
Merge pull request #8780 from Brawlence/master
Unload and re-load checkpoint to VRAM on request (API & Manual)
2023-03-25 12:03:26 +03:00
AUTOMATIC1111
8d2c582e3e
Merge pull request #8797 from ArrowM/master
Move `load_file_from_url` import
2023-03-25 11:34:07 +03:00
AUTOMATIC1111
c0a7ff8055
Merge pull request #8803 from mlhub-action/fix_scripts_load_order
Fix scripts load order
2023-03-25 11:23:41 +03:00
AUTOMATIC1111
90410e212f
Merge pull request #8814 from catboxanon/inpaint-mask
Add ability to display and/or save inpainting mask and masked composite
2023-03-25 11:21:45 +03:00
AUTOMATIC1111
e8bbc344c3
Merge pull request #8824 from zimkjh/fix-variable-typo
fix variable typo
2023-03-25 11:04:46 +03:00
AUTOMATIC1111
9d2551d593
Merge pull request #8647 from Tps-F/add_submodule
Support git submodule for extension and Fix Windows PermissionError
2023-03-25 11:02:41 +03:00
AUTOMATIC
9ed04e759d use HTTP request to fetch metadata for Lora cards instead of including it into the main page 2023-03-25 10:11:04 +03:00
AUTOMATIC1111
724a63714d
Merge pull request #8878 from butaixianran/master
Fix None type error for TI module
2023-03-25 09:20:43 +03:00
AUTOMATIC1111
89ea746f7c
Merge pull request #8866 from brkirch/mps-torch-2-0-nn-linear-workarounds
Add PyTorch 2.0 support for macOS, fix image generation on macOS 13.2.X
2023-03-25 09:17:09 +03:00
AUTOMATIC1111
03c8eefbcc
Merge pull request #8782 from FNSpd/master
--upcast-sampling support for CUDA
2023-03-25 09:10:01 +03:00
AUTOMATIC
4697def235 bump gradio to 3.23
fix broken image dragging
2023-03-25 09:00:37 +03:00
AUTOMATIC
ff216820fd fix extra networks ui 2023-03-25 09:00:37 +03:00
AUTOMATIC
af2db25c84 enable queue by default
more stylistic changes
2023-03-25 09:00:37 +03:00
AUTOMATIC
43a0912a07 hide delete button for single-item dropdown
more stylistic changes
2023-03-25 09:00:37 +03:00
AUTOMATIC
9b2f205400 fix ctrl+up/down attention edit
fix dropdown obscured by live preview
stylistic changes
2023-03-25 09:00:36 +03:00
AUTOMATIC
9f0da9f6ed initial gradio 3.22 support 2023-03-25 09:00:36 +03:00
FNSpd
a9eab236d7
Update devices.py 2023-03-24 23:08:30 +04:00
butaixianran
803d44c474
Fix None type error for TI module
When user using model_name.png as a preview image, textural_inversion.py still treat it as an embeding, and didn't handle its error, just let python throw out an None type error like following:
```bash
  File "D:\Work\Dev\AI\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 155, in load_from_file
    name = data.get('name', name)
AttributeError: 'NoneType' object has no attribute 'get'
```

With just a simple `if data:` checking as following, there will be no error, breaks nothing, and now this module can works fine with user's preview images.
Old code:  
```python
                data = extract_image_data_embed(embed_image)
                name = data.get('name', name)
```
New code:  
```python
                data = extract_image_data_embed(embed_image)
                if data:
                    name = data.get('name', name)
                else:
                    # if data is None, means this is not an embeding, just a preview image
                    return
```

Also, since there is no more errors on textual inversion module, from now on, extra network can set "model_name.png" as preview image for embedings.
2023-03-25 02:05:00 +08:00
FNSpd
280ed8f00f
Update sd_hijack_optimizations.py 2023-03-24 16:29:16 +04:00
FNSpd
beb7dda5d6
Update sd_hijack_unet.py 2023-03-24 16:25:42 +04:00
brkirch
27fe3eb6a9 Add workaround for MPS layer_norm on PyTorch 2.0
On PyTorch 2.0, with MPS layer_norm only accepts float32 inputs. This was fixed shortly after 2.0 was finalized so the workaround can be applied with an exact version match.
2023-03-24 04:04:22 -04:00
brkirch
c5142e2fbe Add workaround for broken nn.Linear on macOS 13.2
Credit to danieldk (https://github.com/explosion/curated-transformers/pull/124) for the workaround this is based on.
2023-03-24 04:04:20 -04:00
space-nuko
d86beb8228 Remove "do not add watermark to images" option 2023-03-23 17:09:59 -04:00
pieresimakp
252f15e046 added search textbox to filter available extensions 2023-03-23 23:43:00 +08:00
carat-johyun
92e173d414 fix variable typo 2023-03-23 14:28:08 +09:00
catboxanon
caf84e8233 Expose inpainting mask and composite
For inpainting, this exposes the mask and masked composite and gives
the user the ability to display these in the web UI,
save to disk, or both.
2023-03-22 17:51:40 +00:00
sumof2primes
cd3cd0fca0 Fix scripts load order
- 1st webui, 2nd extensions-builtin, 3rd extensions
 - to load scripts independent of --data-dir
 - change load order key [x.basedir, x.filename, x.path] to [orderby(x.basedir), x.filename, x.path]

e.g., scripts/xyz_grid.py dependent extentions should loaded later
extensions\sd-webui-controlnet\scripts\xyz_grid_support.py
extensions\sd-webui-additional-networks\scripts\xyz_grid_support.py
2023-03-23 01:28:09 +09:00
sumof2primes
64b7e83823 Fix scripts load order
- 1st webui, 2nd extensions-builtin, 3rd extensions
 - to load scripts independent of --data-dir
 - change load order key [x.basedir, x.filename, x.path] to [orderby(x.basedir), x.filename, x.path]

e.g., scripts/xyz_grid.py dependent extentions should loaded later
extensions\sd-webui-controlnet\scripts\xyz_grid_support.py
extensions\sd-webui-additional-networks\scripts\xyz_grid_support.py
2023-03-22 18:24:11 +09:00
ArrowM
00bd271faf Move load_file_from_url
Why?
one of the internal calls of `load_file_from_url` import cv2, which locks the cv2 site-package, which extensions may (and in our case, is) breaking the installation of some libraries. The base project should be limiting its import of unnecessary libraries when possible during the installation phase.
2023-03-21 21:13:30 -05:00
Rucadi
a80d7d090c
Update script_callbacks.py 2023-03-21 18:47:05 +01:00
FNSpd
c84c9df737
Update sd_hijack_optimizations.py 2023-03-21 14:50:22 +04:00
FNSpd
91cfa9718c
Update sd_hijack_unet.py 2023-03-21 14:47:43 +04:00
FNSpd
254d994643
Update devices.py 2023-03-21 14:45:39 +04:00