MCPcopy Create free account

hub / github.com/LemonQu-GIT/MurasamePet / functions

Functions883 in github.com/LemonQu-GIT/MurasamePet

↓ 133 callersMethodto
(self, *arg, **kwargs)
gpt_sovits/tools/audio_sr.py:36
↓ 127 callersFunctionlog
日志输出
run_project.py:23
↓ 30 callersMethodkeys
(self)
gpt_sovits/GPT_SoVITS/utils.py:331
↓ 19 callersMethoditems
(self)
gpt_sovits/GPT_SoVITS/utils.py:334
↓ 18 callersMethod__init__
(self, in_channels, dit)
gpt_sovits/GPT_SoVITS/module/models.py:1022
↓ 18 callersMethod__init__
( self, hidden_channels, kernel_size, dilation_rate, n_layers,
gpt_sovits/GPT_SoVITS/module/modules.py:133
↓ 13 callersFunctionget_padding
(kernel_size, dilation=1)
gpt_sovits/GPT_SoVITS/module/commons.py:12
↓ 13 callersFunctionrun_command
运行命令
run_project.py:39
↓ 12 callersFunctionnum2str
(value_string: str)
gpt_sovits/GPT_SoVITS/text/zh_normalization/num.py:317
↓ 12 callersMethodrun
(self)
pet.py:652
↓ 11 callersMethoddecode
(self, codes, text, refer, noise_scale=0.5, speed=1, sv_emb=None)
gpt_sovits/GPT_SoVITS/module/models.py:969
↓ 11 callersMethodgetTexts
(text,default_lang = "")
gpt_sovits/GPT_SoVITS/text/LangSegmenter/langsegmenter.py:90
↓ 11 callersFunctionmerge_lang
(lang_list, item)
gpt_sovits/GPT_SoVITS/text/LangSegmenter/langsegmenter.py:69
↓ 8 callersMethod__init__
( self, h: AttrDict, period: List[int], kernel_size: int = 5, stride:
gpt_sovits/GPT_SoVITS/BigVGAN/discriminators.py:22
↓ 8 callersFunctionnormalize
!!! 所有的处理都需要正确的输入 !!! 可以添加新的处理,只需要添加正则表达式和对应的处理函数即可
gpt_sovits/GPT_SoVITS/text/en_normalization/expend.py:241
↓ 8 callersFunctionspectrogram_torch
(y, n_fft, sampling_rate, hop_size, win_size, center=False)
gpt_sovits/GPT_SoVITS/module/mel_processing.py:40
↓ 7 callersMethod__init__
( self, dim: int, layer_scale_init_value=None, adanorm_num_embeddings=None,
gpt_sovits/tools/AP_BWE_main/models/model.py:36
↓ 7 callersMethod__init__
( self, in_channels, out_channels, filter_channels, kernel_size,
gpt_sovits/GPT_SoVITS/module/attentions.py:338
↓ 7 callersMethod_all_tone_three
(self, finals: List[str])
gpt_sovits/GPT_SoVITS/text/tone_sandhi.py:626
↓ 7 callersFunctionget_padding
(kernel_size, dilation=1)
gpt_sovits/GPT_SoVITS/BigVGAN/utils0.py:57
↓ 7 callersFunctionis_local
(endpoint)
run_project.py:582
↓ 6 callersFunction_numeric_feature_by_regex
(regex, s)
gpt_sovits/GPT_SoVITS/text/japanese.py:260
↓ 6 callersFunctioncleaned_text_to_sequence
Converts a string of text to a sequence of IDs corresponding to the symbols in the text. Args: text: string to convert to a sequence Ret
gpt_sovits/GPT_SoVITS/text/__init__.py:14
↓ 6 callersMethodencode
(self, x)
gpt_sovits/GPT_SoVITS/module/core_vq.py:185
↓ 6 callersFunctionget_padding
(kernel_size, dilation=1)
gpt_sovits/tools/AP_BWE_main/models/model.py:8
↓ 6 callersFunctionload_audio
(file, sr)
gpt_sovits/tools/my_utils.py:16
↓ 6 callersMethodrun
Text to speech inference. Args: inputs (dict): { "text": "", # str
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:1017
↓ 6 callersMethodsave_configs
(self, configs_path: str = None)
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:401
↓ 6 callersFunctionverbalize_digit
(value_string: str, alt_one=False)
gpt_sovits/GPT_SoVITS/text/zh_normalization/num.py:309
↓ 5 callersFunctioncreate_response
(response_text, history, status=200)
api.py:229
↓ 5 callersMethodget_2d_padding
( self, kernel_size: typing.Tuple[int, int], dilation: typing.Tuple[int, int] = (1, 1)
gpt_sovits/GPT_SoVITS/BigVGAN/discriminators.py:488
↓ 5 callersFunctionlog_response
(response)
api.py:217
↓ 5 callersFunctionquery
(prompt: str, history: list[dict] = [], role: str = "user", try_reduce_repeat: bool = True, return_think=True,
Murasame/chat.py:44
↓ 5 callersMethodto_mask
( self, x: torch.Tensor, padding_mask: Optional[torch.Tensor], )
gpt_sovits/GPT_SoVITS/AR/models/t2s_model.py:122
↓ 5 callersFunctionverbalize_cardinal
(value_string: str)
gpt_sovits/GPT_SoVITS/text/zh_normalization/num.py:293
↓ 4 callersMethod__init__
( self, normalized_shape: _shape_t, eps: float = 1e-5, elementwise_affine: boo
gpt_sovits/GPT_SoVITS/AR/modules/transformer.py:28
↓ 4 callersFunction_g2p
(segments)
gpt_sovits/GPT_SoVITS/text/chinese.py:94
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
gpt_sovits/GPT_SoVITS/eres2net/ERes2NetV2.py:207
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
gpt_sovits/GPT_SoVITS/eres2net/ERes2Net.py:206
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
gpt_sovits/GPT_SoVITS/eres2net/ERes2Net_huge.py:206
↓ 4 callersFunction_time_num2str
A special case for verbalizing number in time.
gpt_sovits/GPT_SoVITS/text/zh_normalization/chronology.py:22
↓ 4 callersFunctionanalyze_endpoint
(name, endpoint)
run_project.py:585
↓ 4 callersFunctioncheck_cuda
检查Windows CUDA
run_project.py:127
↓ 4 callersFunctioncheck_uv
检查uv
run_project.py:198
↓ 4 callersMethoddecode_encp
(self, codes, text, refer, ge=None, speed=1)
gpt_sovits/GPT_SoVITS/module/models.py:1259
↓ 4 callersFunctionmake_pad_mask_left
Args: lengths: A 1-D tensor containing sentence lengths. max_len: The length of masks. Returns: Return a 2-
gpt_sovits/GPT_SoVITS/AR/models/utils.py:44
↓ 4 callersMethodnormalize
(self, text: str)
gpt_sovits/GPT_SoVITS/text/zh_normalization/text_normlization.py:172
↓ 4 callersFunctionresample
(audio_tensor, sr0, sr1, device)
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:42
↓ 4 callersMethodshow_text
(self, text: str, x_offset: int = None, y_offset: int = None, typing: bool = True, typing_prefix: str = "【 丛雨
pet.py:310
↓ 4 callersMethodtransform
(self, phonemes)
gpt_sovits/GPT_SoVITS/AR/text_processing/phonemizer.py:58
↓ 4 callersMethodweight_norm
(self)
gpt_sovits/GPT_SoVITS/module/attentions.py:439
↓ 4 callersFunctionwrap_text
(text, width=12)
pet.py:19
↓ 3 callersMethod__init__
(self, hidden_channels, kernel_size, dilation_rate, n_layers)
gpt_sovits/GPT_SoVITS/module/mrte_model.py:98
↓ 3 callersMethod__init__
(self, inplace=False)
gpt_sovits/GPT_SoVITS/eres2net/ERes2NetV2.py:20
↓ 3 callersMethod__init__
(self, inplace=False)
gpt_sovits/GPT_SoVITS/eres2net/ERes2Net.py:20
↓ 3 callersMethod__init__
(self, inplace=False)
gpt_sovits/GPT_SoVITS/eres2net/ERes2Net_huge.py:21
↓ 3 callersMethod__init__
(self, **kwargs)
gpt_sovits/GPT_SoVITS/eres2net/pooling_layers.py:15
↓ 3 callersFunction_get_epsilon
(device, dtype)
gpt_sovits/GPT_SoVITS/eres2net/kaldi.py:35
↓ 3 callersFunction_subtract_column_mean
(tensor: Tensor, subtract_mean: bool)
gpt_sovits/GPT_SoVITS/eres2net/kaldi.py:220
↓ 3 callersFunctionanti_wrapping_function
(x)
gpt_sovits/tools/AP_BWE_main/models/model.py:445
↓ 3 callersFunctionclean_text
(text, language, version=None)
gpt_sovits/GPT_SoVITS/text/cleaner.py:21
↓ 3 callersMethodconvert
(self, words, style, heteronym, errors, strict, **kwargs)
gpt_sovits/GPT_SoVITS/text/g2pw/g2pw.py:55
↓ 3 callersMethoddecode
(self, embed_ind)
gpt_sovits/GPT_SoVITS/module/core_vq.py:195
↓ 3 callersMethoddecode_next_token
( self, x: torch.Tensor, k_cache: torch.Tensor, v_cache: torch.Tensor,
gpt_sovits/GPT_SoVITS/AR/models/t2s_model.py:176
↓ 3 callersMethodembedding
(self, index: int)
gpt_sovits/GPT_SoVITS/AR/modules/embedding.py:27
↓ 3 callersMethodempty_cache
(self)
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:1400
↓ 3 callersFunctionformat_bot_response
(resp: str)
Murasame/chat.py:21
↓ 3 callersFunctiong2p
(text)
gpt_sovits/GPT_SoVITS/text/english.py:363
↓ 3 callersFunctionget_config
()
Murasame/utils.py:43
↓ 3 callersFunctionget_current_time
()
api.py:207
↓ 3 callersFunctionget_optimal_device
自动检测并返回最优设备 优先级: MPS > CUDA > CPU
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:194
↓ 3 callersMethodinit_t2s_weights
(self, weights_path: str)
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:618
↓ 3 callersMethodinit_vits_weights
(self, weights_path: str)
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:517
↓ 3 callersFunctionlatin_to_hangul
(text)
gpt_sovits/GPT_SoVITS/text/korean.py:170
↓ 3 callersFunctionlog_request
(prompt)
api.py:212
↓ 3 callersMethodmodified_tone
(self, word: str, pos: str, finals: List[str])
gpt_sovits/GPT_SoVITS/text/tone_sandhi.py:769
↓ 3 callersFunctionparse_request
(json_post_list)
api.py:222
↓ 3 callersMethodprocess_prompt
( self, x: torch.Tensor, attn_mask: torch.Tensor, padding_mask: Optional[torch
gpt_sovits/GPT_SoVITS/AR/models/t2s_model.py:135
↓ 3 callersFunctionscaled_dot_product_attention
( query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attn_mask: Optional[torch.Tenso
gpt_sovits/GPT_SoVITS/AR/models/t2s_model.py:39
↓ 3 callersMethodsegment_and_extract_feature_for_text
( self, text: str, language: str, version: str = "v1" )
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:117
↓ 3 callersFunctionset_no_grad
(net_g)
gpt_sovits/GPT_SoVITS/module/models.py:1131
↓ 3 callersFunctionspec_to_mel_torch
(spec, n_fft, num_mels, sampling_rate, fmin, fmax)
gpt_sovits/GPT_SoVITS/module/mel_processing.py:77
↓ 3 callersMethodstop
(self)
pet.py:631
↓ 3 callersFunctiontranditional_to_simplified
(text: str)
gpt_sovits/GPT_SoVITS/text/zh_normalization/char_convert.py:30
↓ 3 callersMethodupdate_configs
(self)
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:411
↓ 3 callersFunctionvtln_warp_mel_freq
r""" Args: vtln_low_cutoff (float): Lower frequency cutoffs for VTLN vtln_high_cutoff (float): Upper frequency cutoffs for VTLN
gpt_sovits/GPT_SoVITS/eres2net/kaldi.py:409
↓ 2 callersMethod__init__
(self)
pet.py:56
↓ 2 callersMethod__init__
( self, dim: int, codebook_size: int, kmeans_init: int = False, kmeans
gpt_sovits/GPT_SoVITS/module/core_vq.py:113
↓ 2 callersMethod__init__
(self, h: AttrDict, use_cuda_kernel: bool = False)
gpt_sovits/GPT_SoVITS/BigVGAN/bigvgan.py:249
↓ 2 callersMethod_ff_block
(self, x: Tensor)
gpt_sovits/GPT_SoVITS/AR/modules/transformer.py:328
↓ 2 callersFunction_get_log_energy
r"""Returns the log energy of size (m) for a strided_input (m,*)
gpt_sovits/GPT_SoVITS/eres2net/kaldi.py:116
↓ 2 callersMethod_get_ref_spec
(self, ref_audio_path)
gpt_sovits/GPT_SoVITS/TTS_infer_pack/TTS.py:791
↓ 2 callersMethod_get_relative_embeddings
(self, relative_embeddings, length)
gpt_sovits/GPT_SoVITS/module/attentions.py:278
↓ 2 callersFunction_get_waveform_and_window_properties
r"""Gets the waveform and window properties
gpt_sovits/GPT_SoVITS/eres2net/kaldi.py:125
↓ 2 callersFunction_get_window
r"""Gets a window and its log energy Returns: (Tensor, Tensor): strided_input of size (m, ``padded_window_size``) and signal_log_energy o
gpt_sovits/GPT_SoVITS/eres2net/kaldi.py:154
↓ 2 callersMethod_is_reduplication
(self, word: str)
gpt_sovits/GPT_SoVITS/text/tone_sandhi.py:704
↓ 2 callersFunction_merge_erhua
Do erhub.
gpt_sovits/GPT_SoVITS/text/chinese2.py:142
↓ 2 callersMethod_sa_block
( self, x: Tensor, attn_mask: Optional[Tensor], key_padding_mask: Optional[Ten
gpt_sovits/GPT_SoVITS/AR/modules/transformer.py:305
↓ 2 callersMethod_split_word
(self, word: str)
gpt_sovits/GPT_SoVITS/text/tone_sandhi.py:573
↓ 2 callersMethodattention
(self, query, key, value, mask=None)
gpt_sovits/GPT_SoVITS/module/attentions.py:227
next →1–100 of 883, ranked by callers