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

Class UniformSampler

diff2flow/openai_diffusion/timestep_sampler.py:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
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
69
70
71class LossAwareSampler(ScheduleSampler):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected