MCPcopy Create free account
hub / github.com/CompVis/diff2flow / __init__

Method __init__

diff2flow/openai_diffusion/timestep_sampler.py:63–65  ·  view source on GitHub ↗
(self, diffusion)

Source from the content-addressed store, hash-verified

61
62class UniformSampler(ScheduleSampler):
63 def __init__(self, diffusion):
64 self.diffusion = diffusion
65 self._weights = np.ones([diffusion.num_timesteps])
66
67 def weights(self):
68 return self._weights

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected