MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / gather_ops

Function gather_ops

src/backbone.py:36–49  ·  view source on GitHub ↗

Parameters for depthmap generation

()

Source from the content-addressed store, hash-verified

34 return default
35
36 def gather_ops():
37 """Parameters for depthmap generation"""
38 ops = {}
39 for s in ['boost_rmax', 'precision', 'no_half', 'marigold_ensembles', 'marigold_steps']:
40 c = get_opt('depthmap_script_' + s, None)
41 if c is None:
42 c = get_cmd_opt(s, None)
43 if c is not None:
44 ops[s] = c
45 # sanitize for integers.
46 for s in ['marigold_ensembles', 'marigold_steps']:
47 if s in ops:
48 ops[s] = int(ops[s])
49 return ops
50
51
52 def get_outpath():

Callers

nothing calls this directly

Calls 2

get_optFunction · 0.85
get_cmd_optFunction · 0.85

Tested by

no test coverage detected