MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __call__

Method __call__

sat/sgm/modules/diffusionmodules/denoiser_scaling.py:35–40  ·  view source on GitHub ↗
(self, sigma: torch.Tensor)

Source from the content-addressed store, hash-verified

33
34class VScaling:
35 def __call__(self, sigma: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
36 c_skip = 1.0 / (sigma**2 + 1.0)
37 c_out = -sigma / (sigma**2 + 1.0) ** 0.5
38 c_in = 1.0 / (sigma**2 + 1.0) ** 0.5
39 c_noise = sigma.clone()
40 return c_skip, c_out, c_in, c_noise
41
42
43class VScalingWithEDMcNoise(DenoiserScaling):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected