Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LqNoob/Neural-Codec-and-Speech-Language-Models
/ types & classes
Types & classes
29 in github.com/LqNoob/Neural-Codec-and-Speech-Language-Models
⨍
Functions
116
◇
Types & classes
29
↓ 5 callers
Class
DiscriminatorP
generator/hifigan/hifigan.py:191
↓ 3 callers
Class
DiscriminatorS
generator/hifigan/hifigan.py:271
↓ 2 callers
Class
AdaLayerNorm
Adaptive Layer Normalization module with learnable embeddings per `num_embeddings` classes Args: num_embeddings (int): Number of emb
generator/vocos/vocos.py:530
↓ 2 callers
Class
IMDCT
Inverse Modified Discrete Cosine Transform (IMDCT) module. Args: frame_len (int): Length of the MDCT frame. padding (str, op
generator/vocos/vocos.py:231
↓ 1 callers
Class
ConvNeXtBlock
ConvNeXt Block adapted from https://github.com/facebookresearch/ConvNeXt to 1D audio signal. Args: dim (int): Number of input channels.
generator/vocos/vocos.py:469
↓ 1 callers
Class
EuclideanCodebook
vector_quantizer/vector_quantize.py:76
↓ 1 callers
Class
ISTFT
Custom implementation of ISTFT since torch.istft doesn't allow custom padding (other than `center=True`) with windowing. This is because the
generator/vocos/vocos.py:84
↓ 1 callers
Class
ISTFTHead
ISTFT Head module for predicting STFT complex coefficients. Args: dim (int): Hidden dimension of the model. n_fft (int): Siz
generator/vocos/vocos.py:314
↓ 1 callers
Class
ResBlock1
ResBlock adapted from HiFi-GAN V1 (https://github.com/jik876/hifi-gan) with dilated 1D convolutions, but without upsampling layers. Args
generator/vocos/vocos.py:560
↓ 1 callers
Class
SimpleCodebook
vector_quantizer/vector_quantize.py:194
↓ 1 callers
Class
VocosBackbone
Vocos backbone module built with ConvNeXt blocks. Supports additional conditioning with Adaptive Layer Normalization Args: input_cha
generator/vocos/vocos.py:720
Class
Backbone
Base class for the generator's backbone. It preserves the same temporal resolution across all layers.
generator/vocos/vocos.py:704
Class
FSQ
vector_quantizer/finite_scalar_quantization.py:46
Class
FactorizedVectorQuantize
vector_quantizer/factorized_vector_quantize.py:22
Class
FourierHead
Base class for inverse fourier modules.
generator/vocos/vocos.py:299
Class
Generator
generator/hifigan/hifigan.py:127
Class
IMDCTCosHead
IMDCT Head module for predicting MDCT coefficients with parametrizing MDCT = exp(m) · cos(p) Args: dim (int): Hidden dimension of th
generator/vocos/vocos.py:424
Class
IMDCTSymExpHead
IMDCT Head module for predicting MDCT coefficients with symmetric exponential function Args: dim (int): Hidden dimension of the mode
generator/vocos/vocos.py:364
Class
LookupFreeQuantize
vector_quantizer/lookup_free_quantize.py:22
Class
MDCT
Modified Discrete Cosine Transform (MDCT) module. Args: frame_len (int): Length of the MDCT frame. padding (str, optional):
generator/vocos/vocos.py:170
Class
MultiPeriodDiscriminator
generator/hifigan/hifigan.py:244
Class
MultiScaleDiscriminator
generator/hifigan/hifigan.py:299
Class
ResBlock1
generator/hifigan/hifigan.py:17
Class
ResBlock2
generator/hifigan/hifigan.py:91
Class
ResidualVQ
Introduced in SoundStream: An end2end neural audio codec https://arxiv.org/abs/2107.03312
vector_quantizer/residual_vq.py:22
Class
STFT
generator/vocos/vocos.py:40
Class
VectorQuantize
Vector quantization and factorized vecotor quantization implementation Args: input_dim (int): Dimension of input. codebook_size (i
vector_quantizer/vector_quantize.py:258
Class
Vocos
generator/vocos/vocos.py:824
Class
VocosResNetBackbone
Vocos backbone module built with ResBlocks. Args: input_channels (int): Number of input features channels. dim (int): Hidden
generator/vocos/vocos.py:786