mirror of
https://github.com/svc-develop-team/so-vits-svc.git
synced 2025-01-09 04:27:31 +08:00
Update preprocess_hubert_f0.py
This commit is contained in:
parent
75988d007c
commit
989b7194f6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user