MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / __init__

Method __init__

mogen/models/utils/gaussian_diffusion.py:66–68  ·  view source on GitHub ↗
(self, diffusion)

Source from the content-addressed store, hash-verified

64class UniformSampler(ScheduleSampler):
65
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected