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

Method __init__

sat/sgm/modules/diffusionmodules/denoiser.py:10–14  ·  view source on GitHub ↗
(self, weighting_config, scaling_config)

Source from the content-addressed store, hash-verified

8
9class Denoiser(nn.Module):
10 def __init__(self, weighting_config, scaling_config):
11 super().__init__()
12
13 self.weighting = instantiate_from_config(weighting_config)
14 self.scaling = instantiate_from_config(scaling_config)
15
16 def possibly_quantize_sigma(self, sigma):
17 return sigma

Callers 1

__init__Method · 0.45

Calls 1

instantiate_from_configFunction · 0.50

Tested by

no test coverage detected