Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZhangXInFD/SpeechTokenizer
/ types & classes
Types & classes
28 in github.com/ZhangXInFD/SpeechTokenizer
⨍
Functions
140
◇
Types & classes
28
↓ 7 callers
Class
SConv1d
Conv1d with some builtin handling of asymmetric or causal padding and normalization.
speechtokenizer/modules/conv.py:175
↓ 5 callers
Class
DiscriminatorP
speechtokenizer/discriminators.py:22
↓ 4 callers
Class
NormConv2d
Wrapper around Conv2d and normalization applied to this conv to provide a uniform interface across normalization approaches.
speechtokenizer/modules/conv.py:125
↓ 3 callers
Class
DiscriminatorS
speechtokenizer/discriminators.py:85
↓ 2 callers
Class
SEANetDecoder
SEANet decoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (i
speechtokenizer/modules/seanet.py:167
↓ 2 callers
Class
SEANetEncoder
SEANet encoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (i
speechtokenizer/modules/seanet.py:85
↓ 2 callers
Class
SEANetResnetBlock
Residual block from SEANet model. Args: dim (int): Dimension of the input/output kernel_sizes (list): List of kernel sizes for the
speechtokenizer/modules/seanet.py:39
↓ 2 callers
Class
SLSTM
LSTM without worrying about the hidden state, nor the layout of the data. Expects input as convolutional layout.
speechtokenizer/modules/lstm.py:12
↓ 2 callers
Class
audioDataset
speechtokenizer/trainer/dataset.py:33
↓ 1 callers
Class
ArithmeticCoder
ArithmeticCoder, Let us take a distribution `p` over `N` symbols, and assume we have a stream of random variables `s_t` sampled from `p`. Let
speechtokenizer/quantization/ac.py:56
↓ 1 callers
Class
ArithmeticDecoder
ArithmeticDecoder, see `ArithmeticCoder` for a detailed explanation. Note that this must be called with **exactly** the same parameters and seque
speechtokenizer/quantization/ac.py:170
↓ 1 callers
Class
ConvLayerNorm
Convolution-friendly LayerNorm that moves channels to last dimensions before running the normalization and moves them back to original positi
speechtokenizer/modules/norm.py:16
↓ 1 callers
Class
DiscriminatorSTFT
STFT sub-discriminator. Args: filters (int): Number of filters in convolutions in_channels (int): Number of input channels. Defaul
speechtokenizer/discriminators.py:154
↓ 1 callers
Class
EuclideanCodebook
Codebook with Euclidean distance. Args: dim (int): Dimension. codebook_size (int): Codebook size. kmeans_init (bool): Whet
speechtokenizer/quantization/core_vq.py:97
↓ 1 callers
Class
MultiPeriodDiscriminator
speechtokenizer/discriminators.py:58
↓ 1 callers
Class
MultiScaleDiscriminator
speechtokenizer/discriminators.py:113
↓ 1 callers
Class
MultiScaleSTFTDiscriminator
Multi-Scale STFT (MS-STFT) discriminator. Args: filters (int): Number of filters in convolutions in_channels (int): Number of inpu
speechtokenizer/discriminators.py:230
↓ 1 callers
Class
NormConv1d
Wrapper around Conv1d and normalization applied to this conv to provide a uniform interface across normalization approaches.
speechtokenizer/modules/conv.py:108
↓ 1 callers
Class
NormConvTranspose1d
Wrapper around ConvTranspose1d and normalization applied to this conv to provide a uniform interface across normalization approaches.
speechtokenizer/modules/conv.py:142
↓ 1 callers
Class
ResidualVectorQuantization
Residual vector quantization implementation. Follows Algorithm 1. in https://arxiv.org/pdf/2107.03312.pdf
speechtokenizer/quantization/core_vq.py:314
↓ 1 callers
Class
ResidualVectorQuantizer
Residual Vector Quantizer. Args: dimension (int): Dimension of the codebooks. n_q (int): Number of residual vector quantizers used
speechtokenizer/quantization/vq.py:28
↓ 1 callers
Class
SConvTranspose1d
ConvTranspose1d with some builtin handling of asymmetric or causal padding and normalization.
speechtokenizer/modules/conv.py:213
↓ 1 callers
Class
SpeechTokenizer
speechtokenizer/model.py:14
↓ 1 callers
Class
SpeechTokenizerTrainer
speechtokenizer/trainer/trainer.py:57
↓ 1 callers
Class
VectorQuantization
Vector quantization implementation. Currently supports only euclidean distance. Args: dim (int): Dimension codebook_size (int)
speechtokenizer/quantization/core_vq.py:232
Class
NormConvTranspose2d
Wrapper around ConvTranspose2d and normalization applied to this conv to provide a uniform interface across normalization approaches.
speechtokenizer/modules/conv.py:159
Class
QuantizedResult
speechtokenizer/quantization/vq.py:20
Class
Snake1d
speechtokenizer/modules/seanet.py:31