MCPcopy Create free account

hub / github.com/espnet/espnet / functions

Functions9,880 in github.com/espnet/espnet

↓ 4 callersMethodbuild_vocoder_from_file
( cls, vocoder_config_file: Union[Path, str] = None, vocoder_file: Union[Path, str] =
espnet2/tasks/tts.py:370
↓ 4 callersFunctioncheck_contiguous
(var, name)
espnet2/asr/transducer/rnnt_multi_blank/rnnt_multi_blank.py:462
↓ 4 callersFunctioncheck_dim
(var, dim, name)
espnet2/asr/transducer/rnnt_multi_blank/rnnt_multi_blank.py:467
↓ 4 callersFunctionconv2d_output_shape
(h_w, kernel_size=1, stride=1, pad=0, dilation=1)
espnet2/enh/layers/conv_utils.py:9
↓ 4 callersFunctioncreate_adapter
Create adapter for the base model. Args: model (torch.nn.Module): Base model to be adapted. adapter_type (str): Name of adapter
espnet2/layers/create_adapter.py:23
↓ 4 callersMethodcreate_lm_batch_inputs
Make batch of inputs with left padding for LM scoring. Args: hyps_seq: Hypothesis sequences. Returns: : Padd
espnet2/asr_transducer/beam_search_transducer.py:263
↓ 4 callersMethodcreate_multimodal_query
Create query with both text and audio inputs for Qwen2-Audio. This is the core tokenization process from the original example.
espnet2/text/qwen2audio_tokenizer.py:56
↓ 4 callersMethodcrop_scope
Crop the input tensor. Args: x (torch.Tensor): Input tensor of shape [B, C, T]. yin_start (int): Starting point of th
espnet2/gan_svs/pits/ying_decoder.py:59
↓ 4 callersMethodencode
( self, string: str, device: Optional[torch.device] = None, bos: Optional[bool
espnet2/sds/end_to_end/mini_omni/litgpt/tokenizer.py:100
↓ 4 callersMethodencode
(self, text, **kwargs)
test/espnet2/speechlm/model/speechlm/multimodal_io/test_text.py:15
↓ 4 callersFunctionend_detect
End detection. described in Eq. (50) of S. Watanabe et al "Hybrid CTC/Attention Architecture for End-to-End Speech Recognition" :param e
espnet2/legacy/nets/e2e_asr_common.py:14
↓ 4 callersFunctionerr
(msg)
egs2/voxforge/asr1/local/make_trans.py:21
↓ 4 callersFunctionerr
(msg)
egs2/open_li110/asr1/local/voxforge/make_trans.py:21
↓ 4 callersFunctionerr
(msg)
egs2/open_li52/asr1/local/make_trans.py:21
↓ 4 callersMethodexecute
(self, query)
test/espnet2/speechlm/dataloader/conftest.py:61
↓ 4 callersMethodextend_pe
Reset the positional encodings.
espnet2/legacy/nets/pytorch_backend/transformer/embedding.py:61
↓ 4 callersMethodfix_dataset
( self, input_type, file_id, i, labels, segment, segments, threshold=30 )
egs2/TEMPLATE/asr1/pyscripts/utils/prep_segments.py:161
↓ 4 callersFunctionfloat2str
(number, size=6)
egs2/swbd_sentiment/asr1/local/prepare_sentiment.py:7
↓ 4 callersMethodforward_enhance
( self, speech_mix: torch.Tensor, speech_lengths: torch.Tensor, additional: Op
espnet2/enh/espnet_model.py:362
↓ 4 callersMethodforward_one_step
Forward one step. Args: tgt: input token ids, int64 (batch, maxlen_out) tgt_mask: input token mask, (batch, maxlen_o
espnet2/asr/decoder/transformer_decoder.py:191
↓ 4 callersMethodforward_one_step
(self, hc, state)
espnet2/enh/layers/skim.py:119
↓ 4 callersMethodforward_qkv
Transform query, key and value. Args: query (torch.Tensor): Query tensor (#batch, time1, size). key (torch.Tensor): K
espnet2/legacy/nets/pytorch_backend/transformer/attention.py:77
↓ 4 callersMethodfrom_pretrained
(cls, *args, **kwargs)
test/espnet2/speechlm/model/test_parallel.py:59
↓ 4 callersFunctiongen_tsne_plot
r"""Generate t-SNE plot for language embeddings with labels directly on the points. Args: lang_to_embds_dic (dict): Dictionary mapping la
espnet2/bin/lid_inference.py:373
↓ 4 callersFunctiongenerate_long_utterances
Generate a list of long utterances from a list of short utterances.
egs2/owsm_v2/s2t1/local/utils.py:207
↓ 4 callersFunctionget_2d_padding
( kernel_size: tp.Tuple[int, int], dilation: tp.Tuple[int, int] = (1, 1) )
espnet2/gan_codec/shared/discriminator/msstft_discriminator.py:19
↓ 4 callersFunctionget_activation
Return activation function. Args: activation_type: Activation function type. ftswish_threshold: Threshold value for FTSwish activ
espnet2/asr_transducer/activation.py:6
↓ 4 callersMethodget_ancestors
(self)
egs2/ml_superb/asr1/local/linguistic_tree.py:11
↓ 4 callersFunctionget_convinput_module_parameters
Return the convolution module parameters. Args: input_size: Module input size. last_conv_size: Last convolution size for module o
espnet2/asr_transducer/utils.py:48
↓ 4 callersMethodget_default_config
Return the configuration as dict. This method is used by print_config()
espnet2/tasks/abs_task.py:1130
↓ 4 callersFunctionget_hugging_face_model_lm_head
(model)
espnet2/asr/decoder/hugging_face_transformers_decoder.py:421
↓ 4 callersMethodget_keys2
Returns keys2 e.g. loss,acc.
espnet2/train/reporter.py:467
↓ 4 callersFunctionget_num_frames_writer
Get number of frames. Examples: >>> get_num_frames_writer('ark,t:num_frames.txt')
espnet2/legacy/utils/cli_writers.py:119
↓ 4 callersFunctionget_num_nodes
Get the number of nodes. Use for "multiprocessing distributed" mode. RANK equals to the Node id in this case and the real Rank is set as
espnet2/train/distributed_utils.py:368
↓ 4 callersFunctionget_parallel_config
Return the global Dask cluster configuration.
espnet3/parallel/parallel.py:139
↓ 4 callersMethodget_path
(self, key)
espnet2/fileio/sound_scp.py:150
↓ 4 callersFunctionget_self_bleu
(utterances, averaging_mode, weights)
egs2/TEMPLATE/asr1/pyscripts/utils/dialog_eval/vert.py:209
↓ 4 callersFunctionget_vgg2l_odim
Return the output size of the VGG frontend. :param in_channel: input channel size :param out_channel: output channel size :return: output
espnet2/legacy/nets/e2e_asr_common.py:47
↓ 4 callersFunctionhalve_minibatch_size_str
Halve a minibatch-size string, as would be validated by validate_minibatch_size_str (see docs for that). This halves all the integer elements
egs2/TEMPLATE/asr1/steps/libs/nnet3/train/common.py:299
↓ 4 callersFunctionhandle_espnet_TTS_intelligibility
Compute and return Word Error Rate (WER) and Character Error Rate (CER) metrics for multiple ASR systems (ESPnet, OWSM, Whisper) using the Ve
egs2/TEMPLATE/asr1/pyscripts/utils/dialog_eval/TTS_intelligibility.py:8
↓ 4 callersMethodhypotheses_to_results
Build partial or final results from the hypotheses. Args: nbest_hyps: N-best hypothesis. Returns: results: R
espnet2/bin/asr_transducer_inference.py:276
↓ 4 callersMethodids2text
(self, ids: List[int])
espnet2/asr/maskctc_model.py:270
↓ 4 callersMethodinference
Run inference. Args: text (LongTensor): Batch of padded character ids (B, Tmax). text_lengths (LongTensor): Batch of
espnet2/gan_svs/vits/generator.py:718
↓ 4 callersFunctioninto_tuple
Transforms tensor/list/tuple into tuple.
espnet2/enh/layers/adapt_layers.py:18
↓ 4 callersFunctionis_mandarin
check character is Mandarin
egs2/seame/asr1/local/preprocess.py:59
↓ 4 callersFunctionload_default_config
Load a packaged default config without resolving interpolations. This helper reads a default config bundled in an ESPnet recipe package. The
espnet3/utils/config_utils.py:211
↓ 4 callersFunctionload_scp
(scp_path)
egs2/cnceleb/spk1/local/convert_trial.py:5
↓ 4 callersMethodload_wav
Load wavfile given recid, start time and end time.
egs2/mini_librispeech/diar1/local/simulation/common.py:167
↓ 4 callersFunctionlogmelspectrogram
Obtain Logmel from signal.
espnet2/legacy/transform/spectrogram.py:100
↓ 4 callersFunctionmake_jets_discriminator_args
(**kwargs)
test/espnet2/gan_tts/jets/test_jets.py:109
↓ 4 callersFunctionmake_jets_generator_args
(**kwargs)
test/espnet2/gan_tts/jets/test_jets.py:12
↓ 4 callersFunctionmake_jets_loss_args
(**kwargs)
test/espnet2/gan_tts/jets/test_jets.py:153
↓ 4 callersFunctionmake_unet_encoder_decoder_args
(encoder_args, decoder_args)
espnet2/enh/layers/dcunet.py:223
↓ 4 callersFunctionmake_vits_discriminator_args
(**kwargs)
test/espnet2/gan_svs/visinger/test_visinger_plus.py:146
↓ 4 callersFunctionmake_vits_discriminator_args
(**kwargs)
test/espnet2/gan_svs/visinger/test_visinger.py:801
↓ 4 callersFunctionmake_vits_discriminator_args
(**kwargs)
test/espnet2/gan_tts/vits/test_vits.py:197
↓ 4 callersFunctionmake_vits_generator_args
(**kwargs)
test/espnet2/gan_svs/visinger/test_visinger_plus.py:84
↓ 4 callersFunctionmake_vits_generator_args
(**kwargs)
test/espnet2/gan_svs/visinger/test_visinger.py:737
↓ 4 callersFunctionmake_vits_generator_args
(**kwargs)
test/espnet2/gan_tts/vits/test_vits.py:140
↓ 4 callersFunctionmake_vits_loss_args
(**kwargs)
test/espnet2/gan_svs/visinger/test_visinger_plus.py:190
↓ 4 callersFunctionmake_vits_loss_args
(**kwargs)
test/espnet2/gan_svs/visinger/test_visinger.py:845
↓ 4 callersFunctionmake_vits_loss_args
(**kwargs)
test/espnet2/gan_tts/vits/test_vits.py:241
↓ 4 callersFunctionnext_token_A1T2
( model: GPT, audio_features: torch.tensor, input_ids: list, whisper_lens: int, task: list
espnet2/sds/end_to_end/mini_omni/litgpt/generate/base.py:103
↓ 4 callersFunctionnext_token_batch
( model: GPT, audio_features: torch.tensor, input_ids: list, whisper_lens: int, task: list
espnet2/sds/end_to_end/mini_omni/litgpt/generate/base.py:144
↓ 4 callersFunctionpack
( files: Dict[str, Union[str, Path]], yaml_files: Dict[str, Union[str, Path]], outpath: Union[str,
espnet2/main_funcs/pack_funcs.py:253
↓ 4 callersMethodpack_zero
(self, file_id, number, length=4)
egs2/TEMPLATE/asr1/pyscripts/utils/prep_segments.py:153
↓ 4 callersFunctionparse_config_line
(orig_config_line)
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/utils.py:568
↓ 4 callersFunctionperplexity
Compute the perplexity of the given text using a specified model from the `evaluate` library (default: GPT-2). Args: LLM_Output
egs2/TEMPLATE/asr1/pyscripts/utils/dialog_eval/LLM_Metrics.py:16
↓ 4 callersMethodpreprocessing
Convert single raw data dict into training-ready format. Applies chat template, tokenizes content, adds special tokens, and creates l
espnet2/speechlm/model/speechlm/speechlm_job.py:301
↓ 4 callersFunctionprocess_line
(line, label_F1=False)
egs2/slue-voxpopuli/slu1/local/score.py:69
↓ 4 callersFunctionprocess_line
(line, label_F1=False)
egs2/slue-voxpopuli/asr1/local/score.py:69
↓ 4 callersFunctionquant_noise
Wraps modules and applies quantization noise to the weights for subsequent quantization with Iterative Product Quantization as described in "
espnet2/asr/encoder/beats_encoder.py:1395
↓ 4 callersFunctionread_audio
(reader, key, audio_format="sound")
espnet2/bin/enh_scoring.py:42
↓ 4 callersMethodrecombine_hyps
Recombine hypotheses with same label ID sequence. Args: hyps: Hypotheses. Returns: final: Recombined hypothe
espnet2/asr_transducer/beam_search_transducer.py:200
↓ 4 callersFunctionreconstruct_tensors
Reconstructs the list of tensors from the flattened output.
espnet2/sds/end_to_end/mini_omni/utils/snac_utils.py:68
↓ 4 callersMethodrecording_id
(self)
egs2/jkac/tts1/local/prep_segments.py:16
↓ 4 callersFunctionresolve_stages
Resolve a requested stage list against the available stages. The special token ``"all"`` expands to all known stages in order. Otherwise, the
espnet3/utils/stages_utils.py:56
↓ 4 callersFunctionsafe_divide
(numerator, denominator)
egs2/slue-voxpopuli/slu1/local/eval_utils.py:88
↓ 4 callersFunctionsafe_divide
(numerator, denominator)
egs2/slue-voxpopuli/asr1/local/eval_utils.py:88
↓ 4 callersFunctionsafe_rename
(old_path: str, new_path: str)
egs2/genshin/tts1/local/data_process.py:60
↓ 4 callersFunctionsave_espnet_config
Save the ESPnet config used for training to the output directory.
espnet3/utils/task_utils.py:47
↓ 4 callersMethodset
Update properties. Args: **kwargs: Key-value dict that contains all properties with their new values. Unknown pro
espnet2/bin/asr_align.py:90
↓ 4 callersMethodset_config
Set CTC segmentation parameters. Parameters for timing: time_stamps: Select method how CTC index duration is estimated, and
espnet2/bin/asr_align.py:274
↓ 4 callersMethodshard
Return a new dataset shard corresponding to the given index. This method must be implemented by subclasses to return a subset of the data
espnet3/components/data/dataset.py:308
↓ 4 callersMethodsplit
(self, threshold=30)
egs2/pjs/svs1/local/prep_segments_from_xml.py:30
↓ 4 callersMethodsplit
(self, threshold=30)
egs2/TEMPLATE/asr1/pyscripts/utils/prep_segments_from_xml.py:30
↓ 4 callersMethodstep
(self, metrics=None, epoch=None)
espnet2/schedulers/warmup_reducelronplateau.py:105
↓ 4 callersMethodstep
(self, epoch: int = None)
espnet2/schedulers/abs_scheduler.py:8
↓ 4 callersMethodstreaming_decode
Speech2Text streaming call. Args: speech: Chunk of speech data. (S) is_final: Whether speech corresponds to the final
espnet2/bin/asr_transducer_inference.py:201
↓ 4 callersFunctiontime2token
(x: float, resolution: float)
egs2/must_c_v2/s2t1/local/data_prep.py:64
↓ 4 callersFunctionto_reported_value
(v: Num, weight: Optional[Num] = None)
espnet2/train/reporter.py:25
↓ 4 callersMethodtokenize
(self, text)
egs2/clotho_v2/asr1/local/data_prep_clotho_chatgpt_mixup.py:84
↓ 4 callersFunctiontokenize_descriptor
(descriptor_string, prev_names = None)
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/utils.py:538
↓ 4 callersMethodtrain
Train the model, training the tokenizer first if needed. This stage checks for a cached tokenizer model and runs tokenizer training b
espnet3/systems/asr/system.py:96
↓ 4 callersFunctionunpack
Scan all files in the archive file and return as a dict of files. Examples: tarfile: model.pth some1.file
espnet2/main_funcs/pack_funcs.py:180
↓ 4 callersFunctionupfirdn2d
(input, kernel, up=1, down=1, pad=(0, 0))
espnet2/enh/layers/ncsnpp_utils/upfirdn2d.py:10
↓ 4 callersMethodutt_id
(self)
egs2/jkac/tts1/local/prep_segments.py:43
↓ 4 callersMethodvalues
(self)
test/espnet2/speechlm/dataloader/test_dataset.py:37
↓ 4 callersFunctionvert
Calculate and return Self BLEU-2, Auto BLEU-2 and VERT-2 metrics for a list of LLM responses. Args: LLM_response_arr (List[str])
egs2/TEMPLATE/asr1/pyscripts/utils/dialog_eval/LLM_Metrics.py:54
↓ 4 callersMethodwandb_log
(self, epoch: int = None)
espnet2/train/reporter.py:553
← previousnext →501–600 of 9,880, ranked by callers