From 913040806c0ad7c20c3102d8936ae4a39863d4d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:31:43 +0900 Subject: [PATCH] chore(format): run black on dev (#41) Co-authored-by: github-actions[bot] --- rvc/f0/mel.py | 4 ++-- rvc/f0/stft.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rvc/f0/mel.py b/rvc/f0/mel.py index 439a258..2c06800 100644 --- a/rvc/f0/mel.py +++ b/rvc/f0/mel.py @@ -19,7 +19,7 @@ class MelSpectrogram(torch.nn.Module): mel_fmin: int = 0, mel_fmax: int = None, clamp: float = 1e-5, - device = torch.device("cpu"), + device=torch.device("cpu"), ): super().__init__() if n_fft is None: @@ -45,7 +45,7 @@ class MelSpectrogram(torch.nn.Module): hop_length=hop_length, win_length=win_length, window="hann", - use_torch_stft="privateuseone" not in str(device) + use_torch_stft="privateuseone" not in str(device), ).to(device) def forward( diff --git a/rvc/f0/stft.py b/rvc/f0/stft.py index 262f3c7..b84daa8 100644 --- a/rvc/f0/stft.py +++ b/rvc/f0/stft.py @@ -14,7 +14,7 @@ class STFT(torch.nn.Module): hop_length=512, win_length: Optional[int] = None, window="hann", - use_torch_stft = True, + use_torch_stft=True, ): """ This module implements an STFT using 1D convolution and 1D transpose convolutions.