aboutsummaryrefslogtreecommitdiff
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-12 23:52:43 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-12 23:52:43 +0300
commitda464a3fb39ecc6ea7b22fe87271194480d8501c (patch)
treefd67d92762d0490d9d4784aaae3f2a3c2f31c6ca /modules/shared.py
parentaf081211ee93622473ee575de30fed2fd8263c09 (diff)
SDXL support
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index b7518de6..71afd94f 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -428,6 +428,8 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), {
"CLIP_stop_at_last_layers": OptionInfo(1, "Clip skip", gr.Slider, {"minimum": 1, "maximum": 12, "step": 1}).link("wiki", "https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#clip-skip").info("ignore last layers of CLIP network; 1 ignores none, 2 ignores one layer"),
"upcast_attn": OptionInfo(False, "Upcast cross attention layer to float32"),
"randn_source": OptionInfo("GPU", "Random number generator source.", gr.Radio, {"choices": ["GPU", "CPU"]}).info("changes seeds drastically; use CPU to produce the same picture across different videocard vendors"),
+ "sdxl_crop_top": OptionInfo(0, "SDXL top coordinate of the crop"),
+ "sdxl_crop_left": OptionInfo(0, "SDXL left coordinate of the crop"),
}))
options_templates.update(options_section(('optimizations', "Optimizations"), {