Function
add_option
(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 | |
Tested by
no test coverage detected