MCPcopy Create free account

hub / github.com/OPPO-Mente-Lab/X2I / functions

Functions612 in github.com/OPPO-Mente-Lab/X2I

↓ 295 callersMethodto
(self, *args, **kwargs)
minicpm/image_processing_minicpmv.py:86
↓ 92 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
minicpm/modeling_navit_siglip.py:120
↓ 24 callersFunctiongenerate
(pooled_prompt_embeds, prompt_embeds, outputs, filename, seed=None, height=1024, width=1024)
infer/inference_minicpm.py:182
↓ 24 callersFunctionget_minicpm_inputs_embeds
(videos=None, images=None, audios=None, text_prompt=None, proj=minicpm_proj)
infer/inference_minicpm.py:137
↓ 21 callersMethodgenerate
( self, input_ids=None, pixel_values=None, tgt_sizes=None, audio_featu
minicpm/modeling_minicpmo.py:770
↓ 18 callersMethodload
(path)
x2i_comfyui/model.py:34
↓ 17 callersMethoddecode
This method forwards all its arguments to LlamaTokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
minicpm/processing_minicpmo.py:243
↓ 17 callersFunctiongenerate
(pooled_prompt_embeds, prompt_embeds, outputs, filename, seed=None, height=1024, width=1024)
infer/inference_qwenvl.py:184
↓ 17 callersFunctionget_qwen_inputs_embeds
(videos=None, images=None, text_prompt=None, proj=qwen_proj)
infer/inference_qwenvl.py:136
↓ 14 callersMethodappend_message
Append a new message.
model_internvl/internvl/conversation.py:257
↓ 10 callersMethod__init__
(self, config)
model_internvl/modeling_qwen2.py:213
↓ 10 callersMethod__init__
(self, config)
model_internvl/internvl/modeling_internlm2.py:251
↓ 8 callersMethod__init__
( self, dim: int, levels: List[int], G: int, R: int, eps=1e-5,
minicpm/modeling_minicpmo.py:2263
↓ 8 callersFunctiongenerate
(pooled_prompt_embeds, prompt_embeds, outputs, filename, seed=1, height=1024, width=1024)
infer/inference_internvl.py:192
↓ 8 callersFunctionget_internvl_inputs_embeds
(videos=None, images=None, text_prompt=None, proj=internvl1b_proj)
infer/inference_internvl.py:165
↓ 8 callersMethodhas_cpu_preprocess
(self)
core/data/dataloader.py:38
↓ 8 callersMethodput
(self, value)
model_internvl/internvl/modeling_internlm2.py:1244
↓ 7 callersMethod__init__
(self, config)
minicpm/modeling_navit_siglip.py:630
↓ 7 callersMethod__init__
(self, config: InternVisionConfig)
model_internvl/internvl/modeling_intern_vit.py:252
↓ 6 callersMethod__init__
(self, in_dim=4096, out_dim=4096, hidden_dim=4096, out_dim1=768, layer_norm_eps=1e-5, use_residual=True)
model_internvl/proj.py:54
↓ 6 callersMethodhas_gpu_preprocess
(self)
core/data/dataloader.py:41
↓ 6 callersFunctionnormalize
(logit)
train/train_minicpm.py:63
↓ 6 callersFunctionnormalize
(logit)
train/train_internvl.py:62
↓ 6 callersFunctionnormalize
(logit)
train/train_qwenvl.py:58
↓ 6 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
model_internvl/modeling_qwen2.py:227
↓ 5 callersMethod__init__
(self, _index_queue, _result_queue, ip, port)
core/data/dataloader.py:305
↓ 5 callersMethoddecode_mel_to_audio
(self, mel_spec, output_path="")
minicpm/modeling_minicpmo.py:1878
↓ 5 callersMethoddecode_to_mel_specs
Decode discrete audio codes to mel spectrograms. Borrowed from `https://github.com/2noise/ChatTTS/blob/main/ChatTTS/core.py` Args:
minicpm/modeling_minicpmo.py:3149
↓ 5 callersFunctionget_conv_template
Get a conversation template.
model_internvl/internvl/conversation.py:330
↓ 5 callersMethodprefill_text
Prefill a chunk of new text tokens in streaming setting. Specifically speaking, update `past_key_values` using new text tokens, then the model
minicpm/modeling_minicpmo.py:2784
↓ 4 callersMethod_build_streaming_mask
(self, tts_tokens_len)
minicpm/modeling_minicpmo.py:1317
↓ 4 callersFunction_canonical_mask
( mask: Optional[Tensor], mask_name: str, other_type: Optional[DType], other_name: str, ta
minicpm/resampler.py:733
↓ 4 callersMethod_train_dataloader
(self, preprocess=None, process_group=None, group_rank=None)
utils/datamodule_qwenvl.py:138
↓ 4 callersMethodadd_data_specific_args
(parent_args)
utils/datamodule_qwenvl.py:26
↓ 4 callersFunctioncreate_proj3_qwen7b
(in_channels, use_t5=True, use_scale=True, use_cnn=False)
utils/proj.py:79
↓ 4 callersMethodencode
(self, tokenizer, pixel_values, question, generation_config, history=None, return_history=False,
model_internvl/internvl/modeling_internvl_chat.py:365
↓ 4 callersMethodensure_divide
(self, length, patch_size)
minicpm/image_processing_minicpmv.py:144
↓ 4 callersMethodfetch
(self, index)
core/data/dataloader.py:331
↓ 4 callersMethodgenerate
( self, pixel_values: Optional[torch.FloatTensor] = None, input_ids: Optio
model_internvl/internvl/modeling_internvl_chat.py:314
↓ 4 callersMethodget_input_embeddings
(self)
model_internvl/internvl/modeling_internlm2.py:824
↓ 4 callersMethodget_prompt
Get the prompt for generation.
model_internvl/internvl/conversation.py:63
↓ 4 callersMethodprepare_tts_text
(self, text)
minicpm/modeling_minicpmo.py:1293
↓ 4 callersFunctionregister_conv_template
Register a new conversation template.
model_internvl/internvl/conversation.py:320
↓ 3 callersMethod__init__
( self, in_channels: List[int] = [128, 128], out_channels: List[int] = [128, 256],
lightcontrol/lightcontrol_flux.py:580
↓ 3 callersFunction_create_fetcher_proxy
(create_fetcher_fn, preprocess)
core/data/dataloader.py:65
↓ 3 callersFunction_prepare_latent_image_ids
(batch_size, height, width, device, dtype)
train/train_minicpm.py:221
↓ 3 callersFunction_prepare_latent_image_ids
(batch_size, height, width, device, dtype)
train/train_internvl.py:219
↓ 3 callersFunction_prepare_latent_image_ids
(batch_size, height, width, device, dtype)
train/train_qwenvl.py:216
↓ 3 callersMethod_shutdown_workers
(self)
core/data/dataloader.py:170
↓ 3 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
model_internvl/modeling_qwen2.py:184
↓ 3 callersMethodbatch_decode
This method forwards all its arguments to LlamaTokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring o
minicpm/processing_minicpmo.py:225
↓ 3 callersMethodcopy
(self)
model_internvl/internvl/conversation.py:291
↓ 3 callersMethodfind_best_resize
(self, original_size, scale_resolution, patch_size, allow_upscale=False)
minicpm/image_processing_minicpmv.py:147
↓ 3 callersMethodget_omni_embedding
Args: data: input_embeddings: chunk_length: whisper use full attention or chunk attention str
minicpm/modeling_minicpmo.py:564
↓ 3 callersMethodget_vllm_embedding
Compute all visual embeddings, and set into llm embeddings. Args: data: Dict tgt_sizes: image size after
minicpm/modeling_minicpmo.py:291
↓ 3 callersMethodgpu_preprocess
(self, data, stream)
core/data/dataloader.py:47
↓ 3 callersMethodpad
(self, inputs, max_length=None, padding_value=0, padding_side="left")
minicpm/processing_minicpmo.py:396
↓ 2 callersMethod__init__
( self, use_cache=True, query_num=64, image_size=448, drop_vision_last
minicpm/configuration_minicpm.py:143
↓ 2 callersMethod__init__
(self, text_tokenizer)
minicpm/processing_minicpmo.py:481
↓ 2 callersMethod_get_feat_extract_output_lengths
Computes the output length of the convolutional layers and the output length of the audio encoder
minicpm/modeling_minicpmo.py:279
↓ 2 callersMethod_get_last_spk_embeds
(self, inputs, outputs)
minicpm/modeling_minicpmo.py:1326
↓ 2 callersMethod_linear_overlap_add2_wav
Merge two audio waveforms with smooth in streaming audio generation. Borrowed some codes from `https://github.com/huggingface/transfo
minicpm/modeling_minicpmo.py:1467
↓ 2 callersMethod_set_2d_pos_cache
(self, max_size, device="cpu")
minicpm/resampler.py:124
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
model_internvl/internvl/modeling_internlm2.py:162
↓ 2 callersMethod_shutdown_workers
(self)
core/data/dataloader.py:734
↓ 2 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors.
model_internvl/internvl/modeling_internlm2.py:241
↓ 2 callersFunctioncast_hook_list
(unet, lists)
train/train_minicpm.py:211
↓ 2 callersFunctioncast_hook_list
(unet, lists)
train/train_internvl.py:209
↓ 2 callersFunctioncast_hook_list
(unet, lists)
train/train_qwenvl.py:206
↓ 2 callersMethodconfig
(model_type)
x2i_comfyui/model.py:42
↓ 2 callersFunctioncreate_proj3_qwen3b
(in_channels, use_t5=True, use_scale=True, use_cnn=False)
utils/proj.py:74
↓ 2 callersFunctioncreate_proj_internvl4b
(in_channels, use_t5=True, use_scale=False,use_cnn=True)
utils/proj.py:89
↓ 2 callersFunctioncreate_proj_minicpm
(in_channels, use_t5=True, use_scale=True, use_cnn=False)
utils/proj.py:93
↓ 2 callersMethoddetect_language
(self, text)
minicpm/utils.py:107
↓ 2 callersFunctionexpand_urls
(urls)
utils/datamodule_lightcontrol.py:167
↓ 2 callersFunctionexpand_urls
(urls)
utils/datamodule_qwenvl.py:174
↓ 2 callersFunctionexpand_urls
(urls)
utils/datamodule_minicpm.py:177
↓ 2 callersFunctionexpand_urls
(urls)
utils/datamodule_internvl.py:171
↓ 2 callersFunctionexpand_urls1
(urls)
utils/datamodule_lightcontrol.py:177
↓ 2 callersFunctionexpand_urls1
(urls)
utils/datamodule_qwenvl.py:184
↓ 2 callersFunctionexpand_urls1
(urls)
utils/datamodule_minicpm.py:187
↓ 2 callersFunctionexpand_urls1
(urls)
utils/datamodule_internvl.py:181
↓ 2 callersMethodextract_feature
(self, pixel_values)
model_internvl/internvl/modeling_internvl_chat.py:188
↓ 2 callersFunctiongen_logits
( num_code: int, top_P=0.7, top_K=20, repetition_penalty=1.0, )
minicpm/modeling_minicpmo.py:3187
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid_new
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (H, W) out: (H, W, D)
minicpm/resampler.py:63
↓ 2 callersMethodget_sliced_grid
(self, image_size, max_slice_nums, nerver_split=False)
minicpm/image_processing_minicpmv.py:250
↓ 2 callersMethodis_bad
(self, audio_wav, mel_spec, chunk_size=2560, thresh=100.0)
minicpm/utils.py:171
↓ 2 callersFunctionmake_streaming_chunk_mask_generation
In streaming audio generation, determine which `text` positions the TTS model can attend to when generating each chunk of `audio` tokens. Th
minicpm/modeling_minicpmo.py:2464
↓ 2 callersMethodmulti_head_attention_forward
( self, query: Tensor, key: Tensor, value: Tensor, embed_dim_to_check:
minicpm/resampler.py:406
↓ 2 callersFunctionnorm_cdf
(x)
minicpm/modeling_navit_siglip.py:169
↓ 2 callersFunctionrecursive_converter
(converter, value)
minicpm/image_processing_minicpmv.py:44
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
model_internvl/internvl/modeling_internlm2.py:268
↓ 2 callersMethodreset
(self)
minicpm/utils.py:200
↓ 2 callersMethodreset_session
(self)
minicpm/modeling_minicpmo.py:132
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
model_internvl/modeling_qwen2.py:176
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
model_internvl/internvl/modeling_internlm2.py:233
↓ 2 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
lightcontrol/lightcontrol_flux.py:312
↓ 2 callersMethodshutdown
(self)
core/data/dataloader.py:343
↓ 2 callersMethodtransform
(path="/home/notebook/data/group/model_hub/qwen2.5-vl/Qwen/Qwen2___5-VL-3B-Instruct", save_path=None)
x2i_comfyui/model.py:168
↓ 2 callersMethodtransfrom
(config, state_path, save_path)
x2i_comfyui/model.py:90
next →1–100 of 612, ranked by callers