| 63 | |
| 64 | |
| 65 | class 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 | |
| 74 | class LossAwareSampler(ScheduleSampler): |
no outgoing calls
no test coverage detected