Commit Graph

3867 Commits

Author SHA1 Message Date
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
b0b777e64d Merge branch 'gradio-3-22' 2023-03-25 09:00:51 +03:00
AUTOMATIC
58c3144d2b fix generate forever and other context menus 2023-03-25 09:00:38 +03:00
AUTOMATIC
133fd7bea5 restore interrupt/stop button styling 2023-03-25 09:00:38 +03:00
AUTOMATIC
889f5e38a1 fix clipping in lightbox image viewer 2023-03-25 09:00:38 +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
AUTOMATIC
23d68bfc9a fix generate forever and other context menus 2023-03-25 08:54:01 +03:00
AUTOMATIC
82905f520c restore interrupt/stop button styling 2023-03-25 08:48:34 +03:00
AUTOMATIC
1bfa1be6dd fix clipping in lightbox image viewer 2023-03-25 08:28:21 +03:00
AUTOMATIC
9e1afa9eb4 bump gradio to 3.23
fix broken image dragging
2023-03-25 07:29:51 +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
FNSpd
2f0181405f
Update lora.py 2023-03-21 14:53:51 +04: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
AUTOMATIC
d3dcb05904 fix extra networks ui 2023-03-21 09:24:19 +03:00
AUTOMATIC
6eacaad4a9 enable queue by default
more stylistic changes
2023-03-21 08:49:08 +03:00
AUTOMATIC
f93547be18 hide delete button for single-item dropdown
more stylistic changes
2023-03-21 08:18:14 +03:00
AUTOMATIC
46482decd5 fix ctrl+up/down attention edit
fix dropdown obscured by live preview
stylistic changes
2023-03-21 06:49:19 +03:00
AUTOMATIC
8ea8e712c4 initial gradio 3.22 support 2023-03-20 16:09:36 +03:00
AUTOMATIC1111
a9fed7c364
Merge pull request #8503 from mcmonkey4eva/filename-length-limit-fix
Add correction file filename length limits on *nix systems
2023-03-14 11:28:13 +03:00
AUTOMATIC
6a04a7f20f fix an error loading Lora with empty values in metadata 2023-03-14 11:22:29 +03:00
AUTOMATIC1111
8b35b64e11
Merge pull request #8589 from vladmandic/unipc
add progressbar to unipc sampler
2023-03-14 11:19:21 +03:00
AUTOMATIC1111
f9b0465c8b
Merge pull request #8588 from hananbeer/fix/undefined_extra_network_data
initialize extra_network_data before use
2023-03-14 11:18:30 +03:00
AUTOMATIC1111
58c4777cc0
Merge pull request #8607 from willtakasan/patch-2
Update ui_extra_networks.py
2023-03-14 11:12:31 +03:00
willtakasan
4281432594
Update ui_extra_networks.py
I updated it so that no error message is displayed when setting a webp for the preview image.
2023-03-14 15:36:08 +09:00
AUTOMATIC
c19530f1a5 Add view metadata button for Lora cards. 2023-03-14 09:10:26 +03:00
Vladimir Mandic
03a80f198e
add pbar to unipc 2023-03-13 12:35:30 -04:00
high_byte
4d26c7da57 initialize extra_network_data before use 2023-03-13 17:37:29 +02:00
Alex "mcmonkey" Goodwin
af9158a8c7 update fullfn properly 2023-03-12 12:36:04 -07:00
Alex "mcmonkey" Goodwin
48df6d66ea add safety check in case of short extensions
so eg if a two-letter or empty extension is used, `.txt` would break, this `max` call protects that.
2023-03-12 12:33:29 -07:00
Alex "mcmonkey" Goodwin
a71b7b5ec0 relocate filename length limit to better spot 2023-03-12 12:30:31 -07:00
AUTOMATIC
dfeee786f9 display correct timings after restarting UI 2023-03-12 21:25:22 +03:00
AUTOMATIC
a00cd8b9c1 attempt to fix memory monitor with multiple CUDA devices 2023-03-12 21:04:17 +03:00
AUTOMATIC
6033de18bf revert webui.sh from #8492 2023-03-12 20:50:02 +03:00
AUTOMATIC
27eedb6966 change extension index link to the new dedicated repo instead of wiki 2023-03-12 17:20:17 +03:00
AUTOMATIC1111
806aa5e8e7
Merge pull request #8548 from vladmandic/total-tqdm
force refresh tqdm before close
2023-03-12 16:51:30 +03:00
Vladimir Mandic
bd67c41f54
force refresh tqdm before close 2023-03-12 09:19:23 -04:00