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:
committed by
GitHub
parent
22715eab7c
commit
913040806c
@@ -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(
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user