MCPcopy
hub / github.com/zai-org/CogVideo / __init__

Method __init__

sat/sgm/modules/diffusionmodules/guiders.py:27–36  ·  view source on GitHub ↗
(self, scale, dyn_thresh_config=None)

Source from the content-addressed store, hash-verified

25 """
26
27 def __init__(self, scale, dyn_thresh_config=None):
28 self.scale = scale
29 scale_schedule = lambda scale, sigma: scale # independent of step
30 self.scale_schedule = partial(scale_schedule, scale)
31 self.dyn_thresh = instantiate_from_config(
32 default(
33 dyn_thresh_config,
34 {"target": "sgm.modules.diffusionmodules.sampling_utils.NoDynamicThresholding"},
35 )
36 )
37
38 def __call__(self, x, sigma, scale=None):
39 x_u, x_c = x.chunk(2)

Callers 1

__init__Method · 0.45

Calls 2

instantiate_from_configFunction · 0.50
defaultFunction · 0.50

Tested by

no test coverage detected