Spaces:
Paused
Paused
Update usr/diff/shallow_diffusion_tts.py
Browse files
usr/diff/shallow_diffusion_tts.py
CHANGED
|
@@ -255,6 +255,7 @@ class GaussianDiffusion(nn.Module):
|
|
| 255 |
x = torch.randn(shape, device=device)
|
| 256 |
|
| 257 |
if hparams.get('pndm_speedup'):
|
|
|
|
| 258 |
self.noise_list = deque(maxlen=4)
|
| 259 |
iteration_interval = hparams['pndm_speedup']
|
| 260 |
for i in tqdm(reversed(range(0, t, iteration_interval)), desc='sample time step',
|
|
|
|
| 255 |
x = torch.randn(shape, device=device)
|
| 256 |
|
| 257 |
if hparams.get('pndm_speedup'):
|
| 258 |
+
print(f"pndm speedup: {hparams['pndm_speedup']}")
|
| 259 |
self.noise_list = deque(maxlen=4)
|
| 260 |
iteration_interval = hparams['pndm_speedup']
|
| 261 |
for i in tqdm(reversed(range(0, t, iteration_interval)), desc='sample time step',
|