Files
stable-diffusion-webui-forge/modules_forge/shared_options.py
T
2025-10-09 11:37:38 +08:00

25 lines
1.3 KiB
Python

def register(options_templates, options_section, OptionInfo):
options_templates.update(
options_section(
(None, "Forge Hidden Options"),
{
"forge_unet_storage_dtype": OptionInfo("Automatic"),
"forge_inference_memory": OptionInfo(1024),
"forge_async_loading": OptionInfo("Queue"),
"forge_pin_shared_memory": OptionInfo("CPU"),
"forge_preset": OptionInfo("sd"),
"forge_additional_modules": OptionInfo([]),
},
)
)
options_templates.update(
options_section(
("ui_forgecanvas", "Forge Canvas", "ui"),
{
"forge_canvas_plain": OptionInfo(False, "Plain Background").info("disabled: checkerboard pattern ; enabled: solid grey").needs_reload_ui(),
"forge_canvas_toolbar_always": OptionInfo(False, "Always Visible Toolbar").info("disabled: toolbar only appears when hovering the canvas").needs_reload_ui(),
"forge_canvas_consistent_brush": OptionInfo(False, "Fixed Brush Size").info("disabled: the brush size is <b>pixel-space</b>, the brush stays small when zoomed out ; enabled: the brush size is <b>canvas-space</b>, the brush stays big when zoomed in").needs_reload_ui(),
},
)
)