()
| 79 | # TODO: some of them may be put into the main ui pane |
| 80 | # TODO: allow in standalone mode |
| 81 | def on_ui_settings(): |
| 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 | |
| 89 | add_option('boost_rmax', 1600, "Maximum wholesize for boost (Rmax)") |
| 90 | add_option('marigold_ensembles', 5, "How many ensembles to use for Marigold") |
| 91 | add_option('marigold_steps', 10, "How many denoising steps to use for Marigold") |
| 92 | |
| 93 | add_option('save_ply', False, "Save additional PLY file with 3D inpainted mesh.") |
| 94 | add_option('show_3d', True, "Enable showing 3D Meshes in output tab. (Experimental)") |
| 95 | add_option('show_3d_inpaint', True, "Also show 3D Inpainted Mesh in 3D Mesh output tab. (Experimental)") |
| 96 | add_option('mesh_maxsize', 2048, "Max size for generating simple mesh.") |
| 97 | |
| 98 | add_option('gen_heatmap_from_ui', False, "Show an option to generate HeatMap in the UI") |
| 99 | add_option('extra_stereomodes', False, "Enable more possible outputs for stereoimage generation") |
| 100 | |
| 101 | |
| 102 | from modules import script_callbacks |
nothing calls this directly
no test coverage detected