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

Method get_mult

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

Source from the content-addressed store, hash-verified

308 return h, None, t, t_next
309
310 def get_mult(self, h, r, t, t_next, previous_sigma):
311 mult1 = to_sigma(t_next) / to_sigma(t)
312 mult2 = (-h).expm1()
313
314 if previous_sigma is not None:
315 mult3 = 1 + 1 / (2 * r)
316 mult4 = 1 / (2 * r)
317 return mult1, mult2, mult3, mult4
318 else:
319 return mult1, mult2
320
321 def sampler_step(
322 self,

Callers 1

sampler_stepMethod · 0.95

Calls 1

to_sigmaFunction · 0.85

Tested by

no test coverage detected