MCPcopy Create free account

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

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

↓ 2 callersFunctionvariance_scaling_
(tensor, scale=1.0, mode="fan_in", distribution="normal")
minicpm/modeling_navit_siglip.py:239
↓ 1 callersMethod__call__
(self, text_list, audio_list)
minicpm/processing_minicpmo.py:485
↓ 1 callersMethod__init__
(self, data: Optional[Dict[str, Any]] = None, tensor_type: Union[None, str, TensorType] = None)
minicpm/image_processing_minicpmv.py:59
↓ 1 callersMethod__init__
( self, num_queries, embed_dim, num_heads, kv_dim=None, norm_l
minicpm/resampler.py:91
↓ 1 callersMethod__init__
( self, args, tokenizer_t5, tokenizer_t5_en, tokenizer_en, cus
utils/datamodule_lightcontrol.py:57
↓ 1 callersMethod__init__
( self, args, tokenizer_t5, tokenizer_t5_en, tokenizer_en, cus
utils/datamodule_qwenvl.py:58
↓ 1 callersMethod__init__
(self, in_dim=4096, out_dim=4096, hidden_dim=4096, out_dim1=768, layer_norm_eps=1e-5, use_residual=True)
utils/proj.py:15
↓ 1 callersMethod__init__
( self, args, tokenizer_t5, tokenizer_t5_en, tokenizer_en, cus
utils/datamodule_minicpm.py:58
↓ 1 callersMethod__init__
( self, args, tokenizer_t5, tokenizer_t5_en, tokenizer_en, cus
utils/datamodule_internvl.py:54
↓ 1 callersMethod__init__
(self, in_dim=4096, out_dim=4096, hidden_dim=4096, out_dim1=768, layer_norm_eps=1e-5, use_residual=True)
x2i_comfyui/model.py:11
↓ 1 callersMethod_adjust_pos_cache
(self, tgt_sizes, device)
minicpm/resampler.py:130
↓ 1 callersMethod_convert
(self, input_str, max_inp_length: Optional[int] = None, **kwargs)
minicpm/processing_minicpmo.py:258
↓ 1 callersMethod_convert_omni_to_inputs
( self, images, audio_phs, texts: Union[str, List[str]], truncation=No
minicpm/processing_minicpmo.py:294
↓ 1 callersMethod_decode
(self, inputs_embeds, tokenizer, attention_mask, **kwargs)
minicpm/modeling_minicpmo.py:640
↓ 1 callersMethod_decode_stream
(self, inputs_embeds, tokenizer, **kwargs)
minicpm/modeling_minicpmo.py:655
↓ 1 callersMethod_decode_text
(self, result_ids, tokenizer)
minicpm/modeling_minicpmo.py:671
↓ 1 callersMethod_dynamic_frequency_update
dynamic RoPE layers should recompute `inv_freq` in the following situations: 1 - growing beyond the cached sequence length (allow sca
model_internvl/modeling_qwen2.py:133
↓ 1 callersMethod_embed
(self, x: torch.Tensor)
minicpm/modeling_minicpmo.py:2285
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
model_internvl/internvl/modeling_internlm2.py:114
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
minicpm/modeling_navit_siglip.py:533
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
model_internvl/internvl/modeling_internlm2.py:509
↓ 1 callersMethod_flash_attn
(self, x, key_padding_mask=None, need_weights=False)
model_internvl/internvl/modeling_intern_vit.py:229
↓ 1 callersMethod_generate_mel_spec
(self, inputs, outputs, text, output_chunk_size=25, tts_max_new_tokens=2048)
minicpm/modeling_minicpmo.py:1338
↓ 1 callersMethod_generate_mel_spec_audio_streaming
( self, spk_bounds, streamer, output_chunk_size=25, spk_embeds=None,
minicpm/modeling_minicpmo.py:1498
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
model_internvl/internvl/modeling_intern_vit.py:154
↓ 1 callersFunction_get_unpad_data
(attention_mask)
minicpm/modeling_navit_siglip.py:154
↓ 1 callersFunction_get_unpad_data
(attention_mask)
model_internvl/internvl/modeling_internlm2.py:83
↓ 1 callersFunction_import_flash_attn
()
model_internvl/internvl/modeling_internlm2.py:65
↓ 1 callersFunction_in_projection
r""" Performs the in-projection step of the attention operation. This is simply a triple of linear projections, with shape constraints on the
minicpm/resampler.py:818
↓ 1 callersFunction_in_projection_packed
r""" Performs the in-projection step of the attention operation, using packed weights. Output is a triple containing projection tensors for qu
minicpm/resampler.py:758
↓ 1 callersMethod_init_rope
(self)
model_internvl/internvl/modeling_internlm2.py:310
↓ 1 callersMethod_initialize_weights
(self)
utils/proj.py:55
↓ 1 callersMethod_initialize_weights
(self)
x2i_comfyui/model.py:119
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
model_internvl/internvl/modeling_internlm2.py:96
↓ 1 callersFunction_mha_shape_check
( query: Tensor, key: Tensor, value: Tensor, key_padding_mask: Optional[Tensor], attn_mask
minicpm/resampler.py:671
↓ 1 callersMethod_naive_attn
(self, x)
model_internvl/internvl/modeling_intern_vit.py:210
↓ 1 callersFunction_pack_latents
(latents, batch_size, num_channels_latents, height, width)
lightcontrol/train_lightcontrol.py:396
↓ 1 callersFunction_pack_latents
(latents, batch_size, num_channels_latents, height, width)
train/train_minicpm.py:234
↓ 1 callersFunction_pack_latents
(latents, batch_size, num_channels_latents, height, width)
train/train_internvl.py:232
↓ 1 callersFunction_pack_latents
(latents, batch_size, num_channels_latents, height, width)
train/train_qwenvl.py:229
↓ 1 callersMethod_prepare_4d_causal_attention_mask_with_cache_position
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_l
model_internvl/modeling_qwen2.py:1013
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
model_internvl/internvl/modeling_internlm2.py:830
↓ 1 callersFunction_prepare_latent_image_ids
(batch_size, height, width, device, dtype)
lightcontrol/train_lightcontrol.py:383
↓ 1 callersMethod_repeat
(self, query, N: int)
minicpm/resampler.py:188
↓ 1 callersMethod_reset
(self, loader, first_iter=False)
core/data/dataloader.py:148
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
model_internvl/internvl/configuration_internlm2.py:127
↓ 1 callersMethod_start
(self)
core/data/dataloader.py:448
↓ 1 callersFunction_trunc_normal_
(tensor, mean, std, a, b)
minicpm/modeling_navit_siglip.py:166
↓ 1 callersFunction_unpack_latents
(latents, height, width, vae_scale_factor)
lightcontrol/train_lightcontrol.py:403
↓ 1 callersMethod_unpad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
model_internvl/internvl/modeling_internlm2.py:563
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
minicpm/modeling_navit_siglip.py:589
↓ 1 callersMethod_update_causal_mask
( self, attention_mask: torch.Tensor, input_tensor: torch.Tensor, cache_positi
model_internvl/modeling_qwen2.py:936
↓ 1 callersFunctionapply_spk_emb
Replace consecutive `num_spk_embs` speaker embedding placeholders in input_embeds with pre-prepared speaker embeddings. This is an in-place repla
minicpm/modeling_minicpmo.py:2428
↓ 1 callersFunctionaudio2image
(outputs=outputs)
infer/inference_minicpm.py:296
↓ 1 callersMethodaudio_feature_extract
( self, audios: Union[np.ndarray, List[np.ndarray], List[List[np.ndarray]]], audio_par
minicpm/processing_minicpmo.py:130
↓ 1 callersMethodbuild_inputs
(self, tokenizer, query: str, history: List[Tuple[str, str]] = [], meta_instruction='')
model_internvl/internvl/modeling_internlm2.py:1158
↓ 1 callersFunctionbuild_transform
(input_size)
utils/internvl_util.py:8
↓ 1 callersFunctioncalculate_shift
( image_seq_len, base_seq_len: int = 256, max_seq_len: int = 4096, base_shift: float = 0.5,
train/train_minicpm.py:242
↓ 1 callersFunctioncalculate_shift
( image_seq_len, base_seq_len: int = 256, max_seq_len: int = 4096, base_shift: float = 0.5,
train/train_internvl.py:239
↓ 1 callersFunctioncalculate_shift
( image_seq_len, base_seq_len: int = 256, max_seq_len: int = 4096, base_shift: float = 0.5,
train/train_qwenvl.py:236
↓ 1 callersMethodchat
( self, tokenizer, query: str, history: List[Tuple[str, str]] = [], st
model_internvl/internvl/modeling_internlm2.py:1171
↓ 1 callersMethodcompute_distance
(self, audio_chunk, mel_spec)
minicpm/utils.py:158
↓ 1 callersMethodcompute_distance
(self, audio_chunk, mel_spec)
minicpm/utils copy.py:158
↓ 1 callersMethodconvert_to_tensors
(self, tensor_type: Optional[Union[str, TensorType]] = None)
minicpm/image_processing_minicpmv.py:63
↓ 1 callersMethodcpu_preprocess
(self, data)
core/data/dataloader.py:44
↓ 1 callersFunctioncreate_proj_internvl1b
(in_channels, use_t5=True, use_scale=True,use_cnn=True)
utils/proj.py:84
↓ 1 callersFunctiondefault_flax_embed_init
(tensor)
minicpm/modeling_navit_siglip.py:268
↓ 1 callersMethoddetect_language
(self, text)
minicpm/utils copy.py:107
↓ 1 callersFunctiondist_info
()
core/pipeline/train_and_infer.py:6
↓ 1 callersFunctiondynamic_preprocess
(image, min_num=1, max_num=12, image_size=448, use_thumbnail=False)
utils/internvl_util.py:18
↓ 1 callersMethodenable_gradient_checkpointing
(self)
utils/proj.py:59
↓ 1 callersMethodencode
(self, proj, images, videos, audios, text)
x2i_comfyui/model.py:183
↓ 1 callersFunctionencode_video
(video_path)
infer/inference_minicpm.py:121
↓ 1 callersMethodend
(self)
model_internvl/internvl/modeling_internlm2.py:1265
↓ 1 callersFunctionfind_closest_aspect_ratio
(aspect_ratio, target_ratios, width, height, image_size)
utils/internvl_util.py:56
↓ 1 callersMethodforward
(self, hidden_state)
model_internvl/modeling_qwen2.py:222
↓ 1 callersFunctiongene_token
(tokenizer, pixel_values, question, generation_config, history=None, return_history=False, num_pat
infer/inference_internvl.py:94
↓ 1 callersFunctiongetActivationList
(lists)
train/train_minicpm.py:190
↓ 1 callersFunctiongetActivationList
(lists)
train/train_internvl.py:189
↓ 1 callersFunctiongetActivationList
(lists)
train/train_qwenvl.py:186
↓ 1 callersFunctiongetTwoActivationList
(list0, list1)
train/train_minicpm.py:196
↓ 1 callersFunctiongetTwoActivationList
(list0, list1)
train/train_internvl.py:195
↓ 1 callersFunctiongetTwoActivationList
(list0, list1)
train/train_qwenvl.py:192
↓ 1 callersFunctionget_2d_sincos_pos_embed
image_size: image_size or (image_height, image_width) return: pos_embed: [image_height, image_width, embed_dim]
minicpm/resampler.py:32
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
minicpm/resampler.py:52
↓ 1 callersFunctionget_address_ip
()
core/data/dataloader.py:27
↓ 1 callersMethodget_audio_embedding
r""" Extract full audio embeddings with optional chunk-based attention. This method computes embeddings for all audio frames at once,
minicpm/modeling_minicpmo.py:469
↓ 1 callersMethodget_audio_embedding_streaming
r""" Extract audio embeddings in a streaming manner using cached key-value pairs. This method processes incoming audio features incre
minicpm/modeling_minicpmo.py:408
↓ 1 callersMethodget_audio_placeholder
(self, audio_lens, chunk_input, chunk_length)
minicpm/processing_minicpmo.py:105
↓ 1 callersMethodget_grid_placeholder
(self, grid)
minicpm/image_processing_minicpmv.py:209
↓ 1 callersMethodget_image_id_placeholder
(self, idx=0)
minicpm/image_processing_minicpmv.py:228
↓ 1 callersMethodget_index
(self, timeout=None)
core/data/dataloader.py:301
↓ 1 callersFunctionget_max_numbered_filename
(directory)
train/train_minicpm.py:203
↓ 1 callersFunctionget_max_numbered_filename
(directory)
train/train_internvl.py:202
↓ 1 callersFunctionget_max_numbered_filename
(directory)
train/train_qwenvl.py:199
↓ 1 callersFunctionget_proj
(proj_path)
infer/inference_internvl.py:74
↓ 1 callersFunctionget_proj
(proj_path)
infer/inference_minicpm.py:77
↓ 1 callersFunctionget_proj
(proj_path)
infer/inference_qwenvl.py:77
↓ 1 callersMethodget_refine_size
(self, original_size, grid, scale_resolution, patch_size, allow_upscale=False)
minicpm/image_processing_minicpmv.py:157
↓ 1 callersFunctionget_sigmas
(timesteps, noise_scheduler_copy,device,n_dim=4, dtype=torch.float32)
lightcontrol/train_lightcontrol.py:412
← previousnext →101–200 of 612, ranked by callers