MCPcopy Create free account

hub / github.com/espnet/espnet / functions

Functions9,880 in github.com/espnet/espnet

↓ 9 callersFunctionchoose_txt_normalization
(scoring_txt_normalization="chime7")
egs2/chime7_task1/asr1/local/gen_task1_data.py:80
↓ 9 callersMethodcollate_fn
Batch multiple samples for training. Processes each sample, pads sequences to same length, and organizes continuous features by modal
espnet2/speechlm/model/speechlm/speechlm_job.py:222
↓ 9 callersMethodcreate_mask_label
(self, mix_spec, ref_spec, noise_spec=None)
espnet2/enh/loss/criterions/tf_domain.py:140
↓ 9 callersMethodencode
Frontend + Encoder. Note that this method is used by st_inference.py Args: speech: (Batch, Length, ...) speech_length
espnet2/st/espnet_model.py:478
↓ 9 callersFunctionint2float
Converts an integer PCM audio signal to a floating-point representation. This function scales an integer PCM audio waveform (typically `int16
espnet2/sds/utils/utils.py:6
↓ 9 callersFunctionrecursive_average
(obj, weight: torch.Tensor, distributed: bool = False)
espnet2/torch_utils/recursive_op.py:52
↓ 9 callersMethodreset
(self)
espnet2/bin/st_inference_streaming.py:303
↓ 9 callersMethodscore
(self, ys, state, x)
espnet2/asr/decoder/s4_decoder.py:135
↓ 9 callersMethodset_device
Set GPU device to use. Args: device: Device ID.
espnet2/asr_transducer/decoder/rnn_decoder.py:182
↓ 9 callersMethodspecial_token
Convert special token string to multi-stream token array. Places token ID in first stream, padding tokens in other streams.
espnet2/speechlm/model/speechlm/speechlm_job.py:425
↓ 9 callersFunctiontik_reg
Perform Tikhonov regularization (only modifying real part). Args: mat (torch.complex64): input matrix (..., C, C) reg (float): re
espnet2/enh/layers/beamformer_th.py:1055
↓ 9 callersMethodtrain
Execute one training epoch.
espnet2/speechlm/trainer/deepspeed_trainer.py:181
↓ 9 callersMethodtransform
(self, x)
espnet2/gan_svs/visinger2/visinger2_vocoder.py:827
↓ 9 callersFunctionupdate_shard
Replace all "{shard_idx}" in a nested config with the actual shard index. This function is typically used when a config dictionary or list (e.g.,
espnet3/components/data/dataloader.py:44
↓ 8 callersMethod__init__
Initialize dropout module. tie: tie dropout mask across sequence lengths (Dropout1d/2d/3d)
espnet2/asr/state_spaces/components.py:82
↓ 8 callersMethod__init__
Construct a TooShortUttError for error handler.
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:24
↓ 8 callersMethod__init__
(self, config: Config)
espnet2/sds/end_to_end/mini_omni/litgpt/model.py:21
↓ 8 callersFunction_upgrade_legacy_subsampling_state_dict
Remap legacy nn.Sequential keys for subsampling modules.
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:52
↓ 8 callersFunction_write_scp
(path: Path, entries)
test/espnet3/systems/base/test_metric.py:40
↓ 8 callersMethod_zero_state
(self, hs)
espnet2/svs/singing_tacotron/decoder.py:146
↓ 8 callersMethodapply_beamforming
Beamforming with the provided statistics. Args: data (torch.complex64/ComplexTensor): (B, F, C, T) ilens (torch.Tenso
espnet2/enh/layers/dnn_beamformer.py:357
↓ 8 callersMethodbackward
(ctx, dout)
espnet2/asr/state_spaces/cauchy.py:97
↓ 8 callersMethodbatch_score
One-step forward hypotheses. Args: hyps: Hypotheses. Returns: out: Decoder output sequences. (B, D_dec)
espnet2/asr_transducer/decoder/rnn_decoder.py:158
↓ 8 callersFunctionbuild_client
Create or retrieve a Dask client using the provided or global configuration. Args: config (DictConfig, optional): Cluster config. If None
espnet3/parallel/parallel.py:171
↓ 8 callersMethodbuild_iter
Get a DataLoader for a specific range of batches. Supports endless epochs by wrapping around when batches are exhausted. If the reque
espnet2/speechlm/dataloader/iterator.py:214
↓ 8 callersFunctionchoose_norm
The input of normalization will be (M, C, K), where M is batch size. C is channel size and K is sequence length.
espnet2/enh/layers/tcn.py:424
↓ 8 callersFunctioncompute_turn_decisions
Generate a dictionary of turn-taking decisions in Human AI conversation. Args: hyp_arr (array): Lines of file containing
egs2/TEMPLATE/asr1/pyscripts/utils/compute_turn_take_metrics.py:134
↓ 8 callersFunctioncompute_turn_likelihoods
Generate a likelihood dictionary of turn-taking events based on predictions from the turn-taking model. Args: ref_arr (array): L
egs2/TEMPLATE/asr1/pyscripts/utils/compute_turn_take_metrics.py:86
↓ 8 callersFunctiondefault_init
The same initialization used in DDPM.
espnet2/enh/layers/ncsnpp_utils/layers.py:99
↓ 8 callersFunctiondetect_non_silence
Power based voice activity detection. Args: x: (Channel, Time) >>> x = np.random.randn(1000) >>> detect = detect_non_silence(x)
espnet2/train/preprocessor.py:80
↓ 8 callersFunctionfile_reader_helper
Read uttid and array in kaldi style. This function might be a bit confusing as "ark" is used for HDF5 to imitate "kaldi-rspecifier". Arg
espnet2/legacy/utils/cli_readers.py:14
↓ 8 callersFunctionfn
(_)
espnet2/asr/state_spaces/utils.py:125
↓ 8 callersFunctionget_class_path
Return the fully qualified class path for an object. Args: obj: Instantiated Python object. Returns: str: Fully qualified ``
espnet3/utils/scp_utils.py:7
↓ 8 callersFunctionget_ip
Retrieve the IP address from an incoming HTTP request. Args: request (gr.Request): The incoming HTTP request from which
egs2/TEMPLATE/asr1/pyscripts/utils/dialog_eval/human_feedback.py:6
↓ 8 callersFunctionget_normalization
Get normalization module and arguments given parameters. Args: normalization_type: Normalization module type. eps: Value added to
espnet2/asr_transducer/normalization.py:8
↓ 8 callersFunctionget_padding
(kernel_size, dilation=1)
espnet2/gan_codec/hificodec/module.py:439
↓ 8 callersMethodinference
Run inference. Args: text (Tensor): Input text index tensor (T_text,). feats (Tensor): Feature tensor (T_feats, aux_c
espnet2/gan_tts/jets/jets.py:615
↓ 8 callersFunctioninit_S3prl_model
(frontend_conf={"upstream": "hubert_base"})
test/espnet2/layers/test_create_adapter_fn.py:23
↓ 8 callersMethodkeys
(self)
test/espnet2/speechlm/dataloader/test_dataset.py:34
↓ 8 callersFunctionload_and_merge_config
Load a user config and merge it with packaged default values. This is the higher-level helper used by recipe code. It first loads the default
espnet3/utils/config_utils.py:254
↓ 8 callersFunctionmeasure
Compute metrics for each test set and write a metrics JSON file. Test sets are resolved in the following order: 1. If ``metrics_config.d
espnet3/systems/base/metric.py:42
↓ 8 callersFunctionparallel_map
Apply a function to an iterable of inputs in parallel using Dask. This helper takes care of: - Creating (or reusing) a Dask client accordin
espnet3/parallel/parallel.py:382
↓ 8 callersMethodsave
(self, obj)
espnet2/sds/end_to_end/mini_omni/litgpt/utils.py:288
↓ 7 callersFunctionWNConv1d
(*args, **kwargs)
espnet2/gan_codec/shared/discriminator/msmpmb_discriminator.py:16
↓ 7 callersMethod__init__
( self, d_input, d_output, stride, transposed=True, weight_nor
espnet2/asr/state_spaces/pool.py:312
↓ 7 callersMethod__init__
( self, block, layers, num_classes=1000, relu_type="relu", gam
espnet2/asr/encoder/avhubert_encoder.py:1008
↓ 7 callersMethod__init__
( self, in_channels, out_channels, strides, kernel_size, dilat
espnet2/gan_svs/avocodo/avocodo.py:389
↓ 7 callersMethod__init__
(self, num_features, bias=True)
espnet2/enh/layers/ncsnpp_utils/normalization.py:168
↓ 7 callersMethod__init__
( self, eps=EPS, name=None, only_for_test=False, is_noise_loss=False,
espnet2/enh/loss/criterions/time_domain.py:115
↓ 7 callersMethod_apply_chat_template
Convert data dict to list of (role, io_type, data) messages. Either uses provided dialogue or constructs from task template. Determin
espnet2/speechlm/model/speechlm/speechlm_job.py:437
↓ 7 callersMethod_extract_feats
( self, speech: torch.Tensor, speech_lengths: torch.Tensor )
espnet2/st/espnet_model.py:538
↓ 7 callersMethod_load_from_state_dict
( self, state_dict, prefix, local_metadata, strict, missing_ke
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:411
↓ 7 callersFunctionaggregate
(values: Sequence["ReportedValue"])
espnet2/train/reporter.py:44
↓ 7 callersFunctionbatchfy_bucket
Create batches using bucket batching strategy. Samples are sorted by length and grouped into buckets such that the total tokens (max_length *
espnet2/speechlm/dataloader/batch.py:20
↓ 7 callersFunctionbuild_parallel_hf_class
Dynamically create a parallel LLM class based on HuggingFace architecture. Creates a subclass of the original HF model with added multimodal supp
espnet2/speechlm/model/speechlm/lm/parallel.py:27
↓ 7 callersMethodbuild_preprocess_fn
(cls, args, train)
test/espnet2/tasks/test_abs_task.py:44
↓ 7 callersMethodforward_one_step
Forward one step. Args: tgt (torch.Tensor): Input token ids, int64 (#batch, maxlen_out). tgt_mask (torch.Tensor): Inp
espnet2/legacy/nets/pytorch_backend/transformer/decoder.py:259
↓ 7 callersFunctiongenerate_long_utterances
Generate a list of long utterances from a list of short utterances.
egs2/owsm_v1/s2t1/local/utils.py:207
↓ 7 callersFunctionget_activation
(name)
espnet2/enh/layers/dcunet.py:150
↓ 7 callersMethodget_name
Returns the name of this layer, e.g. 'affine1'. It does not necessarily correspond to a component name.
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/basic_layers.py:224
↓ 7 callersFunctionget_random_segments
Get random segments. Args: x (Tensor): Input tensor (B, C, T). x_lengths (Tensor): Length tensor (B,). segment_size (int)
espnet2/gan_tts/utils/get_random_segments.py:11
↓ 7 callersMethodget_tokenizer
(self, tokenizer_dir)
egs2/clotho_v2/asr1/local/data_prep_clotho_chatgpt_mixup.py:129
↓ 7 callersFunctioninverse
( c: Union[torch.Tensor, ComplexTensor], )
espnet2/enh/layers/complex_utils.py:122
↓ 7 callersFunctionis_in_slurm_step
()
espnet2/train/distributed_utils.py:202
↓ 7 callersFunctionlist_to_torch_tensor
(tensor1)
espnet2/sds/end_to_end/mini_omni/utils/snac_utils.py:96
↓ 7 callersMethodon_validation_end
At the end of validation, average the top-K checkpoints and save.
espnet3/components/callbacks/default_callbacks.py:65
↓ 7 callersFunctionparallel_for
Dispatch tasks to Dask and iterate over results as they complete. This helper: - Creates (or reuses) a Dask client based on the global/expl
espnet3/parallel/parallel.py:453
↓ 7 callersFunctionprepare
()
test/espnet2/asr_transducer/test_decoder.py:10
↓ 7 callersFunctionprepare_manual_optimization
(module, configured)
test/espnet3/components/modeling/test_model_with_optim_scheduler.py:252
↓ 7 callersMethodpreprocess
(self, data)
test/espnet2/speechlm/model/test_parallel.py:106
↓ 7 callersFunctionpytest_raise_or_nothing
(exception_or_any: Any)
test/espnet2/utils/test_types.py:20
↓ 7 callersMethodset_kv_cache
( self, batch_size: int, rope_cache_length: Optional[int] = None, device: Opti
espnet2/sds/end_to_end/mini_omni/litgpt/model.py:234
↓ 7 callersMethodsplit
(self, threshold=30)
egs2/itako/svs1/local/prep_segments_from_xml.py:30
↓ 7 callersMethodsynthesis
Synthesis with PQMF. Args: x (Tensor): Input tensor (B, subbands, T // subbands). Returns: Tensor: Output te
espnet2/gan_tts/melgan/pqmf.py:147
↓ 7 callersMethodtensorboard_add_scalar
( self, summary_writer, epoch: int = None, key1: Optional[str] = None )
espnet2/train/reporter.py:533
↓ 7 callersMethodtrain_dtype
(self, ds_config)
espnet2/speechlm/trainer/deepspeed_trainer.py:247
↓ 6 callersFunctionListsToTensor
(xs)
espnet2/svs/feats_extract/score_feats_extract.py:10
↓ 6 callersFunctionPackZero
(number, size=6)
egs2/yoloxochitl_mixtec/asr1/local/data_prep.py:177
↓ 6 callersFunctionPackZero
(number, size=6)
egs2/puebla_nahuatl/asr1/local/data_prep.py:182
↓ 6 callersFunctionWNConv2d
(*args, **kwargs)
espnet2/gan_codec/shared/discriminator/msmpmb_discriminator.py:24
↓ 6 callersMethod__init__
(self)
espnet2/asr/encoder/beats_encoder.py:1309
↓ 6 callersMethod__init__
( self, vocab_size: int, encoder_output_size: int, attention_heads: int = 4,
espnet2/asr/decoder/transformer_decoder.py:395
↓ 6 callersMethod__init__
Construct an PositionalEncoding object.
espnet2/legacy/nets/pytorch_backend/transformer/embedding.py:50
↓ 6 callersMethod__init__
(self, channels, bottleneck=128)
espnet2/spk/encoder/ska_tdnn_encoder.py:14
↓ 6 callersMethod__init__
(self, chomp_size)
espnet2/enh/layers/tcn.py:403
↓ 6 callersMethod__init__
(self, dim1, dim2, method="cat")
espnet2/enh/layers/ncsnpp_utils/layerspp.py:47
↓ 6 callersFunction_build_inputs
(tmp_path: Path, **entries: list[str])
test/espnet3/components/metrics/test_base_metric.py:13
↓ 6 callersMethod_calc_ctc_loss
( self, encoder_out: torch.Tensor, encoder_out_lens: torch.Tensor, ys_pad: tor
espnet2/asr/espnet_model.py:596
↓ 6 callersFunction_capture_logger
(name: str)
test/espnet3/utils/test_logging.py:246
↓ 6 callersFunction_diverse_bfd_worker
Stratified Best Fit: diversity + efficiency via interleaved packing. Items are divided into length strata, shuffled within each stratum, and
espnet2/speechlm/dataloader/batch.py:96
↓ 6 callersFunction_make_config
Create a minimal SpeechLMJobTemplate config dict.
test/espnet2/speechlm/model/test_speechlm_job.py:131
↓ 6 callersFunction_make_trainer_args
Create minimal trainer_args dict.
test/espnet2/speechlm/trainer/test_deepspeed_trainer.py:65
↓ 6 callersFunction_numeric_feature_by_regex
(regex, s)
espnet2/text/phoneme_tokenizer.py:185
↓ 6 callersMethod_text_process
( self, data: Dict[str, Union[str, np.ndarray]] )
espnet2/train/preprocessor.py:623
↓ 6 callersMethod_validate_output
(self, output: Dict[str, Any])
espnet3/systems/base/inference_runner.py:73
↓ 6 callersMethod_write_dialogue_file
(self, tmp_path, dialogues)
test/espnet2/speechlm/dataloader/test_dialogue_loader.py:98
↓ 6 callersFunctionadd_prefix_to_fields
This function replicate the entries in files like segments, utt2spk, text
egs2/TEMPLATE/asr1/steps/data/reverberate_data_dir.py:379
↓ 6 callersFunctionapply_parametrization_norm
(module: nn.Module, norm: str = "none")
espnet2/gan_codec/shared/encoder/seanet.py:54
↓ 6 callersMethodbatch_score
Score new token batch. Args: ys (torch.Tensor): torch.int64 prefix tokens (n_batch, ylen). states (List[Any]): Scorer
espnet2/legacy/nets/scorers/length_bonus.py:38
↓ 6 callersFunctionbatchfy
Create batches using the specified batching method. Args: keys: List of sample keys to batch. key_to_length: Dictionary mapping e
espnet2/speechlm/dataloader/batch.py:206
← previousnext →201–300 of 9,880, ranked by callers