aboutsummaryrefslogtreecommitdiffstats
path: root/modules/textual_inversion/textual_inversion.py
Commit message (Collapse)AuthorAgeFilesLines
* remove duplicated codeAUTOMATIC11112023-10-141-34/+40
|
* Fix preview for textual inversion trainingAngelBottomless2023-09-051-2/+2
|
* resolve some of circular import issues for kohakuAUTOMATIC11112023-08-041-1/+3
|
* textual inversion support for SDXLAUTOMATIC11112023-07-291-5/+14
|
* suppress printing TI embedding into console by defaultAUTOMATIC11112023-07-151-1/+1
|
* add textual inversion hashes to infotextAUTOMATIC11112023-07-151-1/+8
|
* Use closing() with processing classes everywhereAarni Koskela2023-07-101-2/+4
| | | | Follows up on #11569
* Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressionsAarni Koskela2023-06-021-1/+1
|
* rename print_error to report, use it with together with package nameAUTOMATIC2023-05-311-4/+3
|
* Merge pull request #10803 from klimaleksus/refactoring-for-embedding-mergeAUTOMATIC11112023-05-311-6/+19
|\ | | | | Refactor EmbeddingDatabase.register_embedding() to allow unregistering
| * Refactor EmbeddingDatabase.register_embedding() to allow unregisteringklimaleksus2023-05-281-6/+19
| |
* | Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela2023-05-291-6/+3
|/ | | | by hand
* Autofix Ruff W (not W605) (mostly whitespace)Aarni Koskela2023-05-111-8/+8
|
* suggestions and fixes from the PRAUTOMATIC2023-05-101-2/+1
|
* fixes for B007AUTOMATIC2023-05-101-5/+5
|
* ruff auto fixesAUTOMATIC2023-05-101-1/+1
|
* imports cleanup for ruffAUTOMATIC2023-05-101-1/+0
|
* autofixes from ruffAUTOMATIC2023-05-101-1/+1
|
* Fix up string formatting/concatenation to f-strings where feasibleAarni Koskela2023-05-091-6/+6
|
* sort self.word_embeddings without instantiating it a new dictBrad Smith2023-04-141-3/+6
|
* sort embeddings by name (case insensitive)Brad Smith2023-04-081-2/+5
|
* Fix None type error for TI modulebutaixianran2023-03-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add ability to choose using weighted loss or notShondoit2023-02-151-4/+9
|
* Call weighted_forward during trainingShondoit2023-02-151-1/+2
|
* do not display the message for TI unless the list of loaded embeddings changedAUTOMATIC2023-01-291-3/+7
|
* allow symlinks in the textual inversion embeddings folderAlex "mcmonkey" Goodwin2023-01-251-1/+1
|
* extra networks UIAUTOMATIC2023-01-211-0/+2
| | | | rework of hypernets: rather than via settings, hypernets are added directly to prompt as <hypernet:name:weight>
* add option to show/hide warningsAUTOMATIC2023-01-181-1/+5
| | | | | removed hiding warnings from LDSR fixed/reworked few places that produced warnings
* big rework of progressbar/preview system to allow multiple users to prompts ↵AUTOMATIC2023-01-151-3/+3
| | | | at the same time and do not get previews of each other
* change hash to sha256AUTOMATIC2023-01-141-3/+3
|
* fix a bug caused by mergeAUTOMATIC2023-01-131-0/+1
|
* Merge branch 'master' into tensorboardAUTOMATIC11112023-01-131-205/+434
|\
| * print bucket sizes for training without resizing images #6620AUTOMATIC2023-01-131-1/+1
| | | | | | | | fix an error when generating a picture with embedding in it
| * Allow creation of zero vectors for TIShondoit2023-01-121-3/+6
| |
| * set descriptionsVladimir Mandic2023-01-111-1/+3
| |
| * Support loading textual inversion embeddings from safetensors filesLee Bousfield2023-01-111-0/+3
| |
| * make a dropdown for prompt template selectionAUTOMATIC2023-01-091-8/+27
| |
| * remove/simplify some changes from #6481AUTOMATIC2023-01-091-2/+2
| |
| * Merge branch 'master' into varsizeAUTOMATIC11112023-01-091-62/+103
| |\
| | * make it possible for extensions/scripts to add their own embedding directoriesAUTOMATIC2023-01-081-66/+104
| | |
| | * skip images in embeddings dir if they have a second .preview extensionAUTOMATIC2023-01-081-0/+4
| | |
| * | Add checkbox for variable training dimsdan2023-01-071-2/+2
| | |
| * | Allow variable img sizedan2023-01-071-2/+2
| |/
| * CLIP hijack reworkAUTOMATIC2023-01-061-1/+0
| |
| * rework saving training params to file #6372AUTOMATIC2023-01-061-20/+3
| |
| * Merge pull request #6372 from ↵AUTOMATIC11112023-01-061-1/+25
| |\ | | | | | | | | | | | | timntorres/save-ti-hypernet-settings-to-txt-revised Save hypernet and textual inversion settings to text file, revised.
| | * Include model in log file. Exclude directory.timntorres2023-01-051-13/+9
| | |
| | * Clean up ti, add same behavior to hypernetwork.timntorres2023-01-051-5/+9
| | |
| | * Add option to save ti settings to file.timntorres2023-01-051-3/+27
| | |
| * | allow loading embeddings from subdirectoriesFaber2023-01-051-11/+12
| | |