MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / UniformSampler

Class UniformSampler

text2motion/models/gaussian_diffusion.py:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65class UniformSampler(ScheduleSampler):
66 def __init__(self, diffusion):
67 self.diffusion = diffusion
68 self._weights = np.ones([diffusion.num_timesteps])
69
70 def weights(self):
71 return self._weights
72
73
74class LossAwareSampler(ScheduleSampler):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected