MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / add_option

Function add_option

scripts/depthmap.py:84–85  ·  view source on GitHub ↗
(name, default_value, description, name_prefix='depthmap_script')

Source from the content-addressed store, hash-verified

82 section = ('depthmap-script', "Depthmap extension")
83
84 def add_option(name, default_value, description, name_prefix='depthmap_script'):
85 shared.opts.add_option(f"{name_prefix}_{name}", shared.OptionInfo(default_value, description, section=section))
86
87 add_option('keepmodels', False, "Do not unload depth and pix2pix models.")
88

Callers 1

on_ui_settingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected