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

Method __call__

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

Source from the content-addressed store, hash-verified

181 return x
182
183 def __call__(self, denoiser, x, cond, uc=None, num_steps=None):
184 x, s_in, sigmas, num_sigmas, cond, uc = self.prepare_sampling_loop(x, cond, uc, num_steps)
185
186 for i in self.get_sigma_gen(num_sigmas):
187 x = self.sampler_step(
188 s_in * sigmas[i],
189 s_in * sigmas[i + 1],
190 denoiser,
191 x,
192 cond,
193 uc,
194 )
195
196 return x
197
198
199class LinearMultistepSampler(BaseDiffusionSampler):

Callers

nothing calls this directly

Calls 3

get_sigma_genMethod · 0.80
prepare_sampling_loopMethod · 0.45
sampler_stepMethod · 0.45

Tested by

no test coverage detected