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

Method __call__

sat/sgm/modules/diffusionmodules/sigma_sampling.py:52–54  ·  view source on GitHub ↗
(self, n_samples, rand=None)

Source from the content-addressed store, hash-verified

50 self.p_std = p_std
51
52 def __call__(self, n_samples, rand=None):
53 log_sigma = self.p_mean + self.p_std * default(rand, torch.randn((n_samples,)))
54 return log_sigma.exp()
55
56
57class DiscreteSampling:

Callers

nothing calls this directly

Calls 1

defaultFunction · 0.50

Tested by

no test coverage detected