MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / __init__

Method __init__

src/diffusion/resample.py:62–64  ·  view source on GitHub ↗
(self, diffusion)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected