| 59 | |
| 60 | |
| 61 | class 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 |
| 68 | |
| 69 | |
| 70 | class LossAwareSampler(ScheduleSampler): |
no outgoing calls
no test coverage detected