MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

Methodforward
(self, sequence_output)
lavis/models/blip2_models/Qformer.py:649
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
lavis/models/blip2_models/Qformer.py:804
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
lavis/models/blip2_models/Qformer.py:987
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
lavis/models/blip2_models/Qformer.py:1150
Methodforward
(self, hidden_states)
lavis/models/blip2_models/modeling_llama.py:83
Methodforward
(self, x, seq_len=None)
lavis/models/blip2_models/modeling_llama.py:109
Methodforward
(self, x)
lavis/models/blip2_models/modeling_llama.py:156
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
lavis/models/blip2_models/modeling_llama.py:185
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
lavis/models/blip2_models/modeling_llama.py:264
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
lavis/models/blip2_models/modeling_llama.py:483
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
lavis/models/blip2_models/modeling_llama.py:641
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
lavis/models/blip2_models/modeling_llama.py:803
Methodforward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:263
Methodforward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:306
Methodforward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:323
Methodforward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:343
Methodforward
Self-attention (if key_value_states is None) or attention over source sentence (provided by key_value_states).
lavis/models/blip2_models/modeling_t5.py:474
Methodforward
( self, hidden_states, attention_mask=None, position_bias=None, layer_
lavis/models/blip2_models/modeling_t5.py:632
Methodforward
( self, hidden_states, key_value_states, attention_mask=None, position
lavis/models/blip2_models/modeling_t5.py:666
Methodforward
( self, hidden_states, attention_mask=None, position_bias=None, encode
lavis/models/blip2_models/modeling_t5.py:712
Methodforward
( self, input_ids=None, attention_mask=None, encoder_hidden_states=None,
lavis/models/blip2_models/modeling_t5.py:1021
Methodforward
r""" Returns: Example: ```python >>> from transformers import T5Tokenizer, T5Model >>> tokenizer = T5Tokeni
lavis/models/blip2_models/modeling_t5.py:1529
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
lavis/models/blip2_models/modeling_t5.py:1734
Methodforward
r""" Returns: Example: ```python >>> from transformers import T5Tokenizer, T5EncoderModel >>> tokenizer = T
lavis/models/blip2_models/modeling_t5.py:2023
Methodforward
(self, samples)
lavis/models/blip2_models/blip2_vicuna_instruct.py:147
Methodforward
`input_ids_shape` is expected to be [bsz x seqlen].
lavis/models/blip2_models/modeling_opt.py:120
Methodforward
Input shape: Batch x Time x Channel
lavis/models/blip2_models/modeling_opt.py:174
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
lavis/models/blip2_models/modeling_opt.py:327
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
lavis/models/blip2_models/modeling_opt.py:604
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
lavis/models/blip2_models/modeling_opt.py:933
Methodforward
(self, x: torch.Tensor)
lavis/models/blip2_models/blip2.py:196
Methodforward
(self, x)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:42
Methodforward
(self, samples)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:515
Methodforward
(self, samples, match_head="itm")
lavis/models/blip2_models/blip2_image_text_matching.py:53
Methodforward
(self, input_ids=None, attention_mask=None, **kwargs)
lavis/models/pnp_vqa_models/pnp_unifiedqav2_fid.py:29
Methodforward
( self, samples, past_key_values=None, position_ids=None, head_mask=No
lavis/models/gpt_models/gpt_dialogue.py:36
Methodforward
(self, samples)
lavis/models/alpro_models/alpro_retrieval.py:65
Methodforward
(self, embed_id)
lavis/models/beats/quantizer.py:106
Methodforward
(self, z)
lavis/models/beats/quantizer.py:157
Methodforward
(ctx, x, scale)
lavis/models/beats/modules.py:19
Methodforward
(self, x)
lavis/models/beats/modules.py:37
Methodforward
(self, x)
lavis/models/beats/modules.py:48
Methodforward
(self, x)
lavis/models/beats/modules.py:73
Methodforward
(self, x, padding_mask=None, layer=None)
lavis/models/beats/backbone.py:101
Methodforward
( self, x: torch.Tensor, self_attn_mask: torch.Tensor = None,
lavis/models/beats/backbone.py:214
Methodforward
Input shape: Time x Batch x Channel Args: key_padding_mask (ByteTensor, optional): mask to exclude keys that are
lavis/models/beats/backbone.py:432
Methodforward_dummy
Dummy forward function.
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:130
Methodforward_features
(self, x, register_blk=-1)
lavis/models/vit.py:526
Methodforward_features
(self, samples, **kwargs)
lavis/models/base_model.py:149
Functionforward_flex
(self, x)
lavis/common/annotator/midas/midas/vit.py:117
Methodforward_qa_generation
(self, samples)
lavis/models/img2prompt_models/img2prompt_vqa.py:312
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
lavis/common/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:190
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:203
Methodforward_test
Forward function for testing, ignore se_loss.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/enc_head.py:151
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
lavis/common/annotator/uniformer/mmseg/models/decode_heads/cascade_decode_head.py:41
Methodforward_test
Forward function for testing, only ``pam_cam`` is used.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/da_head.py:160
Methodforward_text
(self, tokenized_text, **kwargs)
lavis/models/med.py:1404
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
lavis/common/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:170
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:165
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
lavis/common/annotator/uniformer/mmseg/models/decode_heads/cascade_decode_head.py:18
Methodfourcc
str: "Four character code" of the video.
lavis/common/annotator/uniformer/mmcv/video/io.py:115
Methodframe_cnt
int: Total frames of the video.
lavis/common/annotator/uniformer/mmcv/video/io.py:110
Functionframes2video
Read the frame images from a directory and join them as a video. Args: frame_dir (str): The directory containing video frames. vi
lavis/common/annotator/uniformer/mmcv/video/io.py:276
Methodfrom_config
(cls, cfg)
lavis/models/beats_encoder.py:38
Methodfrom_config
(cls, cfg, from_pretrained=False)
lavis/models/vit.py:460
Methodfrom_config
(cls, cfg, from_pretrained=False)
lavis/models/med.py:1306
Methodfrom_config
(cls, cfg=None)
lavis/models/blip_models/blip_nlvr.py:133
Methodfrom_config
(cls, cfg=None)
lavis/models/blip_models/blip_vqa.py:357
Methodfrom_config
(cls, cfg=None)
lavis/models/blip_models/blip_classification.py:147
Methodfrom_config
(cls, cfg=None)
lavis/models/blip_models/blip_feature_extractor.py:190
Methodfrom_config
(cls, cfg=None)
lavis/models/blip_models/blip_retrieval.py:361
Methodfrom_config
(cls, cfg=None)
lavis/models/blip_models/blip_image_text_matching.py:132
Methodfrom_config
(cls, cfg=None)
lavis/models/blip_models/blip_pretrain.py:366
Methodfrom_config
(cls, cfg)
lavis/models/blip_models/blip_caption.py:207
Methodfrom_config
(cls, cfg=None)
lavis/models/albef_models/albef_vqa.py:349
Methodfrom_config
(cls, cfg=None)
lavis/models/albef_models/albef_classification.py:154
Methodfrom_config
(cls, cfg=None)
lavis/models/albef_models/albef_nlvr.py:227
Methodfrom_config
(cls, cfg=None)
lavis/models/albef_models/albef_pretrain.py:386
Methodfrom_config
(cls, cfg=None)
lavis/models/albef_models/albef_retrieval.py:310
Methodfrom_config
(cls, cfg=None)
lavis/models/albef_models/albef_feature_extractor.py:175
Methodfrom_config
(cls, model_config)
lavis/models/img2prompt_models/img2prompt_vqa.py:555
Methodfrom_config
(cls, cfg=None)
lavis/models/clip_models/model.py:686
Methodfrom_config
(cls, cfg)
lavis/models/blip2_models/blip2_t5_instruct.py:736
Methodfrom_config
(cls, cfg)
lavis/models/blip2_models/blip2_qformer.py:501
Methodfrom_config
(cls, cfg)
lavis/models/blip2_models/blip2_t5.py:352
Methodfrom_config
(cls, cfg)
lavis/models/blip2_models/blip2_opt.py:299
Methodfrom_config
(cls, cfg)
lavis/models/blip2_models/blip2_vicuna_instruct.py:696
Methodfrom_config
(cls, cfg)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2132
Methodfrom_config
(cls, cfg)
lavis/models/pnp_vqa_models/pnp_unifiedqav2_fid.py:59
Methodfrom_config
(cls, model_config)
lavis/models/pnp_vqa_models/pnp_vqa.py:321
Methodfrom_config
(cls, cfg)
lavis/models/gpt_models/gpt_dialogue.py:107
Methodfrom_config
(cls, cfg)
lavis/models/alpro_models/alpro_qa.py:114
Methodfrom_config
(cls, cfg)
lavis/models/alpro_models/alpro_retrieval.py:397
Methodfrom_config
(cls, cfg=None)
lavis/processors/alpro_processors.py:176
Methodfrom_config
(cls, cfg=None)
lavis/processors/alpro_processors.py:260
Methodfrom_config
(cls, cfg=None)
lavis/processors/gpt_processors.py:111
Methodfrom_config
(cls, cfg=None)
lavis/processors/gpt_processors.py:164
Methodfrom_config
(cls, cfg=None)
lavis/processors/ulip_processors.py:242
Methodfrom_config
(cls, cfg=None)
lavis/processors/clip_processors.py:41
Methodfrom_config
(cls, cfg=None)
lavis/processors/clip_processors.py:79
← previousnext →2,901–3,000 of 3,633, ranked by callers