Skip to content

Commit

Permalink
Merge pull request #929 from IAHispano/formatter/main
Browse files Browse the repository at this point in the history
chore(format): run black on main
  • Loading branch information
blaisewf authored Dec 27, 2024
2 parents 456ecde + 668d583 commit fb5fb93
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 fb5fb93

Please sign in to comment.