MCPcopy Create free account

hub / github.com/espnet/espnet / functions

Functions9,880 in github.com/espnet/espnet

↓ 6 callersFunctionbuild_batch_sampler
Helper function to instantiate BatchSampler. Args: type: mini-batch type. "unsorted", "sorted", "folded", "numel", "length",
espnet2/samplers/build_batch_sampler.py:127
↓ 6 callersMethodbuild_iter_factory
Build a factory object of mini-batch iterator. This object is invoked at every epochs to build the iterator for each epoch as followi
espnet2/tasks/abs_task.py:1746
↓ 6 callersMethodchoices
(self)
espnet2/train/class_choices.py:56
↓ 6 callersFunctionchoose_txt_normalization
(scoring_txt_normalization="chime7")
egs2/chime7_task1/diar_asr1/local/gen_task1_data.py:80
↓ 6 callersFunctionclean_line
(k)
egs2/swbd/slu1/local/turn_take_utils.py:4
↓ 6 callersFunctioncleaner
(request)
test/espnet2/text/test_cleaner.py:7
↓ 6 callersMethodclear_kv_cache
(self)
espnet2/sds/end_to_end/mini_omni/litgpt/model.py:263
↓ 6 callersFunctioncollect_stats
Perform on collect_stats mode. Running for deriving the shape information from data and gathering statistics. This method is used before
espnet2/main_funcs/collect_stats.py:21
↓ 6 callersMethodcreate_batch_states
Create decoder hidden states. Args: states: Decoder hidden states. ((N, B, D_dec), (N, B, D_dec)) new_states: Decoder
espnet2/asr/decoder/transducer_decoder.py:279
↓ 6 callersMethodencode
Frontend + Encoder. Note that this method is used by asr_inference.py Args: speech: (Batch, Length, ...) speech_lengt
espnet2/asr/espnet_model.py:380
↓ 6 callersMethodencode_batch
Encode pre-processed batch data for GPU-based batch processing. This method handles data that has already been processed into proper
espnet2/speechlm/model/speechlm/multimodal_io/abs_io.py:87
↓ 6 callersFunctionfind_snippet
(snippets, basefile, start_time, end_time)
egs2/coraal/asr1/local/snippet_generation.py:88
↓ 6 callersMethodflatten_parameters
(self)
espnet2/enh/layers/complexnn.py:64
↓ 6 callersFunctionformat_results
Util to format and print the results. Format results in tabular format. :param results: the dictionary output by the get_metric() method
egs2/slurp_entity/asr1/local/evaluation/util.py:94
↓ 6 callersMethodforward_features
(self, source: torch.Tensor, modality: str)
espnet2/asr/encoder/avhubert_encoder.py:682
↓ 6 callersFunctionfree_port
Find free port using bind(). There are some interval between finding this port and using it and the other process might catch the port by tha
espnet2/train/distributed_utils.py:216
↓ 6 callersMethodgenerate
(self, seed)
espnet2/iterators/sequence_iter_factory.py:31
↓ 6 callersMethodgenerate
(self, seed)
espnet2/iterators/category_iter_factory.py:36
↓ 6 callersFunctiongenerate_asr_files
(txt_file, transcript_file)
egs2/slue-voxceleb/slu1/local/generate_asr_files.py:16
↓ 6 callersFunctiongenerate_asr_files
(txt_file, transcript_file)
egs2/slue-voxceleb/asr1/local/generate_asr_files.py:16
↓ 6 callersFunctionget_activation
(activation: str = None, channels=None, **kwargs)
espnet2/gan_codec/shared/encoder/seanet_2d.py:29
↓ 6 callersFunctionget_command_stdout
Executes a command and returns its stdout output as a string. The command is executed with shell=True, so it may contain pipes and o
egs2/TEMPLATE/asr1/steps/libs/common.py:132
↓ 6 callersMethodget_instance
This static method allows to build a Distance object. :param distance: The distance to be returned. :return: A `Distance` ob
egs2/slurp_entity/asr1/local/evaluation/metrics/distance.py:28
↓ 6 callersMethodget_metric
Computes the metrics starting from TPs, FPs, and FNs. :return: A Dict per label containing a tuple for\ precision, r
egs2/slurp_entity/asr1/local/evaluation/metrics/metrics.py:36
↓ 6 callersMethodget_name_from_info
(self, info)
espnet2/main_funcs/pack_funcs.py:112
↓ 6 callersFunctionget_norm_module
Return the proper normalization module. If causal is True, this will ensure the returned module is causal, or return an error if the norm
espnet2/gan_codec/shared/encoder/seanet.py:66
↓ 6 callersMethodget_path
(self, key)
espnet2/fileio/score_scp.py:121
↓ 6 callersFunctionget_rtf
Calculate the relative transfer function (RTF) Algorithm of power method: 1) rtf = reference_vector 2) for i in range(iterations)
espnet2/enh/layers/beamformer.py:201
↓ 6 callersMethodget_stream_interval
(self)
test/espnet2/speechlm/model/test_parallel.py:102
↓ 6 callersMethodget_vocabulary
(self)
test/espnet2/speechlm/model/test_parallel.py:99
↓ 6 callersMethodhas
(self, key: str, key2: str, epoch: int = None)
espnet2/train/reporter.py:414
↓ 6 callersMethodinference
Run inference. Args: text (Tensor): Input text index tensor (B, T_text,). text_lengths (Tensor): Text length tensor (
espnet2/gan_tts/vits/generator.py:411
↓ 6 callersMethodinit_state
Initialize decoder states. Args: batch_size: Batch size. Returns: : Initial decoder hidden states. ((N, B, D
espnet2/asr/decoder/transducer_decoder.py:77
↓ 6 callersMethodinit_state
Initialize decoder states. Args: batch_size: Batch size. Returns: : Initial decoder hidden states. ((N, B, D
espnet2/asr_transducer/decoder/rnn_decoder.py:191
↓ 6 callersFunctioninitial_att
Instantiate a single attention module. :param str atype: attention type :param int eprojs: # projection-units of encoder :param int dunit
espnet2/legacy/nets/pytorch_backend/rnn/attentions.py:1714
↓ 6 callersFunctionis_distributed
()
espnet2/gan_codec/shared/quantizer/modules/distrib.py:34
↓ 6 callersFunctionis_flash_attn_supported
()
espnet2/torch_utils/get_flash_attn_compatability.py:4
↓ 6 callersMethodload_state_dict
(self, state)
espnet2/schedulers/abs_scheduler.py:16
↓ 6 callersFunctionmake_base_config
()
test/espnet3/components/modeling/test_model_with_optim_scheduler.py:12
↓ 6 callersFunctionmake_standard_dataloader_config
()
test/espnet3/components/modeling/test_model.py:97
↓ 6 callersFunctionmake_standard_dataloader_config
(sampler=None, batch_sampler=None, collate_fn=None)
test/espnet3/components/data/test_dataloader_builder.py:135
↓ 6 callersMethodmerge
(self, chunks, ilens=None)
espnet2/bin/enh_inference_streaming.py:128
↓ 6 callersFunctionnext_token_A1T1
( 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:126
↓ 6 callersFunctionnorm_space
(token)
egs2/ksponspeech/asr1/local/get_space_normalized_hyps.py:63
↓ 6 callersFunctionpoly1d
(coefficients, use_numpy=False)
espnet2/enh/layers/dnsmos.py:17
↓ 6 callersMethodpreprocess_data
( self, data: Union[str, np.ndarray, list, torch.Tensor], data_lens: Union[int, List[i
egs2/TEMPLATE/asr1/pyscripts/feats/ssl_feature_utils.py:116
↓ 6 callersFunctionprocess_text
(text)
egs2/ml_superb/asr1/local/data_prep.py:195
↓ 6 callersFunctionprocess_text
(text)
egs2/interspeech2024_dsu_challenge/asr2/local/data_prep.py:195
↓ 6 callersFunctionprocess_text
(text)
egs2/interspeech2024_dsu_challenge/asr1/local/data_prep.py:195
↓ 6 callersFunctionread_text
(text: Path)
egs2/mini_an4/lm1/local/prepare_lm_data.py:10
↓ 6 callersFunctionread_text
(text: Path)
egs2/voxtlm_v1/lm1/local/prepare_lm_data.py:10
↓ 6 callersMethodreload_pretrained_parameters
(self)
espnet2/asr/frontend/s3prl.py:115
↓ 6 callersFunctionremove_redundant_whitespaces
remove redundant whitespaces
egs2/seame/asr1/local/preprocess.py:49
↓ 6 callersMethodreset
(self)
espnet2/asr/transducer/beam_search_transducer_streaming.py:240
↓ 6 callersFunctionrun_stages
Invoke stage methods on ``system`` in order with logging and timing. Args: system: Object providing stage methods named in ``stages_to_ru
espnet3/utils/stages_utils.py:116
↓ 6 callersMethodselect_state
Select state with relative ids in the main beam search. Args: state: Decoder state for prefix tokens i (int): Index t
espnet2/legacy/nets/scorers/ctc.py:40
↓ 6 callersMethodsetup
Set up the worker by calling the user-defined setup function.
espnet3/parallel/parallel.py:203
↓ 6 callersMethodsort_epochs_and_values
Return the epoch which resulted the best value. Example: >>> val = reporter.sort_epochs_and_values('eval', 'loss', 'min')
espnet2/train/reporter.py:356
↓ 6 callersMethodsplit
(self, threshold=30)
egs2/oniku_kurumi_utagoe_db/svs1/local/prep_segments.py:32
↓ 6 callersFunctiontext2lines
read lines from text or write lines to txt :param textpath: filepath of text :param lines_content: list of lines or None, None means read
egs2/misp2021/avsr1/local/prepare_far_data.py:11
↓ 6 callersFunctiontext2lines
read lines from text or write lines to txt :param textpath: filepath of text :param lines_content: list of lines or None, None means read
egs2/misp2021/asr1/local/prepare_far_data.py:11
↓ 6 callersFunctionutt2spk
(utt: str)
egs2/aphasiabank/asr1/local/data.py:57
↓ 6 callersFunctionwrd_name
(trn)
utils/json2sctm.py:93
↓ 5 callersMethod__init__
(self, chomp_size)
espnet2/diar/layers/tcn_nomask.py:171
↓ 5 callersMethod__init__
(self, dimension: int, num_layers: int = 2, skip: bool = True)
espnet2/gan_codec/shared/encoder/seanet.py:231
↓ 5 callersMethod__init__
( self, compute_on_mask=False, mask_type="IBM", name=None, only_for_te
espnet2/enh/loss/criterions/tf_domain.py:211
↓ 5 callersMethod__init__
Initialize HiFiGANGenerator module. Args: in_channels (int): Number of input channels. out_channels (int): Number of
espnet2/gan_tts/hifigan/hifigan.py:24
↓ 5 callersMethod__init__
(self, path=None)
test/espnet3/components/modeling/test_model_with_optim_scheduler.py:175
↓ 5 callersMethod_apply_delay_interleave
Apply delay interleaving to multi-stream tokens. Each stream is delayed by its index number of frames: - Stream 0: no delay -
espnet2/speechlm/model/speechlm/multimodal_io/audio.py:743
↓ 5 callersMethod_apply_to_all_signals
(self, data_dict, func, num_spk)
espnet2/train/preprocessor.py:1226
↓ 5 callersFunction_build_config_path
(base_path: Path, entry: str)
espnet3/utils/config_utils.py:384
↓ 5 callersMethod_calc_ctc_loss
( self, encoder_out: torch.Tensor, encoder_out_lens: torch.Tensor, ys_pad: tor
espnet2/s2st/espnet_model.py:990
↓ 5 callersMethod_extract_feats
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, target: bool = False )
espnet2/s2st/espnet_model.py:828
↓ 5 callersMethod_forward
( self, xs: torch.Tensor, ilens: torch.Tensor, ys: Optional[torch.Tensor] = No
espnet2/tts/fastspeech2/fastspeech2.py:661
↓ 5 callersFunction_get_or_initialize
(config, item_name: str = None, default=None)
espnet3/components/trainers/trainer.py:18
↓ 5 callersFunction_log
Log a message using the logger if provided; otherwise print.
espnet3/utils/download_utils.py:63
↓ 5 callersMethod_make_continuous_io
(self, model_tag="Qwen/Qwen2.5-Omni-7B")
test/espnet2/speechlm/model/speechlm/multimodal_io/test_audio.py:498
↓ 5 callersFunction_parse_dropout_option
Parses the string option to --trainer.dropout-schedule and returns a list of dropout schedules for different component name patterns. Calls _p
egs2/TEMPLATE/asr1/steps/libs/nnet3/train/dropout_schedule.py:18
↓ 5 callersMethod_preprocess
(self, x)
espnet2/legacy/nets/pytorch_backend/wavenet.py:395
↓ 5 callersMethod_preprocess_text_only
(self, preprocessor)
test/espnet2/speechlm/model/test_speechlm_job.py:387
↓ 5 callersFunction_shape
(x, dim)
espnet2/enh/layers/ncsnpp_utils/up_or_down_sampling.py:191
↓ 5 callersMethod_speech_process
( self, uid: str, data: Dict[str, Union[str, np.ndarray]] )
espnet2/train/preprocessor.py:1279
↓ 5 callersMethod_step
Run a single forward step through the model and produce logits. Accepts either token IDs or precomputed embeddings (exactly one must
espnet2/speechlm/model/speechlm/lm/parallel.py:690
↓ 5 callersMethodadd
(self, start, end, label)
egs2/ameboshi/svs1/local/prep_segments.py:23
↓ 5 callersMethodadd
(self, start, end, label)
egs2/itako/svs1/local/prep_segments.py:23
↓ 5 callersMethodadd
(self, start, end, label)
egs2/ofuton_p_utagoe_db/svs1/local/prep_segments.py:23
↓ 5 callersFunctionaverage_nbest_models
Generate averaged model from n-best models Args: output_dir: The directory contains the model file for each epoch reporter: Repor
espnet2/main_funcs/average_nbest_models.py:14
↓ 5 callersMethodbank
Obtain initialization values for the mel scale. Args: channels: Number of channels. fs: Sample rate. Returns
espnet2/layers/sinc_conv.py:203
↓ 5 callersMethodbuild_collate_fn
Return "collate_fn", which is a callable object and given to DataLoader. >>> from torch.utils.data import DataLoader >>> loader = Dat
espnet2/tasks/abs_task.py:226
↓ 5 callersMethodbuild_iter
(self, epoch: int, shuffle: bool = None)
espnet2/iterators/sequence_iter_factory.py:75
↓ 5 callersMethodbuild_preprocess_fn
( cls, args: argparse.Namespace, train: bool )
espnet2/tasks/abs_task.py:240
↓ 5 callersMethodbuild_preprocessor
Build the data collation function for SpeechLM. Returns: A callable function for collating SpeechLM batch data.
espnet2/speechlm/model/speechlm/speechlm_job.py:106
↓ 5 callersMethodcheck_task_requirements
Check if the dataset satisfy the requirement of current Task
espnet2/tasks/abs_task.py:1219
↓ 5 callersFunctioncomplex_norm
( c: Union[torch.Tensor, ComplexTensor], dim=-1, keepdim=False )
espnet2/enh/layers/complex_utils.py:71
↓ 5 callersFunctioncreate_houlsby_adapter
( model: torch.nn.Module, bottleneck: int = 32, target_layers: List[int] = [], )
espnet2/layers/create_adapter_fn.py:43
↓ 5 callersFunctioncreate_lora_adapter
Create LoRA adapter for the base model. See: https://arxiv.org/pdf/2106.09685.pdf Args: model (torch.nn.Module): Base model to be ad
espnet2/layers/create_adapter_fn.py:86
↓ 5 callersFunctionddpm_conv3x3
3x3 convolution with DDPM initialization.
espnet2/enh/layers/ncsnpp_utils/layers.py:141
↓ 5 callersMethodforward
(idx, *, dataset=None, model=None, flip=False, **kwargs)
test/espnet3/systems/asr/test_asr_inference.py:43
↓ 5 callersFunctiongenerate_long_utterances
Generate a list of long utterances from a list of short utterances.
egs2/owsm_v3/s2t1/local/utils.py:222
↓ 5 callersFunctiongenerator
()
egs2/TEMPLATE/asr1/pyscripts/audio/format_wav_scp.py:255
← previousnext →301–400 of 9,880, ranked by callers