(self, shape, device, freq, noise_fn=torch.randn,
clip_denoised=True,keep_running=False)
| 451 | keep_running=keep_running) |
| 452 | |
| 453 | def gen_sample_traj(self, shape, device, freq, noise_fn=torch.randn, |
| 454 | clip_denoised=True,keep_running=False): |
| 455 | return self.diffusion.p_sample_loop_trajectory(self._denoise, shape=shape, device=device, noise_fn=noise_fn, freq=freq, |
| 456 | clip_denoised=clip_denoised, |
| 457 | keep_running=keep_running) |
| 458 | |
| 459 | def train(self): |
| 460 | self.model.train() |
no test coverage detected