AUTOMATIC1111
a8cbe50c9f
remove duplicated code
2023-10-14 12:17:59 +03:00
AngelBottomless
47033afa5c
Fix preview for textual inversion training
2023-09-05 22:38:02 +09:00
AUTOMATIC1111
f0c1063a70
resolve some of circular import issues for kohaku
2023-08-04 09:13:46 +03:00
AUTOMATIC1111
6f0abbb71a
textual inversion support for SDXL
2023-07-29 15:15:06 +03:00
AUTOMATIC1111
0aa8d538e1
suppress printing TI embedding into console by default
2023-07-15 09:24:22 +03:00
AUTOMATIC1111
2b1bae0d75
add textual inversion hashes to infotext
2023-07-15 08:41:22 +03:00
Aarni Koskela
44c27ebc73
Use closing() with processing classes everywhere
...
Follows up on #11569
2023-07-10 20:08:23 +03:00
hunshcn
0bc0e652a3
sync default value of process_focal_crop_entropy_weight between ui and api
2023-06-29 18:12:55 +08:00
AUTOMATIC1111
d4f9250c5a
Merge pull request #11201 from akx/ruff-upg
...
Upgrade Ruff to 0.0.272
2023-06-27 09:19:55 +03:00
Aarni Koskela
d807164776
textual_inversion/logging.py: clean up duplicate key from sets (and sort them) (Ruff B033)
2023-06-13 13:07:39 +03:00
Aarni Koskela
165ab44f03
Use os.makedirs(..., exist_ok=True)
2023-06-13 12:35:43 +03: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
05933840f0
rename print_error to report, use it with together with package name
2023-05-31 19:56:37 +03:00
AUTOMATIC1111
d67ef01f62
Merge pull request #10780 from akx/image-emb-fonts
...
Mark caption_image_overlay's textfont as deprecated; fix #10778
2023-05-31 19:37:58 +03:00
AUTOMATIC1111
881de0df38
Merge pull request #10803 from klimaleksus/refactoring-for-embedding-merge
...
Refactor EmbeddingDatabase.register_embedding() to allow unregistering
2023-05-31 19:29:47 +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
klimaleksus
4635f31270
Refactor EmbeddingDatabase.register_embedding() to allow unregistering
2023-05-29 01:09:59 +05:00
Aarni Koskela
1013758933
Mark caption_image_overlay's textfont as deprecated; fix #10778
2023-05-28 14:48:50 +03:00
Aarni Koskela
49a55b410b
Autofix Ruff W (not W605) (mostly whitespace)
2023-05-11 20:29:11 +03:00
Aarni Koskela
098d2fda52
Reindent autocrop with 4 spaces
2023-05-11 18:26:04 +03:00
Aarni Koskela
df7070eca2
Deduplicate get_font code
2023-05-11 10:06:19 +03:00
AUTOMATIC
3ec7b705c7
suggestions and fixes from the PR
2023-05-10 21:21:32 +03:00
AUTOMATIC
a5121e7a06
fixes for B007
2023-05-10 11:37:18 +03:00
AUTOMATIC
550256db1c
ruff manual fixes
2023-05-10 11:19:16 +03:00
AUTOMATIC
028d3f6425
ruff auto fixes
2023-05-10 11:05:02 +03:00
AUTOMATIC
f741a98bac
imports cleanup for ruff
2023-05-10 08:43:42 +03:00
AUTOMATIC
96d6ca4199
manual fixes for ruff
2023-05-10 08:25:25 +03:00
AUTOMATIC
762265eab5
autofixes from ruff
2023-05-10 07:52:45 +03:00
Aarni Koskela
3ba6c3c83c
Fix up string formatting/concatenation to f-strings where feasible
2023-05-09 22:25:39 +03:00
AUTOMATIC1111
0e0e70c273
Merge pull request #8924 from kurilee/master
...
Add option "keep original size" to textual inversion images preprocess
2023-04-29 18:51:12 +03:00
AUTOMATIC1111
78b5bed374
Merge pull request #9407 from GoulartNogueira/master
...
Fix orientation bug on preprocess
2023-04-29 16:53:17 +03:00
Brad Smith
dab5002c59
sort self.word_embeddings without instantiating it a new dict
2023-04-13 23:19:10 -04:00
Brad Smith
27b9ec60e4
sort embeddings by name (case insensitive)
2023-04-08 15:58:00 -04: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
kurilee
b2fc7dba2e
Add option "keep original size" to textual inversion images preprocess
2023-03-25 22:45:41 +08: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
AUTOMATIC
11183b4d90
fix for #6700
2023-02-19 12:44:56 +03:00
Shondoit
edb10092de
Add ability to choose using weighted loss or not
2023-02-15 10:03:59 +01:00
Shondoit
bc50936745
Call weighted_forward during training
2023-02-15 10:03:59 +01:00
Shondoit
21642000b3
Add PNG alpha channel as weight maps to data entries
2023-02-15 10:03:59 +01:00
AUTOMATIC
aa6e55e001
do not display the message for TI unless the list of loaded embeddings changed
2023-01-29 11:53:05 +03:00
Max Audron
5eee2ac398
add data-dir flag and set all user data directories based on it
2023-01-27 14:44:30 +01:00
Alex "mcmonkey" Goodwin
e179b6098a
allow symlinks in the textual inversion embeddings folder
2023-01-25 08:48:40 -08:00
AUTOMATIC
40ff6db532
extra networks UI
...
rework of hypernets: rather than via settings, hypernets are added directly to prompt as <hypernet:name:weight>
2023-01-21 08:36:07 +03:00
AUTOMATIC1111
0f9cacaa0e
Merge pull request #6844 from guaneec/crop-ui
...
Add auto-sized cropping UI
2023-01-19 13:11:05 +03:00
dan
2985b317d7
Fix of fix
2023-01-19 17:39:30 +08:00
dan
18a09c7e00
Simplification and bugfix
2023-01-19 17:36:23 +08:00
AUTOMATIC
924e222004
add option to show/hide warnings
...
removed hiding warnings from LDSR
fixed/reworked few places that produced warnings
2023-01-18 23:04:24 +03:00
dan
4688bfff55
Add auto-sized cropping UI
2023-01-17 17:16:43 +08:00