MCPcopy Create free account
hub / github.com/CompVis/zigma / parse_sde_args

Function parse_sde_args

utils/train_utils_args.py:27–37  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

25 group.add_argument("--likelihood", action="store_true")
26
27def parse_sde_args(parser):
28 group = parser.add_argument_group("SDE arguments")
29 group.add_argument("--sampling-method", type=str, default="Euler", choices=["Euler", "Heun"])
30 group.add_argument("--diffusion-form", type=str, default="sigma", \
31 choices=["constant", "SBDM", "sigma", "linear", "decreasing", "increasing-decreasing"],\
32 help="form of diffusion coefficient in the SDE")
33 group.add_argument("--diffusion-norm", type=float, default=1.0)
34 group.add_argument("--last-step", type=none_or_str, default="Mean", choices=[None, "Mean", "Tweedie", "Euler"],\
35 help="form of last step taken in the SDE")
36 group.add_argument("--last-step-size", type=float, default=0.04, \
37 help="size of the last step taken")
38
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected