aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix UnicodeEncodeError when writing to file CLIP Interrogator Batch ModeNeil Mahseth2023-07-061-1/+1
| | | | | | | | | | | | The code snippet print(interrogation_function(img), file=open(os.path.join(ii_output_dir, f"{left}.txt"), 'a')) raises a UnicodeEncodeError with the message "'charmap' codec can't encode character '\u016b' in position 129". This error occurs because the default encoding used by the open() function cannot handle certain Unicode characters. To fix this issue, the encoding parameter needs to be explicitly specified when opening the file. By using an appropriate encoding, such as 'utf-8', we can ensure that Unicode characters are properly encoded and written to the file. The updated code should be modified as follows: python Copy code print(interrogation_function(img), file=open(os.path.join(ii_output_dir, f"{left}.txt"), 'a', encoding='utf-8')) By making this change, the code will no longer raise the UnicodeEncodeError and will correctly handle Unicode characters during the file write operation.
* Merge branch 'release_candidate'AUTOMATIC2023-06-27102-995/+3379
|\
| * Merge pull request #11189 from daswer123/devAUTOMATIC11112023-06-273-65/+176
| |\ | | | | | | Zoom and pan: More options in the settings and improved error output
| | * Formatting code with PrettierDanil Boldyrev2023-06-131-75/+95
| | |
| | * Reworked the disabling of functions, refactored part of the codeDanil Boldyrev2023-06-133-135/+121
| | |
| | * remove console.logDanil Boldyrev2023-06-121-2/+0
| | |
| | * Improved error output, improved settings menuDanil Boldyrev2023-06-122-38/+145
| | |
| * | Merge pull request #11136 from arch-fan/typoAUTOMATIC11112023-06-271-1/+1
| |\ \ | | | | | | | | fixed typos
| | * | fixed typosarch-fan2023-06-091-2/+2
| |/ / |/| |
| * | Merge pull request #11199 from akx/makedirsAUTOMATIC11112023-06-276-15/+6
| |\ \ | | | | | | | | Use os.makedirs(..., exist_ok=True)
| | * | Use os.makedirs(..., exist_ok=True)Aarni Koskela2023-06-136-15/+6
| | |/
| * | Merge pull request #11294 from zhtttylz/Fix_Typo_of_hints.jsAUTOMATIC11112023-06-271-2/+2
| |\ \ | | | | | | | | Fix Typo of hints.js
| | * | Fix Typo of hints.jszhtttylz2023-06-181-2/+2
| |/ / |/| |
| * | Merge pull request #11408 from wfjsw/patch-1AUTOMATIC11112023-06-271-0/+5
| |\ \ | | | | | | | | Strip whitespaces from URL and dirname prior to extension installation
| | * | Strip whitespaces from URL and dirname prior to extension installationJabasukuriputo Wang2023-06-241-0/+5
| |/ / |/| | | | | This avoid some cryptic errors brought by accidental spaces around urls
| * | add missing infotext entry for the pad cond/uncond optionAUTOMATIC2023-06-272-1/+11
| | |
| * | Merge branch 'dev' into release_candidateAUTOMATIC2023-06-09101-977/+3244
|/| | | |/
| * add changelog for 1.4.0AUTOMATIC2023-06-091-0/+57
| |
| * linterAUTOMATIC2023-06-091-1/+1
| |
| * Merge pull request #11092 from AUTOMATIC1111/Generate-Forever-during-generationAUTOMATIC11112023-06-091-4/+10
| |\ | | | | | | Allow activation of Generate Forever during generation
| | * Generate Forever during generationw-e-w2023-06-081-4/+10
| | | | | | | | | | | | Generate Forever during generation
| * | Merge pull request #11087 from AUTOMATIC1111/persistent_conds_cacheAUTOMATIC11112023-06-092-10/+17
| |\ \ | | | | | | | | persistent conds cache
| | * | persistent conds cachew-e-w2023-06-082-10/+17
| | |/ | | | | | | | | | Update shared.py
| * | Merge pull request #11123 from akx/dont-die-on-bad-symlink-loraAUTOMATIC11112023-06-091-1/+5
| |\ \ | | | | | | | | Don't die when a LoRA is a broken symlink
| | * | Don't die when a LoRA is a broken symlinkAarni Koskela2023-06-091-1/+5
| | |/ | | | | | | | | | Fixes #11098
| * | Merge pull request #10295 from Splendide-Imaginarius/mk2-blur-maskAUTOMATIC11112023-06-092-13/+38
| |\ \ | | | | | | | | Split mask blur into X and Y components, patch Outpainting MK2 accordingly
| | * | Split Outpainting MK2 mask blur into X and Y componentsSplendide Imaginarius2023-06-091-9/+21
| | | | | | | | | | | | | | | | Fixes unexpected noise in non-outpainted borders when using MK2 script.
| | * | Split mask blur into X and Y componentsSplendide Imaginarius2023-06-091-4/+17
| | |/ | | | | | | | | | Prequisite to fixing Outpainting MK2 mask blur bug.
| * | Merge pull request #11048 from DGdev91/force_python1_navi_renoirAUTOMATIC11112023-06-091-1/+16
| |\ \ | | |/ | |/| Forcing Torch Version to 1.13.1 for RX 5000 series GPUs
| | * Skip force pyton and pytorch ver if TORCH_COMMAND already setDGdev912023-06-061-9/+12
| | |
| | * Write "RX 5000 Series" instead of "Navi" in errDGdev912023-06-061-1/+1
| | |
| | * Check python version for Navi 1 onlyDGdev912023-06-061-1/+1
| | |
| | * Force python1 for Navi1 only, use python_cmd for pythonDGdev912023-06-061-15/+8
| | |
| | * Fix error in webui.shDGdev912023-06-051-0/+1
| | |
| | * Forcing Torch Version to 1.13.1 for Navi and Renoir GPUsDGdev912023-06-051-5/+23
| | |
| * | Merge pull request #11058 from AUTOMATIC1111/api-wikiAUTOMATIC11112023-06-072-2/+2
| |\ \ | | | | | | | | link footer API to Wiki when API is not active
| | * | link footer API to Wiki when API is not activew-e-w2023-06-062-2/+2
| | |/
| * | Merge pull request #11066 from aljungberg/patch-1AUTOMATIC11112023-06-071-1/+1
| |\ \ | | |/ | |/| Fix upcast attention dtype error.
| | * Fix upcast attention dtype error.Alexander Ljungberg2023-06-061-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | Without this fix, enabling the "Upcast cross attention layer to float32" option while also using `--opt-sdp-attention` breaks generation with an error: ``` File "/ext3/automatic1111/stable-diffusion-webui/modules/sd_hijack_optimizations.py", line 612, in sdp_attnblock_forward out = torch.nn.functional.scaled_dot_product_attention(q, k, v, dropout_p=0.0, is_causal=False) RuntimeError: Expected query, key, and value to have the same dtype, but got query.dtype: float key.dtype: float and value.dtype: c10::Half instead. ``` The fix is to make sure to upcast the value tensor too.
| * Merge pull request #11047 from ↵AUTOMATIC11112023-06-051-9/+12
| |\ | | | | | | | | | | | | AUTOMATIC1111/parse_generation_parameters_with_error handles exception when parsing generation parameters from png info
| | * print error and continuew-e-w2023-06-051-9/+12
| | | | | | | | | | | | print error and continue
| * | Merge pull request #11037 from AUTOMATIC1111/restart-autolaunchAUTOMATIC11112023-06-052-1/+2
| |\ \ | | | | | | | | fix rework-disable-autolaunch for new restart method
| | * | SD_WEBUI_RESTARTINGw-e-w2023-06-052-2/+2
| | | |
| | * | restore old disable --autolaunchw-e-w2023-06-051-0/+3
| | | |
| | * | rework-disable-autolaunchw-e-w2023-06-052-4/+2
| | |/
| * | Merge pull request #11031 from akx/zoom-and-pan-namespaceAUTOMATIC11112023-06-051-124/+111
| |\ \ | | | | | | | | Zoom and pan: namespace & simplify
| | * | Zoom and Pan: simplify waitForOptsAarni Koskela2023-06-051-8/+6
| | | |
| | * | Zoom and Pan: use for instead of forEachAarni Koskela2023-06-051-10/+7
| | | |
| | * | Zoom and Pan: simplify getElements (it's not actually async)Aarni Koskela2023-06-051-10/+4
| | | |
| | * | Zoom and Pan: use elementIDs from closure scopeAarni Koskela2023-06-051-18/+18
| | | |