MCPcopy Create free account

hub / github.com/espnet/espnet / types & classes

Types & classes1,556 in github.com/espnet/espnet

↓ 194 callersClassClassChoices
Helper class to manage the options for variable objects and its configuration. Example: >>> class A: ... def __init__(self, foo=3):
espnet2/train/class_choices.py:9
↓ 65 callersClassLayerNorm
Layer normalization module. Args: nout (int): Output dim size. dim (int): Dimension to be normalized.
espnet2/legacy/nets/pytorch_backend/transformer/layer_norm.py:12
↓ 47 callersClassCTC
CTC module. Args: odim: dimension of outputs encoder_output_size: number of encoder projection units dropout_rate: dropou
espnet2/asr/ctc.py:9
↓ 47 callersClassESPnetLightningModule
ESPnet3 LightningModule wrapper for model training and data integration. This wrapper keeps the common ESPnet3 model contract unchanged: ```
espnet3/components/modeling/lightning_module.py:28
↓ 43 callersClassArgumentParser
Simple implementation of ArgumentParser supporting config file This class is originated from https://github.com/bw2/ConfigArgParse, but this
espnet2/utils/config_argparse.py:7
↓ 38 callersClassCommonCollateFn
Functor class of common_collate_fn()
espnet2/train/collate_fn.py:15
↓ 38 callersClassReporter
Reporter class. Examples: >>> reporter = Reporter() >>> with reporter.observe('train') as sub_reporter: ... for batc
espnet2/train/reporter.py:273
↓ 35 callersClassTokenIDConverter
espnet2/text/token_id_converter.py:8
↓ 34 callersClassNOTE
espnet2/fileio/score_scp.py:21
↓ 33 callersClassDatadirWriter
Writer class to create kaldi like data directory. Examples: >>> with DatadirWriter("output") as writer: ... # output/sub.txt
espnet2/fileio/datadir_writer.py:8
↓ 30 callersClassConformerEncoder
Conformer encoder module. Args: input_size (int): Input dimension. output_size (int): Dimension of attention. attention_h
espnet2/asr/encoder/conformer_encoder.py:53
↓ 24 callersClassConv1d
Conv1d module with customized initialization.
espnet2/gan_tts/wavenet/residual_block.py:17
↓ 24 callersClassEncoder
Encoder module of Spectrogram prediction network. This is a module of encoder of Spectrogram prediction network in Singing Tacotron, which de
espnet2/svs/singing_tacotron/encoder.py:20
↓ 24 callersClassHypothesis
Hypothesis data type.
espnet2/legacy/nets/beam_search.py:15
↓ 22 callersClassSTFTEncoder
STFT encoder for speech enhancement and separation
espnet2/enh/encoder/stft_encoder.py:8
↓ 22 callersClassTransformerDecoder
espnet2/asr/decoder/transformer_decoder.py:393
↓ 20 callersClassBeamSearch
Beam search implementation.
espnet2/legacy/nets/beam_search.py:34
↓ 20 callersClassHypothesis
Default hypothesis definition for Transducer search algorithms.
espnet2/asr/transducer/beam_search_transducer.py:22
↓ 20 callersClassMultiHeadedAttention
Multi-Head Attention layer inheriting SequenceModule. Comparing default MHA module in ESPnet, this module returns additional dummy state and
espnet2/asr/state_spaces/attention.py:12
↓ 19 callersClassDataOrganizer
Organizes training, validation, and test datasets into a unified interface. This class constructs combined datasets for training and validation,
espnet3/components/data/data_organizer.py:101
↓ 19 callersClassDummyMultiModel
test/espnet3/components/modeling/test_model_with_optim_scheduler.py:189
↓ 19 callersClassStft
espnet2/layers/stft.py:12
↓ 18 callersClassCombinedDataset
Combines multiple datasets into a single unified dataset-like interface. This class supports seamless access to multiple datasets as if they were
espnet3/components/data/dataset.py:12
↓ 18 callersClassLengthBonus
Length bonus in beam search.
espnet2/legacy/nets/scorers/length_bonus.py:10
↓ 18 callersClassOpenAIWhisperTokenIDConverter
espnet2/text/whisper_token_id_converter.py:20
↓ 18 callersClassPITSolver
espnet2/enh/loss/wrappers/pit_solver.py:10
↓ 18 callersClassTransformerEncoder
Transformer encoder.
espnet2/asr/encoder/beats_encoder.py:464
↓ 17 callersClassBranchformerEncoder
Branchformer encoder module.
espnet2/asr/encoder/branchformer_encoder.py:296
↓ 17 callersClassDiscriminatorAdversarialLoss
Discriminator adversarial loss module.
espnet2/gan_tts/hifigan/loss.py:78
↓ 17 callersClassESPnet3LightningTrainer
A wrapper around Lightning's Trainer to provide ESPnet3-specific integration. This trainer ensures compatibility with ESPnet's dataloader, callba
espnet3/components/trainers/trainer.py:32
↓ 17 callersClassGeneratorAdversarialLoss
Generator adversarial loss module.
espnet2/gan_tts/hifigan/loss.py:18
↓ 17 callersClassJointNetwork
Transducer joint network module. Args: output_size: Output size. encoder_size: Encoder output size. decoder_size: Decoder
espnet2/asr_transducer/joint_network.py:8
↓ 17 callersClassSingingScoreWriter
Writer class for 'score.scp' Examples: key1 /some/path/score.json key2 /some/path/score.json key3 /some/path/score.json
espnet2/fileio/score_scp.py:327
↓ 16 callersClassESPnetDataset
Pytorch Dataset class for ESPNet. Examples: >>> dataset = ESPnetDataset([('wav.scp', 'input', 'sound'), ...
espnet2/train/dataset.py:442
↓ 16 callersClassESPnetEnhancementModel
Speech enhancement or separation Frontend model
espnet2/enh/espnet_model.py:28
↓ 16 callersClassNpyScpWriter
Writer class for a scp file of numpy file. Examples: key1 /some/path/a.npy key2 /some/path/b.npy key3 /some/path/c.npy
espnet2/fileio/npy_scp.py:11
↓ 15 callersClassFeatureMatchLoss
Feature matching loss module.
espnet2/gan_tts/hifigan/loss.py:156
↓ 15 callersClassSTFTDecoder
STFT decoder for speech enhancement and separation
espnet2/enh/decoder/stft_decoder.py:10
↓ 14 callersClassConv2dSubsampling
Convolutional 2D subsampling (to 1/4 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:386
↓ 14 callersClassMultiConvConformerEncoder
Multiconvformer encoder module. Link to the paper: https://arxiv.org/abs/2407.03718 Args: input_size (int): Input dimension.
espnet2/asr/encoder/multiconvformer_encoder.py:48
↓ 13 callersClassCommonPreprocessor
espnet2/train/preprocessor.py:138
↓ 13 callersClassConv2DActNorm
Basic Conv2D + activation + instance norm building block.
espnet2/enh/layers/tcndenseunet.py:6
↓ 13 callersClassDataIteratorFactory
Factory for creating data iterators for SpeechLM training. This class manages batching, data sharding across GPUs, and provides DataLoader in
espnet2/speechlm/dataloader/iterator.py:21
↓ 13 callersClassDataLoaderBuilder
Builder class for constructing training and validation DataLoaders in ESPnet3. This class provides a unified interface for setting up PyTorch or
espnet3/components/data/dataloader.py:81
↓ 13 callersClassPhonemizer
Phonemizer module for various languages. This is wrapper module of https://github.com/bootphon/phonemizer. You can define various g2p modules
espnet2/text/phoneme_tokenizer.py:361
↓ 13 callersClassPositionalEncoding
Positional encoding. Args: d_model (int): Embedding dimension. dropout_rate (float): Dropout rate. max_len (int): Maximum
espnet2/legacy/nets/pytorch_backend/transformer/embedding.py:38
↓ 13 callersClassPositionwiseFeedForward
Positionwise feed forward layer. Args: idim (int): Input dimenstion. hidden_units (int): The number of hidden units. drop
espnet2/legacy/nets/pytorch_backend/transformer/positionwise_feed_forward.py:12
↓ 12 callersClassEBranchformerEncoder
E-Branchformer encoder module.
espnet2/asr/encoder/e_branchformer_encoder.py:186
↓ 12 callersClassIterableESPnetDataset
Pytorch Dataset class for ESPNet. Examples: >>> dataset = IterableESPnetDataset([('wav.scp', 'input', 'sound'), ...
espnet2/train/iterable_dataset.py:68
↓ 12 callersClassLinearDecoder
espnet2/asr/decoder/linear_decoder.py:16
↓ 12 callersClassSoundScpReader
Reader class for 'wav.scp'. Examples: wav.scp is a text file that looks like the following: key1 /some/path/a.wav key2 /
espnet2/fileio/sound_scp.py:81
↓ 12 callersClassSpeech2Text
Speech2Text class Examples: >>> import soundfile >>> speech2text = Speech2Text("asr_config.yml", "asr.pth") >>> audio, ra
espnet2/bin/asr_inference.py:73
↓ 12 callersClassVITS
VITS module (generator + discriminator). This is a module of VITS described in `Conditional Variational Autoencoder with Adversarial Learning
espnet2/gan_svs/vits/vits.py:60
↓ 11 callersClassConv2dSubsampling6
Convolutional 2D subsampling (to 1/6 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:692
↓ 11 callersClassConv2dSubsampling8
Convolutional 2D subsampling (to 1/8 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:783
↓ 11 callersClassDiscreteAudioIO
Discrete audio I/O using combined codec and SSL tokenizers. This class handles audio encoding/decoding using both: 1. Codec tokens (acoustic/
espnet2/speechlm/model/speechlm/multimodal_io/audio.py:60
↓ 11 callersClassEBranchformerCTCEncoder
E-Branchformer encoder module. Compared to the original encoder in e_branchformer_encoder.py, this variant supports additional cross-attentio
espnet2/asr/encoder/e_branchformer_ctc_encoder.py:202
↓ 11 callersClassHypothesis
Default hypothesis definition for Transducer search algorithms.
espnet2/asr/transducer/beam_search_transducer_streaming.py:23
↓ 11 callersClassPQMF
PQMF module. This module is based on `Near-perfect-reconstruction pseudo-QMF banks`_. .. _`Near-perfect-reconstruction pseudo-QMF banks`:
espnet2/gan_tts/melgan/pqmf.py:59
↓ 11 callersClassPostnet
Postnet module for Spectrogram prediction network. This is a module of Postnet in Spectrogram prediction network, which described in `Natural
espnet2/legacy/nets/pytorch_backend/tacotron2/decoder.py:149
↓ 11 callersClassRNN
RNN module. :param int idim: dimension of inputs :param int elayers: number of encoder layers :param int cdim: number of rnn units (resul
espnet2/legacy/nets/pytorch_backend/rnn/encoders.py:96
↓ 11 callersClassSoundScpWriter
Writer class for 'wav.scp' Args: outdir: scpfile: format: The output audio format multi_columns: Save multi chann
espnet2/fileio/sound_scp.py:166
↓ 11 callersClassTextReader
Dict-like text reader supporting plain and JSONL formats. Plain format: <id> <text content> JSONL format: {"id": "<id>", "text": "<text conte
espnet2/speechlm/dataloader/multimodal_loader/text_loader.py:113
↓ 11 callersClassTooShortUttError
Raised when the utt is too short for subsampling. Args: message (str): Message for error catch actual_size (int): the short size
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:14
↓ 11 callersClassTransformerEncoder
Transformer encoder module. Args: input_size: input dim output_size: dimension of attention attention_heads: the number o
espnet2/asr/encoder/transformer_encoder.py:43
↓ 11 callersClassTransformerLM
espnet2/lm/transformer_lm.py:12
↓ 10 callersClassCTCPrefixScorer
Decoder interface wrapper for CTCPrefixScore.
espnet2/legacy/nets/scorers/ctc.py:10
↓ 10 callersClassConv2dSubsampling2
Convolutional 2D subsampling (to 1/2 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:590
↓ 10 callersClassDescriptor
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/utils.py:187
↓ 10 callersClassDummyProvider
test/espnet3/systems/base/test_inference_runner.py:7
↓ 10 callersClassDummyRunner
test/espnet3/systems/base/test_inference_runner.py:11
↓ 10 callersClassEncoderLayer
Encoder layer module. Args: size (int): Input dimension. self_attn (torch.nn.Module): Self-attention module instance.
espnet2/legacy/nets/pytorch_backend/conformer/encoder_layer.py:16
↓ 10 callersClassFrequencyDomainL1
espnet2/enh/loss/criterions/tf_domain.py:210
↓ 10 callersClassNIN
espnet2/enh/layers/ncsnpp_utils/layers.py:659
↓ 10 callersClassNeuralBeamformer
espnet2/enh/separator/neural_beamformer.py:12
↓ 10 callersClassOpenAIWhisperTokenizer
espnet2/text/whisper_tokenizer.py:38
↓ 10 callersClassS2STAttentionLoss
attention-based label smoothing loss for S2ST.
espnet2/s2st/losses/attention_loss.py:11
↓ 9 callersClassBeamSearchTransducer
Beam search implementation for Transducer.
espnet2/asr/transducer/beam_search_transducer.py:43
↓ 9 callersClassConformerPostEncoder
Hugging Face Transformers PostEncoder.
espnet2/slu/postencoder/conformer_postencoder.py:39
↓ 9 callersClassConv1d1x1
1x1 Conv1d with customized initialization.
espnet2/gan_tts/wavenet/residual_block.py:31
↓ 9 callersClassConv2dSubsampling1
Similar to Conv2dSubsampling module, but without any subsampling performed. Args: idim (int): Input dimension. odim (int): Output
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:488
↓ 9 callersClassDefaultFrontend
Conventional frontend structure for ASR. Stft -> WPE -> MVDR-Beamformer -> Power-spec -> Log-Mel-Fbank
espnet2/asr/frontend/default.py:17
↓ 9 callersClassDurationPredictor
espnet2/gan_svs/vits/duration_predictor.py:12
↓ 9 callersClassGlobalMVN
Apply global mean and variance normalization TODO(kamo): Make this class portable somehow Args: stats_file: npy file norm_me
espnet2/layers/global_mvn.py:13
↓ 9 callersClassHypothesis
Default hypothesis definition for Transducer search algorithms. Args: score: Total log-probability. yseq: Label sequence as integ
espnet2/asr_transducer/beam_search_transducer.py:14
↓ 9 callersClassLabelSmoothingLoss
Label-smoothing loss. :param int size: the number of class :param int padding_idx: ignored class id :param float smoothing: smoothing rat
espnet2/legacy/nets/pytorch_backend/transformer/label_smoothing_loss.py:13
↓ 9 callersClassLengthRegulator
Length Regulator
espnet2/gan_svs/vits/length_regulator.py:17
↓ 9 callersClassNgramFullScorer
Fullscorer for ngram.
espnet2/legacy/nets/scorers/ngram.py:62
↓ 9 callersClassNgramPartScorer
Partialscorer for ngram.
espnet2/legacy/nets/scorers/ngram.py:82
↓ 9 callersClassRNNDecoder
espnet2/asr/decoder/rnn_decoder.py:82
↓ 9 callersClassSConv1d
Conv1d with some builtin handling of asymmetric or causal padding and normalization.
espnet2/gan_codec/shared/encoder/seanet.py:158
↓ 9 callersClassSISNRLoss
SI-SNR (or named SI-SDR) loss A more stable SI-SNR loss with clamp from `fast_bss_eval`. Attributes: clamp_db: float cla
espnet2/enh/loss/criterions/time_domain.py:224
↓ 9 callersClassSeparateSpeech
SeparateSpeech class Examples: >>> import soundfile >>> separate_speech = SeparateSpeech("enh_config.yml", "enh.pth") >>>
espnet2/bin/enh_inference.py:90
↓ 9 callersClassSequenceIterFactory
Build iterator for each epoch. This class simply creates pytorch DataLoader except for the following points: - The random seed is decided acc
espnet2/iterators/sequence_iter_factory.py:35
↓ 9 callersClassSequentialRNNLM
Sequential RNNLM. See also: https://github.com/pytorch/examples/blob/4581968193699de14b56527296262dd76ab43557/word_language_model/model.p
espnet2/lm/seq_rnn_lm.py:12
↓ 9 callersClassTextCleaner
Text cleaner. Examples: >>> cleaner = TextCleaner("tacotron") >>> cleaner("(Hello-World); & jr. & dr.") 'HELLO WORLD,
espnet2/text/cleaner.py:27
↓ 9 callersClassTransducerDecoder
(RNN-)Transducer decoder module. Args: vocab_size: Output dimension. layers_type: (RNN-)Decoder layers type. num_layers:
espnet2/asr/decoder/transducer_decoder.py:12
↓ 9 callersClassUtterance
egs2/owsm_v1/s2t1/local/utils.py:142
↓ 8 callersClassAverageCheckpointsCallback
A custom callback for weight averaging over the top-K checkpoints. This can be useful to smooth out fluctuations in weights across the best-perfo
espnet3/components/callbacks/default_callbacks.py:24
↓ 8 callersClassConvEncoder
Convolutional encoder for speech enhancement and separation
espnet2/enh/encoder/conv_encoder.py:6
next →1–100 of 1,556, ranked by callers