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

Method __init__

sat/sgm/modules/diffusionmodules/sampling.py:162–167  ·  view source on GitHub ↗
(self, eta=1.0, s_noise=1.0, *args, **kwargs)

Source from the content-addressed store, hash-verified

160
161class AncestralSampler(SingleStepDiffusionSampler):
162 def __init__(self, eta=1.0, s_noise=1.0, *args, **kwargs):
163 super().__init__(*args, **kwargs)
164
165 self.eta = eta
166 self.s_noise = s_noise
167 self.noise_sampler = lambda x: torch.randn_like(x)
168
169 def ancestral_euler_step(self, x, denoised, sigma, sigma_down):
170 d = to_d(x, sigma, denoised)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected