Skip to content

Commit 8da9861

Browse files
committed
Merge branch 'dev-a1111' into dev-local-202406
* dev-a1111: fix passing of literal backslash (AUTOMATIC1111#16671) fix prompt-bracket-checker miscounting of literal tokens (AUTOMATIC1111#16669) Bump safetensors to v0.4.5 Honor lossless webp compression option in API use shared.hf_endpoint (AUTOMATIC1111#16611) Warn if WebUI is installed under a dot directory (AUTOMATIC1111#16584) sd_xl_v.yaml: use_checkpoint = False XYZ option to disable grid (AUTOMATIC1111#16416) Fix Default system None filter logic (AUTOMATIC1111#16309) Fix weighting config for SDXL v-pred InputAccordion duplicate elem_id handling (AUTOMATIC1111#16381) addEventListener {passive: false} (AUTOMATIC1111#16575) pyenv-win compatibility - another approach (AUTOMATIC1111#16287) Disable Hires checkpoint if same as First pass checkpoint (AUTOMATIC1111#16269) Fix postprocessing_enable_in_main_ui ScriptPostprocessing elem_id (AUTOMATIC1111#16373) extra_only / main_ui_only ScriptPostprocessing (AUTOMATIC1111#16374) Allow newline in Extra Network activation text (AUTOMATIC1111#16428) image embedding data cache (AUTOMATIC1111#16556) Fix typo
2 parents 06544fc + 023454b commit 8da9861

31 files changed

+239
-118
lines changed

configs/sd_xl_v.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ model:
1010
num_idx: 1000
1111

1212
weighting_config:
13-
target: sgm.modules.diffusionmodules.denoiser_weighting.EpsWeighting
13+
target: sgm.modules.diffusionmodules.denoiser_weighting.VWeighting
1414
scaling_config:
1515
target: sgm.modules.diffusionmodules.denoiser_scaling.VScaling
1616
discretization_config:
@@ -21,7 +21,7 @@ model:
2121
params:
2222
adm_in_channels: 2816
2323
num_classes: sequential
24-
use_checkpoint: True
24+
use_checkpoint: False
2525
in_channels: 4
2626
out_channels: 4
2727
model_channels: 320

extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ onUiLoaded(async() => {
816816
// Increase or decrease brush size based on scroll direction
817817
adjustBrushSize(elemId, e.deltaY);
818818
}
819-
});
819+
}, {passive: false});
820820

821821
// Handle the move event for pan functionality. Updates the panX and panY variables and applies the new transform to the target element.
822822
function handleMoveKeyDown(e) {

extensions-builtin/hypertile/hypertile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Hypertile module for splitting attention layers in SD-1.5 U-Net and SD-1.5 VAE
33
Warn: The patch works well only if the input image has a width and height that are multiples of 128
4-
Original author: @tfernd Github: https://github.com/tfernd/HyperTile
4+
Original author: @tfernd GitHub: https://github.com/tfernd/HyperTile
55
"""
66

77
from __future__ import annotations

extensions-builtin/postprocessing-for-training/scripts/postprocessing_autosized_crop.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ def ui(self):
3434
with ui_components.InputAccordion(False, label="Auto-sized crop") as enable:
3535
gr.Markdown('Each image is center-cropped with an automatically chosen width and height.')
3636
with gr.Row():
37-
mindim = gr.Slider(minimum=64, maximum=2048, step=8, label="Dimension lower bound", value=384, elem_id="postprocess_multicrop_mindim")
38-
maxdim = gr.Slider(minimum=64, maximum=2048, step=8, label="Dimension upper bound", value=768, elem_id="postprocess_multicrop_maxdim")
37+
mindim = gr.Slider(minimum=64, maximum=2048, step=8, label="Dimension lower bound", value=384, elem_id=self.elem_id_suffix("postprocess_multicrop_mindim"))
38+
maxdim = gr.Slider(minimum=64, maximum=2048, step=8, label="Dimension upper bound", value=768, elem_id=self.elem_id_suffix("postprocess_multicrop_maxdim"))
3939
with gr.Row():
40-
minarea = gr.Slider(minimum=64 * 64, maximum=2048 * 2048, step=1, label="Area lower bound", value=64 * 64, elem_id="postprocess_multicrop_minarea")
41-
maxarea = gr.Slider(minimum=64 * 64, maximum=2048 * 2048, step=1, label="Area upper bound", value=640 * 640, elem_id="postprocess_multicrop_maxarea")
40+
minarea = gr.Slider(minimum=64 * 64, maximum=2048 * 2048, step=1, label="Area lower bound", value=64 * 64, elem_id=self.elem_id_suffix("postprocess_multicrop_minarea"))
41+
maxarea = gr.Slider(minimum=64 * 64, maximum=2048 * 2048, step=1, label="Area upper bound", value=640 * 640, elem_id=self.elem_id_suffix("postprocess_multicrop_maxarea"))
4242
with gr.Row():
43-
objective = gr.Radio(["Maximize area", "Minimize error"], value="Maximize area", label="Resizing objective", elem_id="postprocess_multicrop_objective")
44-
threshold = gr.Slider(minimum=0, maximum=1, step=0.01, label="Error threshold", value=0.1, elem_id="postprocess_multicrop_threshold")
43+
objective = gr.Radio(["Maximize area", "Minimize error"], value="Maximize area", label="Resizing objective", elem_id=self.elem_id_suffix("postprocess_multicrop_objective"))
44+
threshold = gr.Slider(minimum=0, maximum=1, step=0.01, label="Error threshold", value=0.1, elem_id=self.elem_id_suffix("postprocess_multicrop_threshold"))
4545

4646
return {
4747
"enable": enable,

extensions-builtin/postprocessing-for-training/scripts/postprocessing_focal_crop.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class ScriptPostprocessingFocalCrop(scripts_postprocessing.ScriptPostprocessing)
1111

1212
def ui(self):
1313
with ui_components.InputAccordion(False, label="Auto focal point crop") as enable:
14-
face_weight = gr.Slider(label='Focal point face weight', value=0.9, minimum=0.0, maximum=1.0, step=0.05, elem_id="postprocess_focal_crop_face_weight")
15-
entropy_weight = gr.Slider(label='Focal point entropy weight', value=0.15, minimum=0.0, maximum=1.0, step=0.05, elem_id="postprocess_focal_crop_entropy_weight")
16-
edges_weight = gr.Slider(label='Focal point edges weight', value=0.5, minimum=0.0, maximum=1.0, step=0.05, elem_id="postprocess_focal_crop_edges_weight")
17-
debug = gr.Checkbox(label='Create debug image', elem_id="train_process_focal_crop_debug")
14+
face_weight = gr.Slider(label='Focal point face weight', value=0.9, minimum=0.0, maximum=1.0, step=0.05, elem_id=self.elem_id_suffix("postprocess_focal_crop_face_weight"))
15+
entropy_weight = gr.Slider(label='Focal point entropy weight', value=0.15, minimum=0.0, maximum=1.0, step=0.05, elem_id=self.elem_id_suffix("postprocess_focal_crop_entropy_weight"))
16+
edges_weight = gr.Slider(label='Focal point edges weight', value=0.5, minimum=0.0, maximum=1.0, step=0.05, elem_id=self.elem_id_suffix("postprocess_focal_crop_edges_weight"))
17+
debug = gr.Checkbox(label='Create debug image', elem_id=self.elem_id_suffix("train_process_focal_crop_debug"))
1818

1919
return {
2020
"enable": enable,

extensions-builtin/postprocessing-for-training/scripts/postprocessing_split_oversized.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class ScriptPostprocessingSplitOversized(scripts_postprocessing.ScriptPostproces
3535
def ui(self):
3636
with ui_components.InputAccordion(False, label="Split oversized images") as enable:
3737
with gr.Row():
38-
split_threshold = gr.Slider(label='Threshold', value=0.5, minimum=0.0, maximum=1.0, step=0.05, elem_id="postprocess_split_threshold")
39-
overlap_ratio = gr.Slider(label='Overlap ratio', value=0.2, minimum=0.0, maximum=0.9, step=0.05, elem_id="postprocess_overlap_ratio")
38+
split_threshold = gr.Slider(label='Threshold', value=0.5, minimum=0.0, maximum=1.0, step=0.05, elem_id=self.elem_id_suffix("postprocess_split_threshold"))
39+
overlap_ratio = gr.Slider(label='Overlap ratio', value=0.2, minimum=0.0, maximum=0.9, step=0.05, elem_id=self.elem_id_suffix("postprocess_overlap_ratio"))
4040

4141
return {
4242
"enable": enable,

extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// If there's a mismatch, the keyword counter turns red and if you hover on it, a tooltip tells you what's wrong.
55

66
function checkBrackets(textArea, counterElt) {
7-
var counts = {};
8-
(textArea.value.match(/[(){}[\]]/g) || []).forEach(bracket => {
9-
counts[bracket] = (counts[bracket] || 0) + 1;
7+
const counts = {};
8+
textArea.value.matchAll(/(?<!\\)(?:\\\\)*?([(){}[\]])/g).forEach(bracket => {
9+
counts[bracket[1]] = (counts[bracket[1]] || 0) + 1;
1010
});
11-
var errors = [];
11+
const errors = [];
1212

1313
function checkPair(open, close, kind) {
1414
if (counts[open] !== counts[close]) {

html/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<a href="{api_docs}">API</a>
33
 • 
4-
<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">Github</a>
4+
<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">GitHub</a>
55
 • 
66
<a href="https://gradio.app">Gradio</a>
77
 • 

javascript/contextMenus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ var contextMenuInit = function() {
104104
e.preventDefault();
105105
}
106106
});
107-
});
107+
}, {passive: false});
108108
});
109109
eventListenerApplied = true;
110110

javascript/extraNetworks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function setupExtraNetworks() {
201201
setupExtraNetworksForTab('img2img');
202202
}
203203

204-
var re_extranet = /<([^:^>]+:[^:]+):[\d.]+>(.*)/;
204+
var re_extranet = /<([^:^>]+:[^:]+):[\d.]+>(.*)/s;
205205
var re_extranet_g = /<([^:^>]+:[^:]+):[\d.]+>/g;
206206

207207
var re_extranet_neg = /\(([^:^>]+:[\d.]+)\)/;

0 commit comments

Comments
 (0)