Update preprocess_hubert_f0.py

This commit is contained in:
Stardust·减 2023-07-22 21:25:50 +08:00 committed by GitHub
parent 75988d007c
commit 989b7194f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -37,7 +37,6 @@ def process_one(filename, hmodel,f0p,diff=False,mel_extractor=None):
if torch.cuda.is_available():
gpu_id = rank % torch.cuda.device_count()
device = torch.device(f"cuda:{gpu_id}")
print(f"Rank {rank} uses device {device}")
soft_path = filename + ".soft.pt"
if not os.path.exists(soft_path):
wav16k = librosa.resample(wav, orig_sr=sampling_rate, target_sr=16000)