| 64 | |
| 65 | |
| 66 | class DiffusionUncond(nn.Module): |
| 67 | def __init__(self, global_args): |
| 68 | super().__init__() |
| 69 | |
| 70 | self.diffusion = DiffusionAttnUnet1D(global_args, n_attn_layers=4) |
| 71 | self.diffusion_ema = deepcopy(self.diffusion) |
| 72 | self.rng = torch.quasirandom.SobolEngine(1, scramble=True) |
| 73 | |
| 74 | |
| 75 | def download(model_name): |