kevinwang676 commited on
Commit
1db33f9
·
verified ·
1 Parent(s): ae15622

Update usr/diff/shallow_diffusion_tts.py

Browse files
Files changed (1) hide show
  1. usr/diff/shallow_diffusion_tts.py +0 -2
usr/diff/shallow_diffusion_tts.py CHANGED
@@ -15,7 +15,6 @@ from modules.fastspeech.fs2 import FastSpeech2
15
  from modules.diffsinger_midi.fs2 import FastSpeech2MIDI
16
  from utils.hparams import hparams
17
 
18
- import spaces
19
 
20
  def exists(x):
21
  return x is not None
@@ -171,7 +170,6 @@ class GaussianDiffusion(nn.Module):
171
  Use the PLMS method from [Pseudo Numerical Methods for Diffusion Models on Manifolds](https://arxiv.org/abs/2202.09778).
172
  """
173
 
174
- @spaces.GPU(duration=8)
175
  def get_x_pred(x, noise_t, t):
176
  a_t = extract(self.alphas_cumprod, t, x.shape)
177
  if t[0] < interval:
 
15
  from modules.diffsinger_midi.fs2 import FastSpeech2MIDI
16
  from utils.hparams import hparams
17
 
 
18
 
19
  def exists(x):
20
  return x is not None
 
170
  Use the PLMS method from [Pseudo Numerical Methods for Diffusion Models on Manifolds](https://arxiv.org/abs/2202.09778).
171
  """
172
 
 
173
  def get_x_pred(x, noise_t, t):
174
  a_t = extract(self.alphas_cumprod, t, x.shape)
175
  if t[0] < interval: