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
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
AUTOMATIC
3c922d983b
fix #8492 breaking the program when the directory with code contains spaces.
2023-03-12 12:11:51 +03:00
AUTOMATIC
5c9f2bbb74
do not import modules.paths in launch.py
2023-03-12 08:58:58 +03:00
AUTOMATIC1111
adf723a9b2
Merge pull request #8492 from zhanghua000/absolute-path
...
fix: gradio's ValueError about fetching extensions files
2023-03-12 08:55:15 +03:00
AUTOMATIC1111
ddc503d14c
Merge pull request #8509 from vladmandic/fastapi
...
allow usage of latest fastapi
2023-03-12 08:26:57 +03:00
AUTOMATIC1111
6106f6d0a0
Merge pull request #7965 from Kilvoctu/extranet-buttons
...
Use emojis for extra network buttons
2023-03-12 08:25:03 +03:00
AUTOMATIC1111
beb96bd115
Merge pull request #8515 from EllangoK/unipc-typo
...
Fix dims typo in unipc
2023-03-12 08:24:17 +03:00
AUTOMATIC1111
bbc4b0478a
Merge pull request #8518 from brkirch/remove-bool-test
...
Fix image generation on macOS 13.3 betas
2023-03-12 08:14:26 +03:00
AUTOMATIC1111
55ccc8fe6f
Merge pull request #8523 from hananbeer/feature/xyz_face_restore
...
add face restoration option to xyz_grid
2023-03-12 08:12:47 +03:00
AUTOMATIC1111
3e2ac603e9
Merge pull request #8156 from bluelovers/pr/lightbox-001
...
feat: better lightbox when not enable zoom
2023-03-12 08:06:27 +03:00
AUTOMATIC1111
ab0b0e1e76
Merge pull request #8187 from Vespinian/master
...
Add a way for API txt2img and img2img requests to pass args to always on scripts
2023-03-12 08:00:55 +03:00
bluelovers
db85421da1
feat: better lightbox when not enable zoom
2023-03-12 10:25:42 +08:00
high_byte
5ed5e95fb8
add face restoration option to xyz_grid
2023-03-12 03:29:07 +02:00
brkirch
a4cb96d4ae
Remove test, use bool tensor fix by default
...
The test isn't working correctly on macOS 13.3 and the bool tensor fix for cumsum is currently always needed anyway, so enable the fix by default.
2023-03-11 17:35:17 -05:00
EllangoK
48f4abd2e6
fix dims typo in unipc
2023-03-11 15:52:14 -05:00
Vespinian
64efb3d9e0
Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui
2023-03-11 14:35:20 -05:00
Vespinian
49bbdbe447
small diff whitespace cleanup
2023-03-11 14:34:56 -05:00
Kilvoctu
247a34498b
restore text, remove 'close'
...
don't use emojis for extra network buttons; remove 'close'
2023-03-11 13:11:26 -06:00
AUTOMATIC
27e319dc4f
alternative solution for #8089
2023-03-11 21:22:52 +03:00
Vespinian
5546e71a10
Fixed whitespace
2023-03-11 12:35:20 -05:00
Vespinian
46f9fe3cd6
Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui
2023-03-11 12:33:35 -05:00
Vespinian
2174f58dae
Changed alwayson_script_name and alwayson_script_args api params to 1 alwayson_scripts param dict
2023-03-11 12:21:33 -05:00
Vladimir Mandic
29ce0bf4f2
allow usage of latest fastapi
2023-03-11 12:01:08 -05:00
AUTOMATIC
94ffa9fc53
emergency fix for xyz plot
2023-03-11 18:55:48 +03:00
Alex "mcmonkey" Goodwin
7fd19fa4e7
initial fix for filename length limits on *nix systems
2023-03-11 07:22:22 -08:00
AUTOMATIC
5cea278d3a
bump GitPython to 3.1.30 because some people would be upset about it being below that version #8118
2023-03-11 17:51:55 +03:00
AUTOMATIC1111
e0ca78509a
Merge pull request #8118 from adam-huganir/8116-gitpython-api-breaking-change
...
git 3.1.30 api change, issue #8116
2023-03-11 17:47:51 +03:00
Adam Huganir
1e1a32b130
Update requirements_versions.txt
...
revert back to .27
2023-03-11 09:34:17 -05:00
AUTOMATIC1111
d3dd6cc01c
Merge pull request #8175 from vladmandic/image_size
...
adds checks for resulting image size to avoid memory issues
2023-03-11 16:45:35 +03:00
AUTOMATIC1111
76bc72116e
Merge pull request #7818 from space-nuko/extension-paste-field-names
...
Allow extensions to declare paste fields for "Send to X" buttons
2023-03-11 16:44:20 +03:00
AUTOMATIC1111
ef9efb61aa
Merge pull request #7954 from EllangoK/xyz-newline
...
Fixes newlines within checkpoints being detected as its own entry
2023-03-11 16:37:51 +03:00
AUTOMATIC1111
b9fd9c81de
Merge pull request #7963 from xSinStarx/patch-1
...
Bug Fix: Fixes img2img Negative Token Counter
2023-03-11 16:34:34 +03:00