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

Function check_choices

dzoedepth/utils/config.py:344–347  ·  view source on GitHub ↗
(name, value, choices)

Source from the content-addressed store, hash-verified

342
343
344def check_choices(name, value, choices):
345 # return # No checks in dev branch
346 if value not in choices:
347 raise ValueError(f"{name} {value} not in supported choices {choices}")
348
349
350KEYS_TYPE_BOOL = ["use_amp", "distributed", "use_shared_dict", "same_lr", "aug", "three_phase",

Callers 1

get_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected