Antoni Bigata commited on
Commit
a5ed597
·
1 Parent(s): c33a88b

requirements

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -244,7 +244,7 @@ def compute_video_embedding(video_reader, min_len, vae_model):
244
  return encoded, video_frames
245
 
246
 
247
- @spaces.GPU(duration=120)
248
  @torch.no_grad()
249
  def compute_hubert_embedding(raw_audio, hubert_model):
250
  """Compute embeddings from audio"""
@@ -291,7 +291,7 @@ def compute_hubert_embedding(raw_audio, hubert_model):
291
  return audio_embeddings
292
 
293
 
294
- @spaces.GPU(duration=120)
295
  @torch.no_grad()
296
  def compute_wavlm_embedding(raw_audio, wavlm_model):
297
  """Compute embeddings from audio"""
@@ -398,7 +398,7 @@ def extract_video_landmarks(video_frames, landmarks_extractor):
398
  return np.array(processed_landmarks)
399
 
400
 
401
- @spaces.GPU(duration=600)
402
  @torch.no_grad()
403
  def sample(
404
  audio_list,
@@ -617,7 +617,7 @@ def sample(
617
  return complete_video
618
 
619
 
620
- @spaces.GPU(duration=600)
621
  @torch.no_grad()
622
  def process_video(video_input, audio_input, max_num_seconds):
623
  """Main processing function to generate synchronized video"""
 
244
  return encoded, video_frames
245
 
246
 
247
+ @spaces.GPU(duration=60)
248
  @torch.no_grad()
249
  def compute_hubert_embedding(raw_audio, hubert_model):
250
  """Compute embeddings from audio"""
 
291
  return audio_embeddings
292
 
293
 
294
+ @spaces.GPU(duration=60)
295
  @torch.no_grad()
296
  def compute_wavlm_embedding(raw_audio, wavlm_model):
297
  """Compute embeddings from audio"""
 
398
  return np.array(processed_landmarks)
399
 
400
 
401
+ @spaces.GPU(duration=200)
402
  @torch.no_grad()
403
  def sample(
404
  audio_list,
 
617
  return complete_video
618
 
619
 
620
+ @spaces.GPU(duration=200)
621
  @torch.no_grad()
622
  def process_video(video_input, audio_input, max_num_seconds):
623
  """Main processing function to generate synchronized video"""