mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-08 08:59:58 +00:00
Add option to disable thumbnail display (#36)
This commit is contained in:
@@ -260,6 +260,7 @@
|
||||
* and mask on the accordion header.
|
||||
*/
|
||||
updateInputImageThumbnail() {
|
||||
if (!opts.controlnet_input_thumbnail) return;
|
||||
if (this.tabOpen) {
|
||||
this.removeThumbnail();
|
||||
} else {
|
||||
|
||||
@@ -453,12 +453,8 @@ def on_ui_settings():
|
||||
False, "Disable photopea edit", gr.Checkbox, {"interactive": True}, section=section))
|
||||
shared.opts.add_option("controlnet_photopea_warning", shared.OptionInfo(
|
||||
True, "Photopea popup warning", gr.Checkbox, {"interactive": True}, section=section))
|
||||
shared.opts.add_option("controlnet_ignore_noninpaint_mask", shared.OptionInfo(
|
||||
False, "Ignore mask on ControlNet input image if control type is not inpaint",
|
||||
gr.Checkbox, {"interactive": True}, section=section))
|
||||
shared.opts.add_option("controlnet_clip_detector_on_cpu", shared.OptionInfo(
|
||||
False, "Load CLIP preprocessor model on CPU",
|
||||
gr.Checkbox, {"interactive": True}, section=section))
|
||||
shared.opts.add_option("controlnet_input_thumbnail", shared.OptionInfo(
|
||||
True, "Input image thumbnail on unit header", gr.Checkbox, {"interactive": True}, section=section))
|
||||
|
||||
|
||||
script_callbacks.on_ui_settings(on_ui_settings)
|
||||
|
||||
Reference in New Issue
Block a user