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

Method get_mult

sat/sgm/modules/diffusionmodules/sampling.py:381–390  ·  view source on GitHub ↗
(self, h, r, t, t_next, previous_sigma)

Source from the content-addressed store, hash-verified

379 return h, None, t, t_next
380
381 def get_mult(self, h, r, t, t_next, previous_sigma):
382 mult1 = to_sigma(t_next) / to_sigma(t) * (-h).exp()
383 mult2 = (-2 * h).expm1()
384
385 if previous_sigma is not None:
386 mult3 = 1 + 1 / (2 * r)
387 mult4 = 1 / (2 * r)
388 return mult1, mult2, mult3, mult4
389 else:
390 return mult1, mult2
391
392 def sampler_step(
393 self,

Callers 1

sampler_stepMethod · 0.95

Calls 1

to_sigmaFunction · 0.85

Tested by

no test coverage detected