Spaces:
Sleeping
Sleeping
File size: 857 Bytes
eb9c81a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | from dataclasses import dataclass, field
from typing import Tuple
@dataclass
class Lambdas:
mel_loss: float = 15.0
adv_feat_loss: float = 2.0
adv_gen_loss: float = 1.0
@dataclass
class ISTFTHeadArgs:
dim: int = 512
n_fft: int = 1024
hop_length: int = 320
@dataclass
class VocosVocoderArgs:
input_channels: int = 80
dim: int = 512
mlp_ratio: float = 3.0
kernel_size: int = 7
dilation: int = 1
norm: str = "weight_norm"
causal: bool = True
pad_mode: str = "constant"
num_layers: int = 8
layer_scale_init_value: float = 1e-6
@dataclass
class VocoderFeatureArgs:
sample_rate: int = 16000
n_fft: int = 1024
win_length: int = 1024
hop_length: int = 320
n_mels: int = 80
f_min: float = 0.0
f_max: float = None
causal: bool = True
pad_mode: str = "constant" |