MCPcopy Create free account

hub / github.com/SillyTavern/SillyTavern-Extras / functions

Functions4,572 in github.com/SillyTavern/SillyTavern-Extras

↓ 550 callersMethodappend
append an existing dataset. Beware, if it wasn't built with the same coder, you are in trouble.
modules/voice_conversion/fairseq/data/huffman/huffman_mmap_indexed_dataset.py:261
↓ 522 callersMethodsize
(self, index)
modules/voice_conversion/fairseq/data/codedataset.py:489
↓ 291 callersMethodget
(self, sample_id, tgt_lang=None)
modules/voice_conversion/fairseq/data/audio/speech_to_text_dataset.py:446
↓ 165 callersFunctionsafe_getattr
Returns obj[k] if it exists and is not None, otherwise returns default.
modules/voice_conversion/fairseq/utils.py:830
↓ 164 callersMethodpad
Helper to get index of pad symbol
modules/voice_conversion/fairseq/data/dictionary.py:203
↓ 109 callersMethodeos
Helper to get index of end-of-sentence symbol
modules/voice_conversion/fairseq/data/dictionary.py:207
↓ 76 callersMethodwrite
(self, sizes)
modules/voice_conversion/fairseq/data/indexed_dataset.py:419
↓ 57 callersFunctionLayerNorm
(normalized_shape, eps=1e-5, elementwise_affine=True, export=False)
modules/voice_conversion/fairseq/modules/layer_norm.py:28
↓ 57 callersMethodarray
Fetch a read only view of an np.array, stored in plasma.
modules/voice_conversion/fairseq/data/plasma_utils.py:139
↓ 55 callersMethodload
Loads the dictionary from a text file with the format: ``` <symbol0> <count0> <symbol1> <count1> ... ```
modules/voice_conversion/fairseq/data/dictionary.py:216
↓ 54 callersMethodget_output
(self, key: str, modules: Dict[str, Module], batch: L
talkinghead/tha3/compute/cached_computation_protocol.py:11
↓ 53 callersMethodapply
(self, grid_change: Tensor, image: Tensor, align_corners: bool = False)
talkinghead/tha3/nn/image_processing_util.py:33
↓ 42 callersMethodbos
Helper to get index of beginning-of-sentence symbol
modules/voice_conversion/fairseq/data/dictionary.py:199
↓ 42 callersMethodexists
(path: str)
modules/voice_conversion/fairseq/file_io.py:85
↓ 41 callersMethodlog
Log intermediate stats according to log_interval.
modules/voice_conversion/fairseq/logging/progress_bar.py:156
↓ 38 callersFunctionChoiceEnum
return the Enum class used to enforce list of choices
modules/voice_conversion/fairseq/dataclass/constants.py:32
↓ 37 callersMethodencoder
(self)
modules/voice_conversion/fairseq/models/fairseq_model.py:435
↓ 36 callersMethodadd_symbol
Adds a word to the dictionary
modules/voice_conversion/fairseq/data/dictionary.py:125
↓ 35 callersMethodunk
Helper to get index of unk symbol
modules/voice_conversion/fairseq/data/dictionary.py:211
↓ 34 callersMethodload_state_dict
(self, state_dict)
modules/voice_conversion/fairseq/logging/meters.py:42
↓ 33 callersMethoddecoder
(self)
modules/voice_conversion/fairseq/models/fairseq_model.py:439
↓ 31 callersMethodhalf
(self)
modules/voice_conversion/fairseq/modules/lightconv_layer/lightconv_layer.py:136
↓ 30 callersMethodadd_parameter_group
(self, group_name: str, category: PoseParamete
talkinghead/tha3/poser/poser.py:109
↓ 29 callersMethodindex
Returns the index of the specified symbol
modules/voice_conversion/fairseq/data/dictionary.py:61
↓ 26 callersMethoddevice
(self)
modules/voice_conversion/fairseq/hub_utils.py:130
↓ 23 callersMethodcumsum
(sequence, sample_ratios)
modules/voice_conversion/fairseq/data/concat_dataset.py:16
↓ 23 callersFunctionquant_noise
Wraps modules and applies quantization noise to the weights for subsequent quantization with Iterative Product Quantization as described
modules/voice_conversion/fairseq/modules/quant_noise.py:10
↓ 23 callersFunctionsafe_hasattr
Returns True if the given key exists and is not None.
modules/voice_conversion/fairseq/utils.py:840
↓ 22 callersMethodcreate
(num_channels: int, is1x1: bool = False, use_scale_parameters: bool = False,
talkinghead/tha3/nn/resnet_block.py:15
↓ 21 callersMethodset_incremental_state
Helper for setting incremental state for an nn.Module.
modules/voice_conversion/fairseq/incremental_decoding_utils.py:34
↓ 21 callersMethodset_lr
(self, lr)
modules/voice_conversion/fairseq/optim/bmuf.py:55
↓ 21 callersFunctiontorch_load
(file_name)
talkinghead/tha3/util.py:245
↓ 21 callersFunctionwrap_conv_or_linear_module
(module: Module, initialization_method: Union[str, Callable[[Module], Module]],
talkinghead/tha3/nn/util.py:12
↓ 20 callersMethodforward
(self, x)
talkinghead/tha3/nn/normalization.py:43
↓ 20 callersMethodget_incremental_state
Helper for getting incremental state for an nn.Module.
modules/voice_conversion/fairseq/incremental_decoding_utils.py:23
↓ 20 callersMethodupdate
(self, val)
modules/voice_conversion/fairseq/logging/meters.py:120
↓ 19 callersMethodfrom_namespace
(cls, args)
modules/voice_conversion/fairseq/models/transformer/transformer_config.py:280
↓ 19 callersFunctiongen_parser_from_dataclass
convert a dataclass instance to tailing parser arguments. If `with_prefix` is provided, prefix all the keys in the resulting parser with it.
modules/voice_conversion/fairseq/dataclass/utils.py:53
↓ 19 callersMethodload_indexed_dataset
(path, dictionary)
modules/voice_conversion/fairseq/tasks/semisupervised_translation.py:165
↓ 18 callersMethodsize
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
modules/voice_conversion/fairseq/data/denoising_dataset.py:418
↓ 17 callersMethodclose
(self)
modules/voice_conversion/fairseq/data/huffman/huffman_mmap_indexed_dataset.py:279
↓ 17 callersMethodencode_line
( self, line, line_tokenizer=tokenize_line, add_if_not_exist=True, con
modules/voice_conversion/fairseq/data/dictionary.py:304
↓ 17 callersMethodget_lr
(self)
modules/voice_conversion/fairseq/optim/bmuf.py:52
↓ 17 callersMethodsave
Stores dictionary into a text file
modules/voice_conversion/fairseq/data/dictionary.py:288
↓ 16 callersFunctionLinear
Weight-normalized Linear layer (input: N x T x C)
modules/voice_conversion/fairseq/models/fconv_self_att.py:605
↓ 16 callersFunction_fill
Filling tensor x with y at masked positions (dim=0).
modules/voice_conversion/fairseq/models/nat/levenshtein_utils.py:265
↓ 16 callersMethodexists
(path)
modules/voice_conversion/fairseq/data/indexed_dataset.py:209
↓ 16 callersMethodstate_dict
(self, destination=None, prefix="", keep_vars=False)
modules/voice_conversion/fairseq/modules/linearized_convolution.py:32
↓ 16 callersMethodstring
Helper for converting a tensor of token indices to a string. Can optionally remove BPE symbols or escape <unk> words.
modules/voice_conversion/fairseq/data/dictionary.py:68
↓ 15 callersMethod__init__
( self, samp_rate, harmonic_num=0, sine_amp=0.1, noise_std=0.003,
modules/voice_conversion/rvc/infer_pack/models.py:297
↓ 15 callersMethodcuda
(self)
modules/voice_conversion/fairseq/sequence_generator.py:133
↓ 15 callersMethodget_num_updates
Get the number of parameters updates.
modules/voice_conversion/fairseq/trainer.py:1240
↓ 15 callersMethodnorm
(t)
modules/voice_conversion/fairseq/modules/kmeans_attention.py:175
↓ 15 callersMethodopen
( path: str, mode: str = "r", buffering: int = -1, encoding: Optional[str] = N
modules/voice_conversion/fairseq/file_io.py:44
↓ 15 callersMethodremove_weight_norm
(self)
modules/voice_conversion/rvc/infer_pack/models.py:274
↓ 14 callersFunctionPositionalEmbedding
(num_embeddings, embedding_dim, padding_idx)
modules/voice_conversion/fairseq/models/fconv.py:664
↓ 14 callersFunction_pair
(v)
modules/voice_conversion/fairseq/modules/vggblock.py:15
↓ 14 callersFunctionbuild_embedding
(dictionary, embed_dim)
modules/voice_conversion/fairseq/models/speech_to_text/xm_transformer.py:38
↓ 14 callersMethodcopy
(src_path: str, dst_path: str, overwrite: bool = False)
modules/voice_conversion/fairseq/file_io.py:71
↓ 14 callersFunctioncreate_conv3
(in_channels: int, out_channels: int, bias: bool = False, i
talkinghead/tha3/nn/conv.py:33
↓ 14 callersMethodexists
(path)
modules/voice_conversion/fairseq/data/fasta_dataset.py:91
↓ 13 callersFunctionbase_architecture
(args)
modules/voice_conversion/fairseq/models/roberta/model.py:628
↓ 13 callersFunctionget_padding
(kernel_size, dilation=1)
modules/voice_conversion/rvc/infer_pack/commons.py:14
↓ 13 callersMethodload_state_dict
( self, state_dict, strict=True, model_cfg=None, args: Optional[Namesp
modules/voice_conversion/fairseq/models/hubert/hubert_asr.py:303
↓ 13 callersMethodsize
(self, index)
modules/voice_conversion/fairseq/data/audio/hubert_dataset.py:331
↓ 12 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
modules/voice_conversion/fairseq/models/transformer/transformer_base.py:189
↓ 12 callersFunctionLinear
(in_features, out_features, bias=True)
modules/voice_conversion/fairseq/models/lightconv.py:998
↓ 12 callersMethodencode
(self, sentence: str)
modules/voice_conversion/fairseq/hub_utils.py:306
↓ 12 callersMethodresolve_2d
(factory: Optional['NormalizationLayerFactory'])
talkinghead/tha3/nn/normalization.py:30
↓ 12 callersMethodtrain
(mode=True)
modules/voice_conversion/fairseq/models/fairseq_model.py:213
↓ 11 callersMethod__init__
(self, chunks, fn, along_dim=-1)
modules/voice_conversion/fairseq/modules/kmeans_attention.py:133
↓ 11 callersMethoddevice
(self)
modules/voice_conversion/fairseq/models/roberta/hub_interface.py:32
↓ 11 callersMethodgenerate
(self, models, sample, **kwargs)
modules/voice_conversion/fairseq/tasks/speech_to_speech.py:57
↓ 11 callersFunctionresolve_nonlinearity_factory
(nonlinearity_fatory: Optional[ModuleFactory])
talkinghead/tha3/nn/nonlinearity_factory.py:68
↓ 11 callersMethodupdate
Updates counts from new dictionary.
modules/voice_conversion/fairseq/data/dictionary.py:138
↓ 10 callersFunctionLinear
(in_features, out_features, bias=True)
modules/voice_conversion/fairseq/models/transformer/transformer_decoder.py:448
↓ 10 callersMethod_set_input_buffer
(self, incremental_state, new_buffer)
modules/voice_conversion/fairseq/modules/dynamic_convolution.py:295
↓ 10 callersMethodbuild_tokenizer
Build the pre-tokenizer for this task.
modules/voice_conversion/fairseq/tasks/fairseq_task.py:625
↓ 10 callersFunctioncompute_mask_indices
Computes random mask spans for a given shape Args: shape: the the shape for which to compute masks. should be of size 2
modules/voice_conversion/fairseq/data/data_utils.py:393
↓ 10 callersFunctionconvert_namespace_to_omegaconf
Convert a flat argparse.Namespace to a structured DictConfig.
modules/voice_conversion/fairseq/dataclass/utils.py:386
↓ 10 callersMethodencode
(x: str)
modules/voice_conversion/fairseq/data/encoders/bytes.py:26
↓ 10 callersMethodget_local_path
(path: str, **kwargs)
modules/voice_conversion/fairseq/file_io.py:79
↓ 10 callersMethodresidual_connection
(self, x, residual)
modules/voice_conversion/fairseq/modules/transformer_layer.py:146
↓ 10 callersFunctionuse_xla
()
modules/voice_conversion/fairseq/distributed/utils.py:372
↓ 9 callersFunctionLinear
Weight-normalized Linear layer (input: B x T x C)
modules/voice_conversion/fairseq/modules/downsampled_multihead_attention.py:301
↓ 9 callersFunctionLinear
Weight-normalized Linear layer (input: N x T x C)
modules/voice_conversion/fairseq/models/fconv.py:671
↓ 9 callersMethod__init__
(self, n_blocks, n_gru, kernel_size, en_de_layers=5, inter_layers=4, in_channels=1, en_out_ch
modules/voice_conversion/rvc/rmvpe.py:158
↓ 9 callersMethodaverage
(self)
talkinghead/tha3/app/util.py:312
↓ 9 callersFunctionbase_lm_architecture
(args)
modules/voice_conversion/fairseq/models/transformer_lm.py:325
↓ 9 callersMethodbuild_generator
Build a :class:`~fairseq.SequenceGenerator` instance for this task. Args: models (List[~fairseq.models.FairseqMo
modules/voice_conversion/fairseq/tasks/fairseq_task.py:359
↓ 9 callersFunctiondefault
(x, d)
modules/voice_conversion/fairseq/modules/kmeans_attention.py:30
↓ 9 callersMethodelapsed_time
(self)
modules/voice_conversion/fairseq/logging/meters.py:184
↓ 9 callersFunctionexists
(val)
modules/voice_conversion/fairseq/modules/kmeans_attention.py:22
↓ 9 callersMethodget_arity
(self)
talkinghead/tha3/poser/poser.py:47
↓ 9 callersMethodget_model
Get the (non-wrapped) model instance.
modules/voice_conversion/fairseq/trainer.py:1191
↓ 9 callersMethodget_pose_parameter_groups
(self)
talkinghead/tha3/poser/poser.py:142
↓ 9 callersFunctionlengths_to_padding_mask
(lens)
modules/voice_conversion/fairseq/data/data_utils.py:542
↓ 9 callersMethodmax_positions
Maximum length supported by the model.
modules/voice_conversion/fairseq/models/fairseq_model.py:99
↓ 9 callersFunctionnormal_
(data)
modules/voice_conversion/fairseq/modules/transformer_sentence_encoder.py:35
↓ 8 callersMethod__init__
( self, hidden_channels, kernel_size, dilation_rate, n_layers,
modules/voice_conversion/rvc/infer_pack/modules.py:137
next →1–100 of 4,572, ranked by callers