Skip to content

Commit

Permalink
chore(format): run black on main
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 27, 2024
1 parent 20796fd commit 668d583
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rvc/train/preprocess/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ def process_audio(
while True:
start = int(self.sr * (PERCENTAGE - OVERLAP) * i)
i += 1
if len(audio_segment[start:]) > (PERCENTAGE + OVERLAP) * self.sr:
if (
len(audio_segment[start:])
> (PERCENTAGE + OVERLAP) * self.sr
):
tmp_audio = audio_segment[
start : start + int(PERCENTAGE * self.sr)
]
Expand Down
2 changes: 1 addition & 1 deletion rvc/train/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def load_wav_to_torch(full_path):
Args:
full_path (str): The path to the WAV file.
"""
data, sample_rate = sf.read(full_path, dtype='float32')
data, sample_rate = sf.read(full_path, dtype="float32")
return torch.FloatTensor(data), sample_rate


Expand Down

0 comments on commit 668d583

Please sign in to comment.