mrfakename commited on
Commit
1afe74a
1 Parent(s): f575abd

Sync from GitHub repo

Browse files

This Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there

Files changed (1) hide show
  1. model/utils_infer.py +1 -2
model/utils_infer.py CHANGED
@@ -24,7 +24,6 @@ from model.utils import (
24
 
25
  def get_device():
26
  device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
27
- # print(f"Using {device} device")
28
  return device
29
 
30
 
@@ -273,7 +272,7 @@ def infer_batch_process(
273
  if sr != target_sample_rate:
274
  resampler = torchaudio.transforms.Resample(sr, target_sample_rate)
275
  audio = resampler(audio)
276
- audio = audio.to()
277
 
278
  generated_waves = []
279
  spectrograms = []
 
24
 
25
  def get_device():
26
  device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
 
27
  return device
28
 
29
 
 
272
  if sr != target_sample_rate:
273
  resampler = torchaudio.transforms.Resample(sr, target_sample_rate)
274
  audio = resampler(audio)
275
+ audio = audio.to(device)
276
 
277
  generated_waves = []
278
  spectrograms = []