Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KuofengGao/Verbose_Images
/ functions
Functions
3,633 in github.com/KuofengGao/Verbose_Images
⨍
Functions
3,633
◇
Types & classes
927
↳
Endpoints
4
Method
forward
(self, sequence_output)
lavis/models/blip2_models/Qformer.py:649
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
(self, hidden_states)
lavis/models/blip2_models/modeling_llama.py:83
Method
forward
(self, x, seq_len=None)
lavis/models/blip2_models/modeling_llama.py:109
Method
forward
(self, x)
lavis/models/blip2_models/modeling_llama.py:156
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
lavis/models/blip2_models/modeling_llama.py:185
Method
forward
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
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
lavis/models/blip2_models/modeling_llama.py:483
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
lavis/models/blip2_models/modeling_llama.py:641
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
lavis/models/blip2_models/modeling_llama.py:803
Method
forward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:263
Method
forward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:306
Method
forward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:323
Method
forward
(self, hidden_states)
lavis/models/blip2_models/modeling_t5.py:343
Method
forward
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
Method
forward
( self, hidden_states, attention_mask=None, position_bias=None, layer_
lavis/models/blip2_models/modeling_t5.py:632
Method
forward
( self, hidden_states, key_value_states, attention_mask=None, position
lavis/models/blip2_models/modeling_t5.py:666
Method
forward
( self, hidden_states, attention_mask=None, position_bias=None, encode
lavis/models/blip2_models/modeling_t5.py:712
Method
forward
( self, input_ids=None, attention_mask=None, encoder_hidden_states=None,
lavis/models/blip2_models/modeling_t5.py:1021
Method
forward
r""" Returns: Example: ```python >>> from transformers import T5Tokenizer, T5Model >>> tokenizer = T5Tokeni
lavis/models/blip2_models/modeling_t5.py:1529
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
lavis/models/blip2_models/modeling_t5.py:1734
Method
forward
r""" Returns: Example: ```python >>> from transformers import T5Tokenizer, T5EncoderModel >>> tokenizer = T
lavis/models/blip2_models/modeling_t5.py:2023
Method
forward
(self, samples)
lavis/models/blip2_models/blip2_vicuna_instruct.py:147
Method
forward
`input_ids_shape` is expected to be [bsz x seqlen].
lavis/models/blip2_models/modeling_opt.py:120
Method
forward
Input shape: Batch x Time x Channel
lavis/models/blip2_models/modeling_opt.py:174
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
(self, x: torch.Tensor)
lavis/models/blip2_models/blip2.py:196
Method
forward
(self, x)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:42
Method
forward
(self, samples)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:515
Method
forward
(self, samples, match_head="itm")
lavis/models/blip2_models/blip2_image_text_matching.py:53
Method
forward
(self, input_ids=None, attention_mask=None, **kwargs)
lavis/models/pnp_vqa_models/pnp_unifiedqav2_fid.py:29
Method
forward
( self, samples, past_key_values=None, position_ids=None, head_mask=No
lavis/models/gpt_models/gpt_dialogue.py:36
Method
forward
(self, samples)
lavis/models/alpro_models/alpro_retrieval.py:65
Method
forward
(self, embed_id)
lavis/models/beats/quantizer.py:106
Method
forward
(self, z)
lavis/models/beats/quantizer.py:157
Method
forward
(ctx, x, scale)
lavis/models/beats/modules.py:19
Method
forward
(self, x)
lavis/models/beats/modules.py:37
Method
forward
(self, x)
lavis/models/beats/modules.py:48
Method
forward
(self, x)
lavis/models/beats/modules.py:73
Method
forward
(self, x, padding_mask=None, layer=None)
lavis/models/beats/backbone.py:101
Method
forward
( self, x: torch.Tensor, self_attn_mask: torch.Tensor = None,
lavis/models/beats/backbone.py:214
Method
forward
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
Method
forward_dummy
Dummy forward function.
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:130
Method
forward_features
(self, x, register_blk=-1)
lavis/models/vit.py:526
Method
forward_features
(self, samples, **kwargs)
lavis/models/base_model.py:149
Function
forward_flex
(self, x)
lavis/common/annotator/midas/midas/vit.py:117
Method
forward_qa_generation
(self, samples)
lavis/models/img2prompt_models/img2prompt_vqa.py:312
Method
forward_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
Method
forward_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
Method
forward_test
Forward function for testing, ignore se_loss.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/enc_head.py:151
Method
forward_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
Method
forward_test
Forward function for testing, only ``pam_cam`` is used.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/da_head.py:160
Method
forward_text
(self, tokenized_text, **kwargs)
lavis/models/med.py:1404
Method
forward_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
Method
forward_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
Method
forward_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
Method
fourcc
str: "Four character code" of the video.
lavis/common/annotator/uniformer/mmcv/video/io.py:115
Method
frame_cnt
int: Total frames of the video.
lavis/common/annotator/uniformer/mmcv/video/io.py:110
Function
frames2video
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
Method
from_config
(cls, cfg)
lavis/models/beats_encoder.py:38
Method
from_config
(cls, cfg, from_pretrained=False)
lavis/models/vit.py:460
Method
from_config
(cls, cfg, from_pretrained=False)
lavis/models/med.py:1306
Method
from_config
(cls, cfg=None)
lavis/models/blip_models/blip_nlvr.py:133
Method
from_config
(cls, cfg=None)
lavis/models/blip_models/blip_vqa.py:357
Method
from_config
(cls, cfg=None)
lavis/models/blip_models/blip_classification.py:147
Method
from_config
(cls, cfg=None)
lavis/models/blip_models/blip_feature_extractor.py:190
Method
from_config
(cls, cfg=None)
lavis/models/blip_models/blip_retrieval.py:361
Method
from_config
(cls, cfg=None)
lavis/models/blip_models/blip_image_text_matching.py:132
Method
from_config
(cls, cfg=None)
lavis/models/blip_models/blip_pretrain.py:366
Method
from_config
(cls, cfg)
lavis/models/blip_models/blip_caption.py:207
Method
from_config
(cls, cfg=None)
lavis/models/albef_models/albef_vqa.py:349
Method
from_config
(cls, cfg=None)
lavis/models/albef_models/albef_classification.py:154
Method
from_config
(cls, cfg=None)
lavis/models/albef_models/albef_nlvr.py:227
Method
from_config
(cls, cfg=None)
lavis/models/albef_models/albef_pretrain.py:386
Method
from_config
(cls, cfg=None)
lavis/models/albef_models/albef_retrieval.py:310
Method
from_config
(cls, cfg=None)
lavis/models/albef_models/albef_feature_extractor.py:175
Method
from_config
(cls, model_config)
lavis/models/img2prompt_models/img2prompt_vqa.py:555
Method
from_config
(cls, cfg=None)
lavis/models/clip_models/model.py:686
Method
from_config
(cls, cfg)
lavis/models/blip2_models/blip2_t5_instruct.py:736
Method
from_config
(cls, cfg)
lavis/models/blip2_models/blip2_qformer.py:501
Method
from_config
(cls, cfg)
lavis/models/blip2_models/blip2_t5.py:352
Method
from_config
(cls, cfg)
lavis/models/blip2_models/blip2_opt.py:299
Method
from_config
(cls, cfg)
lavis/models/blip2_models/blip2_vicuna_instruct.py:696
Method
from_config
(cls, cfg)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2132
Method
from_config
(cls, cfg)
lavis/models/pnp_vqa_models/pnp_unifiedqav2_fid.py:59
Method
from_config
(cls, model_config)
lavis/models/pnp_vqa_models/pnp_vqa.py:321
Method
from_config
(cls, cfg)
lavis/models/gpt_models/gpt_dialogue.py:107
Method
from_config
(cls, cfg)
lavis/models/alpro_models/alpro_qa.py:114
Method
from_config
(cls, cfg)
lavis/models/alpro_models/alpro_retrieval.py:397
Method
from_config
(cls, cfg=None)
lavis/processors/alpro_processors.py:176
Method
from_config
(cls, cfg=None)
lavis/processors/alpro_processors.py:260
Method
from_config
(cls, cfg=None)
lavis/processors/gpt_processors.py:111
Method
from_config
(cls, cfg=None)
lavis/processors/gpt_processors.py:164
Method
from_config
(cls, cfg=None)
lavis/processors/ulip_processors.py:242
Method
from_config
(cls, cfg=None)
lavis/processors/clip_processors.py:41
Method
from_config
(cls, cfg=None)
lavis/processors/clip_processors.py:79
← previous
next →
2,901–3,000 of 3,633, ranked by callers