MCPcopy Create free account

hub / github.com/espnet/espnet / functions

Functions9,880 in github.com/espnet/espnet

↓ 20 callersMethodencode
Run encoding. Args: x (Tensor): Input audio (T_wav,). Returns: Tensor: Generated codes (T_code, N_stream).
espnet2/gan_codec/dac/dac.py:430
↓ 20 callersFunctionfloat2str
(number, size=6)
egs2/librimix/diar1/local/prepare_kaldifiles.py:6
↓ 20 callersFunctionfloat2str
(number, size=6)
egs2/librimix/enh_diar1/local/prepare_kaldifiles.py:6
↓ 20 callersMethodgenerator
(self)
egs2/TEMPLATE/asr1/pyscripts/audio/format_wav_scp.py:102
↓ 20 callersFunctionmake_multi_config
( *, step_every_n_iters=1, accum_grad_steps=1, gradient_clip_val=None, include_aux=False,
test/espnet3/components/modeling/test_model_with_optim_scheduler.py:69
↓ 20 callersFunctionncsn_conv3x3
3x3 convolution with PyTorch initialization. Same as NCSNv1/NCSNv2.
espnet2/enh/layers/ncsnpp_utils/layers.py:122
↓ 20 callersMethodprint_config
(cls, file=sys.stdout)
espnet2/tasks/abs_task.py:1253
↓ 19 callersMethodinit_state
Initialize state.
espnet2/asr/decoder/s4_decoder.py:89
↓ 19 callersFunctionread_2columns_text
Read a text file having 2 columns as dict object. Only load the keys in keys_to_load if it is not None. Examples: wav.scp:
espnet2/fileio/read_text.py:12
↓ 19 callersMethodreverse
Create the reverse-time SDE/ODE. Args: score_model: A function that takes x, t and y and returns the score. probabili
espnet2/enh/diffusion/sdes.py:86
↓ 18 callersMethod__init__
(self, in_dim, num_units, init_scale=0.1)
espnet2/enh/layers/ncsnpp_utils/layers.py:660
↓ 18 callersMethodmodel
(speech)
test/espnet3/systems/asr/test_asr_inference.py:35
↓ 18 callersMethodread_text
Extracts the transcript from the database-reference text file Args: text_file (str) : Path to the database-reference text file
egs2/lrs3/asr1/local/data_prep.py:19
↓ 17 callersFunctionbuild_qualified_name
Return a compact, fully-qualified name for objects or classes. Description: Produces a stable, human-readable identifier for logging and
espnet3/utils/logging_utils.py:688
↓ 17 callersFunctionget_activation
Return activation function.
espnet2/legacy/nets/pytorch_backend/nets_utils.py:571
↓ 17 callersMethodget_epoch
(self)
espnet2/train/reporter.py:295
↓ 17 callersMethodinverse
Inverse STFT. Args: input: Tensor(batch, T, F, 2) or ComplexTensor(batch, T, F) ilens: (batch,) Returns:
espnet2/layers/stft.py:122
↓ 17 callersFunctionmatmul
( a: Union[torch.Tensor, ComplexTensor], b: Union[torch.Tensor, ComplexTensor] )
espnet2/enh/layers/complex_utils.py:131
↓ 17 callersMethodsplit
(self, threshold=30)
egs2/kiritan/svs1/local/prep_segments.py:35
↓ 16 callersFunctionresolve_distributed_mode
(args)
espnet2/train/distributed_utils.py:141
↓ 16 callersFunctionsolve
Solve the linear equation ax = b.
espnet2/enh/layers/complex_utils.py:167
↓ 16 callersMethodsubmit
(self, fn, *args, **kwargs)
test/espnet3/parallel/test_inference_runner.py:283
↓ 15 callersMethoddecode
(self, tensor: torch.Tensor)
espnet2/sds/end_to_end/mini_omni/litgpt/tokenizer.py:131
↓ 15 callersMethoditer_inputs
Yield rows from one or more SCP inputs with shared utterance IDs. This helper reads one or more SCP files in lockstep. For a single key,
espnet3/components/metrics/base_metric.py:70
↓ 15 callersFunctionload_num_sequence_text
Read a text file indicating sequences of number Examples: key1 1 2 3 key2 34 5 6 >>> d = load_num_sequence_text('text')
espnet2/fileio/read_text.py:100
↓ 15 callersFunctionnum2tuple
(num)
espnet2/enh/layers/conv_utils.py:5
↓ 15 callersFunctionstft
Process STFT from signal.
espnet2/legacy/transform/spectrogram.py:7
↓ 15 callersFunctiontik_reg
Perform Tikhonov regularization (only modifying real part). Args: mat (torch.complex64/ComplexTensor): input matrix (..., C, C) r
espnet2/enh/layers/beamformer.py:1137
↓ 15 callersFunctionyaml_no_alias_safe_dump
Safe-dump in yaml with no anchor/alias.
espnet2/utils/yaml_no_alias_safe_dump.py:39
↓ 14 callersMethod__init__
Initialize No Attention.
espnet2/legacy/nets/pytorch_backend/rnn/attentions.py:47
↓ 14 callersFunction_get_dropout_proportions
Returns dropout proportions based on the dropout_schedule for the fraction of data seen at this stage of training. Returns a list of pairs (p
egs2/TEMPLATE/asr1/steps/libs/nnet3/train/dropout_schedule.py:187
↓ 14 callersFunctionconv3x3
(in_planes, out_planes, stride=1)
espnet2/asr/encoder/avhubert_encoder.py:34
↓ 14 callersFunctionget_segments
Get segments. Args: x (Tensor): Input tensor (B, C, T). start_idxs (Tensor): Start index tensor (B,). segment_size (int):
espnet2/gan_tts/utils/get_random_segments.py:39
↓ 14 callersMethodinfer
Run inference on the configured datasets.
espnet3/systems/base/system.py:193
↓ 14 callersFunctionvalidate_and_process_messages
Validate and process dialogue messages. Args: messages: List of message tuples (role, modality, content). key: The example ID for
espnet2/speechlm/dataloader/multimodal_loader/dialogue_loader.py:30
↓ 14 callersMethodzero_state
(self, hs_pad)
espnet2/asr/decoder/rnn_decoder.py:152
↓ 13 callersFunction_make_dataset_json
Helper: create a dataset JSON + mock data file.
test/espnet2/speechlm/dataloader/test_dataset.py:47
↓ 13 callersFunctionexport_vocabulary
( output: str, whisper_model: str, whisper_language: Optional[str] = "en", whisper_task: str =
espnet2/bin/whisper_export_vocabulary.py:19
↓ 13 callersFunctionfunc
(a: int, b, *, c, **kwargs)
espnet2/utils/kwargs2args.py:4
↓ 13 callersFunctionget_client
Context manager to yield a Dask client from the global singleton cluster. Args: config (DictConfig, optional): Cluster config. se
espnet3/parallel/parallel.py:301
↓ 13 callersMethodinference
Return predicted output as a dict.
espnet2/svs/abs_svs.py:29
↓ 13 callersMethodtraining_step
Training step logic.
espnet3/components/modeling/lightning_module.py:951
↓ 13 callersMethodvalues
Return iterator over texts.
espnet2/speechlm/dataloader/multimodal_loader/text_loader.py:179
↓ 12 callersMethod__init__
(self, train: bool)
espnet2/train/preprocessor.py:27
↓ 12 callersMethod__next__
(self)
espnet2/sds/end_to_end/mini_omni/litgpt/utils.py:496
↓ 12 callersFunction_conj
(x)
espnet2/asr/state_spaces/s4.py:253
↓ 12 callersFunction_reset_logger
(logger: py_logging.Logger, handlers, level, propagate: bool)
test/espnet3/utils/test_logging.py:32
↓ 12 callersMethod_zero_state
(self, hs)
espnet2/legacy/nets/pytorch_backend/tacotron2/decoder.py:392
↓ 12 callersFunctionassert_approx_equal
Checks that the two dropout proportions lists are equal.
egs2/TEMPLATE/asr1/steps/libs/nnet3/train/dropout_schedule.py:313
↓ 12 callersMethodbuild
Build and return a DataLoader for the specified mode ("train" or "valid"). This method supports two modes of operation depending on the confi
espnet3/components/data/dataloader.py:122
↓ 12 callersFunctionbuild_callable_name
Return a fully-qualified name for callables when possible. Description: Uses module + qualname for callables (functions, methods, classes
espnet3/utils/logging_utils.py:732
↓ 12 callersFunctionexpand_to_frame
(expand_len, len_size, label, midi, duration)
espnet2/svs/feats_extract/score_feats_extract.py:330
↓ 12 callersMethodfrom_file
(cls, path: Union[str, Path], **kwargs: Any)
espnet2/sds/end_to_end/mini_omni/litgpt/config.py:143
↓ 12 callersFunctionget_layer
Return layer object handler from library e.g. from torch.nn E.g. if l_name=="elu", returns torch.nn.ELU. Args: l_name (string): Case
espnet2/torch_utils/get_layer_from_string.py:6
↓ 12 callersFunctionis_torch_complex_tensor
(c)
espnet2/enh/layers/complex_utils.py:26
↓ 12 callersMethodkeys
Return keys of files.
espnet2/legacy/utils/io_utils.py:69
↓ 12 callersMethodnamed_parameters
(self)
test/espnet2/speechlm/trainer/conftest.py:64
↓ 12 callersFunctionsplit_trn_by_rule
(root, name, rule_fn, trn_path)
egs2/ml_superb/asr1/local/split_results.py:172
↓ 12 callersFunctionth_accuracy
Calculate accuracy. Args: pad_outputs (Tensor): Prediction tensors (B * Lmax, D). pad_targets (LongTensor): Target label tensors
espnet2/legacy/nets/pytorch_backend/nets_utils.py:385
↓ 11 callersMethodanalysis
Analysis with PQMF. Args: x (Tensor): Input tensor (B, 1, T). Returns: Tensor: Output tensor (B, subbands, T
espnet2/gan_tts/melgan/pqmf.py:134
↓ 11 callersFunctioncheck_short_utt
Check if the utterance is too short for subsampling.
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:31
↓ 11 callersMethodclose
(self)
test/espnet3/parallel/test_parallel.py:372
↓ 11 callersMethodconvert
Convert Hz to mel.
espnet2/layers/sinc_conv.py:192
↓ 11 callersFunctionexpect_token
(expected_item, seen_item, what_parsing)
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/utils.py:294
↓ 11 callersMethodfit
Start the training loop using Lightning's fit method. Args: *args: Positional arguments passed to `trainer.fit()`. **
espnet3/components/trainers/trainer.py:239
↓ 11 callersFunctionget_size
Recursively finds size of objects Taken from https://github.com/bosswissam/pysize
espnet2/utils/sized_dict.py:24
↓ 11 callersMethodlog_message
(self, epoch: int = None)
espnet2/train/reporter.py:423
↓ 11 callersFunctionmake_train_batch
(module)
test/espnet3/components/modeling/test_model_with_optim_scheduler.py:238
↓ 11 callersMethodmeasure_time
(self, name: str)
espnet2/train/reporter.py:254
↓ 11 callersMethodnum_stream
(self)
test/espnet2/speechlm/model/speechlm/multimodal_io/test_abs_io.py:58
↓ 11 callersMethodset_hyp_primer
Set the primer sequence for decoding. Used for OpenAI Whisper models.
espnet2/legacy/nets/beam_search.py:123
↓ 11 callersMethodunfold
unfolding STFT representation to add context in the mics channel. Args: mixture (torch.Tensor): 3D tensor (monaural complex STFT)
espnet2/enh/separator/ineube_separator.py:118
↓ 10 callersFunctionLinearActivation
Return a linear module, initialization, and activation.
espnet2/asr/state_spaces/components.py:172
↓ 10 callersFunction_parse_data_specifier
Parse data specifier strings into structured tuples. Args: task_data_factors: Space-separated unregistered data specifiers. F
espnet2/speechlm/dataloader/iterator.py:348
↓ 10 callersFunction_resample
Resample a list by a given factor. For integer factors, simply repeats the list. For non-integer factors, repeats the whole list for the inte
espnet2/speechlm/dataloader/iterator.py:465
↓ 10 callersFunctionadd_sos_eos
Add <sos> and <eos> labels. :param torch.Tensor ys_pad: batch of padded target sequences (B, Lmax) :param int sos: index of <sos> :param
espnet2/legacy/nets/pytorch_backend/transformer/add_sos_eos.py:12
↓ 10 callersMethodbuild_iter
(self, epoch: int, shuffle: bool = None)
espnet2/iterators/abs_iter_factory.py:7
↓ 10 callersFunctionfile_writer_helper
Write matrices in kaldi style. Args: wspecifier: e.g. ark,scp:out.ark,out.scp filetype: "mat" is kaldi-martix, "hdf5": HDF5
espnet2/legacy/utils/cli_writers.py:15
↓ 10 callersMethodfind_length
(self, data)
test/espnet2/speechlm/model/test_parallel.py:113
↓ 10 callersFunctioninit_decoder_model
()
test/espnet2/layers/test_create_adapter_fn.py:34
↓ 10 callersFunctionnew_complex_like
( ref: Union[torch.Tensor, ComplexTensor], real_imag: Tuple[torch.Tensor, torch.Tensor], )
espnet2/enh/layers/complex_utils.py:12
↓ 10 callersMethodoutput_size
(self)
espnet2/s2st/tgt_feats_extract/log_mel_fbank.py:68
↓ 10 callersMethodregister
Register a tensor with a configurable learning rate and 0 weight decay.
espnet2/asr/state_spaces/s4.py:615
↓ 10 callersFunctionsample
( logits: torch.Tensor, temperature: float = 1.0, top_k: Optional[int] = None, top_p: float =
espnet2/sds/end_to_end/mini_omni/litgpt/generate/base.py:42
↓ 10 callersMethodscore
Score interface for both full and partial scorer. Args: y: previous char state: previous state x: encoded
espnet2/legacy/nets/scorers/ngram.py:65
↓ 10 callersMethodscore
Score new token. Args: y: 1D torch.int64 prefix tokens. state: Scorer state for prefix tokens x: 2D encod
espnet2/lm/seq_rnn_lm.py:105
↓ 10 callersFunctionset_parallel
Set the global Dask cluster using the provided configuration. Args: config (DictConfig): Configuration object with 'env' and cluster opti
espnet3/parallel/parallel.py:122
↓ 10 callersMethodskip_labels
remove wrong phoneme
egs2/TEMPLATE/asr1/pyscripts/utils/prep_segments.py:134
↓ 10 callersMethodstr
(self)
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/utils.py:243
↓ 9 callersMethod__init__
( self, n_mels: int = 128, sample_rate: int = 24000, f_min: float = 0.0,
espnet2/gan_svs/visinger2/visinger2_vocoder.py:892
↓ 9 callersMethod__init__
(self, module_cls, *args, **kwargs)
espnet2/enh/layers/dcunet.py:170
↓ 9 callersMethod__init__
(self, first_token, key_to_value, prev_names = None)
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/gru.py:37
↓ 9 callersMethod__init__
(self, first_token, key_to_value, prev_names=None)
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/trivial_layers.py:199
↓ 9 callersMethod__init__
first_token: first token on the xconfig line, e.g. 'affine-layer'.f key_to_value: dictionary with parameter values { '
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/basic_layers.py:24
↓ 9 callersMethod_init_sanity_check
Perform sanity checks and set combined values after initialization. This method validates that codec and SSL tokenizers are compatible
espnet2/speechlm/model/speechlm/multimodal_io/audio.py:282
↓ 9 callersFunction_install_stub
(name: str, module: types.ModuleType)
test/espnet2/speechlm/dataloader/conftest.py:14
↓ 9 callersFunction_load_stats
Load statistics from a JSONL file. Each line in the file should be a JSON object mapping example IDs to their lengths (in tokens or frames).
espnet2/speechlm/dataloader/iterator.py:407
↓ 9 callersFunction_read_scp
(path: Path)
test/espnet3/systems/base/test_inference.py:78
↓ 9 callersMethod_reject_stage_args
Reject unexpected positional/keyword arguments for stages.
espnet3/systems/base/system.py:152
↓ 9 callersMethodbuild_model
(cls, args)
test/espnet2/tasks/test_abs_task.py:62
← previousnext →101–200 of 9,880, ranked by callers