MCPcopy Create free account

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

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

Method_train_dataloader
(self, preprocess=None, process_group=None, group_rank=None)
utils/datamodule_internvl.py:135
Methodadd_data_specific_args
(parent_args)
utils/datamodule_lightcontrol.py:25
Methodadd_data_specific_args
(parent_args)
utils/datamodule_minicpm.py:26
Methodadd_data_specific_args
(parent_args)
utils/datamodule_internvl.py:24
Functionanswer_challenge_proxy
(connection, authkey)
core/data/dataloader.py:283
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
lightcontrol/lightcontrol_flux.py:288
Methodaudio_end_id
(self)
minicpm/tokenization_minicpmo_fast.py:85
Methodaudio_start_id
(self)
minicpm/tokenization_minicpmo_fast.py:81
Methodbatch_chat
(self, tokenizer, pixel_values, questions, generation_config, num_patches_list=None, histor
model_internvl/internvl/modeling_internvl_chat.py:208
Methodbos_id
(self)
minicpm/tokenization_minicpmo_fast.py:49
Methodcast_tensor
(v)
minicpm/image_processing_minicpmv.py:90
Methodchat
Unified chat function Args: image: use for batch_size=1 vqa, It is not recommended to continue to use this parameter
minicpm/modeling_minicpmo.py:828
Methodchat
(self, tokenizer, pixel_values, question, generation_config, history=None, return_history=False,
model_internvl/internvl/modeling_internvl_chat.py:257
Methodcheck_uncompleted_token
(ids)
minicpm/modeling_minicpmo.py:1233
Functioncollate_fn
(examples)
utils/datamodule_lightcontrol.py:365
Functioncollate_fn
(examples)
utils/datamodule_qwenvl.py:334
Functioncollate_fn
(examples)
utils/datamodule_minicpm.py:339
Functioncollate_fn
(examples)
utils/datamodule_internvl.py:328
Methodconsumer
()
model_internvl/internvl/modeling_internlm2.py:1281
Methodconverter
(value)
minicpm/image_processing_minicpmv.py:69
Methodcreate_custom_forward
(module, return_dict=None)
lightcontrol/lightcontrol_flux.py:477
Methodcreate_custom_forward
(module)
model_internvl/internvl/modeling_internlm2.py:936
Functioncrop_left_upper
(image, size)
utils/datamodule_lightcontrol.py:203
Functioncrop_left_upper
(image, size)
utils/datamodule_qwenvl.py:210
Functioncrop_left_upper
(image, size)
utils/datamodule_minicpm.py:213
Functioncrop_left_upper
(image, size)
utils/datamodule_internvl.py:207
Methodcustom_forward
(*inputs)
lightcontrol/lightcontrol_flux.py:478
Methodcustom_forward
(*inputs)
model_internvl/internvl/modeling_internlm2.py:937
Functiondeliver_challenge_proxy
(connection, authkey)
core/data/dataloader.py:279
Methoddict
(self)
model_internvl/internvl/conversation.py:306
Functiondist_info1
()
core/pipeline/train_and_infer.py:19
Methodenable_forward_chunking
Sets the attention processor to use [feed forward chunking](https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers).
lightcontrol/lightcontrol_flux.py:675
Methodenable_gradient_checkpointing
(self)
x2i_comfyui/model.py:123
Methodencode
(self, mllm, proj, image_paths=None, video_paths=None, audio_paths=None, text=None)
x2i_comfyui/nodes.py:135
Methodeos_id
(self)
minicpm/tokenization_minicpmo_fast.py:45
Methodescape
(text: str)
minicpm/tokenization_minicpmo_fast.py:105
Methodexposed_get_index
(self, timeout=None)
core/data/dataloader.py:319
Methodexposed_put_result
(self, item, timeout=None)
core/data/dataloader.py:312
Methodextra_repr
(self)
model_internvl/modeling_qwen2.py:83
Methodfetch
(self, possibly_batched_index)
core/data/dataloader.py:57
Methodfetch
(self)
core/data/dataloader.py:361
Methodfetch_list
(self, index_list, use_pool=True)
core/data/dataloader.py:335
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
lightcontrol/lightcontrol_flux.py:297
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
lightcontrol/lightcontrol_flux.py:333
Methodfn_recursive_feed_forward
( module: torch.nn.Module, chunk_size: int, dim: int )
lightcontrol/lightcontrol_flux.py:696
Methodforward
( self, pixel_values: torch.FloatTensor, patch_attention_mask: torch.BoolTensor,
minicpm/modeling_navit_siglip.py:320
Methodforward
Input shape: Batch x Time x Channel
minicpm/modeling_navit_siglip.py:388
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
minicpm/modeling_navit_siglip.py:452
Methodforward
(self, hidden_states: torch.Tensor)
minicpm/modeling_navit_siglip.py:637
Methodforward
Args: hidden_states (`torch.FloatTensor`): Input to the layer of shape `(batch, seq_len, embed_dim)`.
minicpm/modeling_navit_siglip.py:655
Methodforward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Optionally,
minicpm/modeling_navit_siglip.py:781
Methodforward
r""" Returns:
minicpm/modeling_navit_siglip.py:874
Methodforward
(self, data, **kwargs)
minicpm/modeling_minicpmo.py:621
Methodforward
r""" Args: hidden_states (`torch.FloatTensor` of shape `(batch_size, seq_len, embed_dim)`): Hidden states to be fe
minicpm/modeling_minicpmo.py:1908
Methodforward
r""" Forward pass of the Whisper encoder. Args: input_features (`torch.FloatTensor` of shape `(batch_size, feature_size,
minicpm/modeling_minicpmo.py:1981
Methodforward
(self, x: torch.Tensor, cond=None)
minicpm/modeling_minicpmo.py:2238
Methodforward
(self, x: torch.Tensor)
minicpm/modeling_minicpmo.py:2295
Methodforward
(self, x: torch.Tensor, conditioning=None)
minicpm/modeling_minicpmo.py:2337
Methodforward
(self, inp: torch.Tensor, mode: Literal["encode", "decode"] = "decode")
minicpm/modeling_minicpmo.py:2392
Methodforward
(self, audio_features)
minicpm/modeling_minicpmo.py:2584
Methodforward
audio: Tensor([num_channels, num_samples])
minicpm/processing_minicpmo.py:471
Methodforward
(self, x, tgt_sizes=None)
minicpm/resampler.py:146
Methodforward
( self, query: Tensor, key: Tensor, value: Tensor, key_padding_mask: O
minicpm/resampler.py:214
Methodforward
(self, x)
utils/proj.py:28
Methodforward
(self, x)
utils/proj.py:62
Methodforward
( self, hidden_states: torch.FloatTensor, temb: torch.FloatTensor, image_rotar
lightcontrol/lightcontrol_flux.py:82
Methodforward
( self, hidden_states: torch.FloatTensor, encoder_hidden_states: torch.FloatTensor,
lightcontrol/lightcontrol_flux.py:159
Methodforward
The [`FluxTransformer2DModel`] forward method. Args: hidden_states (`torch.FloatTensor` of shape `(batch size, channel,
lightcontrol/lightcontrol_flux.py:390
Methodforward
( self, sample: torch.FloatTensor, timestep: Union[torch.Tensor, float, int], )
lightcontrol/lightcontrol_flux.py:708
Methodforward
(self, x)
x2i_comfyui/model.py:24
Methodforward
(self, x)
x2i_comfyui/model.py:127
Methodforward
(self, hidden_states)
model_internvl/modeling_qwen2.py:76
Methodforward
(self, x, position_ids)
model_internvl/modeling_qwen2.py:152
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
model_internvl/modeling_qwen2.py:278
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
model_internvl/modeling_qwen2.py:366
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
model_internvl/modeling_qwen2.py:475
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
model_internvl/modeling_qwen2.py:586
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
model_internvl/modeling_qwen2.py:810
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
model_internvl/modeling_qwen2.py:1116
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
model_internvl/modeling_qwen2.py:1248
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
model_internvl/modeling_qwen2.py:1376
Methodforward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
model_internvl/modeling_qwen2.py:1455
Methodforward
(self, x)
model_internvl/proj.py:66
Methodforward
(self, x)
model_internvl/proj.py:95
Methodforward
(self, x)
model_internvl/proj.py:123
Methodforward
(self, x)
model_internvl/proj.py:143
Methodforward
(self, x)
model_internvl/proj.py:163
Methodforward
(self, x)
model_internvl/proj.py:183
Methodforward
(self, x)
model_internvl/proj.py:205
Methodforward
( self, pixel_values: torch.FloatTensor = None, input_ids: torch.LongTenso
model_internvl/internvl/modeling_internvl_chat.py:91
Methodforward
(self, hidden_states)
model_internvl/internvl/modeling_internlm2.py:138
Methodforward
(self, x, seq_len=None)
model_internvl/internvl/modeling_internlm2.py:172
Methodforward
(self, x)
model_internvl/internvl/modeling_internlm2.py:261
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
model_internvl/internvl/modeling_internlm2.py:341
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
model_internvl/internvl/modeling_internlm2.py:437
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
model_internvl/internvl/modeling_internlm2.py:621
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
model_internvl/internvl/modeling_internlm2.py:854
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
model_internvl/internvl/modeling_internlm2.py:1020
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
model_internvl/internvl/modeling_internlm2.py:1326
Methodforward
Implements the multihead softmax attention. Arguments --------- qkv: The tensor containing the query, key, and value. (B,
model_internvl/internvl/modeling_intern_vit.py:51
← previousnext →401–500 of 612, ranked by callers