1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 09:10:25 +08:00

chore(format): run black on dev (#41)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-06-12 17:31:43 +09:00
committed by GitHub
parent 22715eab7c
commit 913040806c
2 changed files with 3 additions and 3 deletions

View File

@@ -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(

View File

@@ -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.