MCPcopy Create free account

hub / github.com/bytedance/Shot2Story / functions

Functions1,483 in github.com/bytedance/Shot2Story

Functiondownload_and_save_image
(ann, save_dir, timeout=None, retries=0)
code/lavis/datasets/download_scripts/download_sbu.py:44
Functiondownload_google_drive_url
Download a file from google drive Downloading an URL from google drive requires confirmation when the file of the size is too big (google
code/lavis/common/utils.py:108
Functiondownload_image
(row)
code/lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:134
Functiondownload_image
(row)
code/lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:134
Functiondownload_image_from_url_test
(url)
code/lavis/datasets/download_scripts/download_nocaps.py:70
Functiondownload_image_from_url_val
(url)
code/lavis/datasets/download_scripts/download_nocaps.py:63
Methoddummy_inputs
(self)
code/lavis/models/blip2_models/modeling_t5.py:843
Methodepoch
(self)
code/lavis/datasets/datasets/dataloader_utils.py:142
Functionequalize_func
same output as PIL.ImageOps.equalize PIL's implementation is different from cv2.equalize
code/lavis/processors/randaugment.py:52
Methodevaluate_only
Set to True to skip training.
code/lavis/runners/runner_base.py:333
Methodevaluation
(self, model, data_loader, **kwargs)
code/lavis/tasks/retrieval.py:32
Methodevaluation
(self, model, data_loader, cuda_enabled=True)
code/lavis/tasks/image_text_pretrain.py:17
Methodevaluation
(self, model, data_loader, cuda_enabled=True)
code/lavis/tasks/video_text_pretrain.py:151
Methodextra_repr
(self)
code/lavis/models/eva_vit.py:40
Methodextract_features
Extract features for multimodal or unimodal samples. Args: samples (dict): A dictionary of samples, containing the follo
code/lavis/models/blip_models/blip_feature_extractor.py:58
Methodextract_features
Extract features for multimodal or unimodal samples. Args: samples (dict): A dictionary of samples, containing the follo
code/lavis/models/albef_models/albef_feature_extractor.py:49
Methodextract_features
Extract features for multimodal or unimodal samples. Args: samples (dict): A dictionary of samples, containing the follow
code/lavis/models/blip2_models/blip2_qformer.py:370
Methodfeed_forward_chunk
(self, attention_output)
code/lavis/models/med.py:499
Methodfeed_forward_chunk
(self, attention_output)
code/lavis/models/blip_models/nlvr_encoder.py:483
Methodfeed_forward_chunk
(self, attention_output)
code/lavis/models/blip2_models/Qformer.py:476
Methodfeed_forward_chunk_query
(self, attention_output)
code/lavis/models/blip2_models/Qformer.py:481
Methodforward
(self, inputs)
code/transnetv2_pytorch.py:51
Methodforward
(self, inputs)
code/transnetv2_pytorch.py:117
Methodforward
(self, inputs)
code/transnetv2_pytorch.py:167
Methodforward
(self, inputs)
code/transnetv2_pytorch.py:215
Methodforward
(self, inputs)
code/transnetv2_pytorch.py:242
Methodforward
(self, inputs)
code/transnetv2_pytorch.py:300
Methodforward
(self, x, register_hook=False)
code/lavis/models/vit.py:88
Methodforward
(self, x, register_hook=False)
code/lavis/models/vit.py:155
Methodforward
(self, x, register_blk=-1)
code/lavis/models/vit.py:265
Methodforward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:47
Methodforward
(self, x)
code/lavis/models/clip_vit.py:73
Methodforward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:103
Methodforward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:110
Methodforward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:136
Methodforward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:149
Methodforward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:171
Methodforward
(ctx, x)
code/lavis/models/base_model.py:192
Methodforward
(self, x)
code/lavis/models/eva_vit.py:37
Methodforward
(self, x)
code/lavis/models/eva_vit.py:54
Methodforward
(self, x, rel_pos_bias=None)
code/lavis/models/eva_vit.py:118
Methodforward
(self, x, rel_pos_bias=None)
code/lavis/models/eva_vit.py:173
Methodforward
(self, x, **kwargs)
code/lavis/models/eva_vit.py:198
Methodforward
(self)
code/lavis/models/eva_vit.py:238
Methodforward
(self, x)
code/lavis/models/eva_vit.py:349
Methodforward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs
code/lavis/models/med.py:88
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/med.py:184
Methodforward
(self, hidden_states, input_tensor)
code/lavis/models/med.py:299
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/med.py:336
Methodforward
(self, hidden_states)
code/lavis/models/med.py:371
Methodforward
(self, hidden_states, input_tensor)
code/lavis/models/med.py:384
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/med.py:514
Methodforward
(self, hidden_states)
code/lavis/models/med.py:639
Methodforward
(self, hidden_states)
code/lavis/models/med.py:658
Methodforward
(self, hidden_states)
code/lavis/models/med.py:679
Methodforward
(self, sequence_output)
code/lavis/models/med.py:690
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
code/lavis/models/med.py:832
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
code/lavis/models/med.py:1024
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
code/lavis/models/med.py:1150
Methodforward
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip_models/blip_pretrain_video.py:116
Methodforward
r""" Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (
code/lavis/models/blip_models/blip_caption_video.py:100
Methodforward
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip_models/blip_vqa.py:54
Methodforward
( self, input_ids=None, position_ids=None, inputs_embeds=None, past_ke
code/lavis/models/blip_models/nlvr_encoder.py:58
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:148
Methodforward
(self, hidden_states, input_tensor)
code/lavis/models/blip_models/nlvr_encoder.py:273
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:329
Methodforward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:391
Methodforward
(self, hidden_states, input_tensor)
code/lavis/models/blip_models/nlvr_encoder.py:404
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:428
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:498
Methodforward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:599
Methodforward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:618
Methodforward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:639
Methodforward
(self, sequence_output)
code/lavis/models/blip_models/nlvr_encoder.py:650
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
code/lavis/models/blip_models/nlvr_encoder.py:792
Methodforward
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip_models/blip_retrieval.py:116
Methodforward
(self, samples, match_head="itm")
code/lavis/models/blip_models/blip_image_text_matching.py:58
Methodforward
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip_models/blip_pretrain.py:114
Methodforward
r""" Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (
code/lavis/models/blip_models/blip_caption.py:90
Methodforward
(self, x)
code/lavis/models/timesformer/vit_utils.py:188
Methodforward
(self, x)
code/lavis/models/timesformer/vit.py:77
Methodforward
(self, x)
code/lavis/models/timesformer/vit.py:108
Methodforward
(self, x, B, T, W)
code/lavis/models/timesformer/vit.py:202
Methodforward
(self, x)
code/lavis/models/timesformer/vit.py:279
Methodforward
(self, x)
code/lavis/models/timesformer/vit.py:464
Methodforward
(self, x)
code/lavis/models/timesformer/vit.py:523
Methodforward
(self, x)
code/lavis/models/timesformer/vit.py:592
Methodforward
(self, x)
code/lavis/models/timesformer/features.py:221
Methodforward
(self, x)
code/lavis/models/timesformer/features.py:247
Methodforward
(self, x)
code/lavis/models/timesformer/features.py:304
Methodforward
(self, input: torch.Tensor)
code/lavis/models/timesformer/linear.py:16
Methodforward
(self, x)
code/lavis/models/timesformer/conv2d_same.py:97
Methodforward
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/albef_models/albef_vqa.py:83
Methodforward
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/albef_models/albef_pretrain.py:105
Methodforward
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/albef_models/albef_retrieval.py:107
Methodforward
(self, image_features, text_features, logit_scale)
code/lavis/models/clip_models/loss.py:100
Methodforward
(self, img)
code/lavis/models/clip_models/transform.py:40
Methodforward
(self, x)
code/lavis/models/clip_models/timm_model.py:124
Methodforward
(self, x)
code/lavis/models/clip_models/timm_model.py:161
Methodforward
(self, x)
code/lavis/models/clip_models/timm_model.py:227
← previousnext →1,001–1,100 of 1,483, ranked by callers