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

Method __call__

sat/sgm/modules/diffusionmodules/sampling.py:144–158  ·  view source on GitHub ↗
(self, denoiser, x, cond, uc=None, num_steps=None)

Source from the content-addressed store, hash-verified

142 return x
143
144 def __call__(self, denoiser, x, cond, uc=None, num_steps=None):
145 x, s_in, sigmas, num_sigmas, cond, uc = self.prepare_sampling_loop(x, cond, uc, num_steps)
146
147 for i in self.get_sigma_gen(num_sigmas):
148 x = self.sampler_step(
149 s_in * sigmas[i],
150 s_in * sigmas[i + 1],
151 denoiser,
152 x,
153 cond,
154 uc,
155 self.s_noise,
156 )
157
158 return x
159
160
161class AncestralSampler(SingleStepDiffusionSampler):

Callers

nothing calls this directly

Calls 3

sampler_stepMethod · 0.95
get_sigma_genMethod · 0.80
prepare_sampling_loopMethod · 0.45

Tested by

no test coverage detected