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