Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SWivid committed Oct 22, 2024
1 parent 752f6f5 commit 198d44d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions model/utils_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

def get_device():
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
# print(f"Using {device} device")
return device


Expand Down Expand Up @@ -273,7 +272,7 @@ def infer_batch_process(
if sr != target_sample_rate:
resampler = torchaudio.transforms.Resample(sr, target_sample_rate)
audio = resampler(audio)
audio = audio.to()
audio = audio.to(device)

generated_waves = []
spectrograms = []
Expand Down

0 comments on commit 198d44d

Please sign in to comment.