mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-21 21:01:24 +08:00
24 lines
960 B
Python
24 lines
960 B
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_alternatives", "UI Alternatives", "ui"),
|
|
{
|
|
"forge_canvas_plain": OptionInfo(False, "ForgeCanvas: use plain background").needs_reload_ui(),
|
|
"forge_canvas_toolbar_always": OptionInfo(False, "ForgeCanvas: toolbar always visible").needs_reload_ui(),
|
|
},
|
|
)
|
|
)
|