MCPcopy Create free account
hub / github.com/Little-Podi/AdaWorld / init_sampling

Function init_sampling

worldmodel/sample_utils.py:97–108  ·  view source on GitHub ↗
(
        steps: int = 40,
        sampler: str = "EulerEDMSampler",
        discretization: str = "EDMShiftDiscretization",
        guider: str = "VanillaCFG",
        cfg_scale: float = 7.5,
        n_context_frames: int = 5
)

Source from the content-addressed store, hash-verified

95
96
97def init_sampling(
98 steps: int = 40,
99 sampler: str = "EulerEDMSampler",
100 discretization: str = "EDMShiftDiscretization",
101 guider: str = "VanillaCFG",
102 cfg_scale: float = 7.5,
103 n_context_frames: int = 5
104):
105 discretization_config = get_discretization(discretization)
106 guider_config = get_guider(guider, cfg_scale)
107 sampler = get_sampler(sampler, steps, discretization_config, guider_config, n_context_frames)
108 return sampler
109
110
111def get_discretization(discretization):

Callers 1

run_fdmFunction · 0.85

Calls 3

get_discretizationFunction · 0.85
get_guiderFunction · 0.85
get_samplerFunction · 0.85

Tested by

no test coverage detected