Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/Shot2Story
/ functions
Functions
1,483 in github.com/bytedance/Shot2Story
⨍
Functions
1,483
◇
Types & classes
348
↳
Endpoints
10
Function
download_and_save_image
(ann, save_dir, timeout=None, retries=0)
code/lavis/datasets/download_scripts/download_sbu.py:44
Function
download_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
Function
download_image
(row)
code/lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:134
Function
download_image
(row)
code/lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:134
Function
download_image_from_url_test
(url)
code/lavis/datasets/download_scripts/download_nocaps.py:70
Function
download_image_from_url_val
(url)
code/lavis/datasets/download_scripts/download_nocaps.py:63
Method
dummy_inputs
(self)
code/lavis/models/blip2_models/modeling_t5.py:843
Method
epoch
(self)
code/lavis/datasets/datasets/dataloader_utils.py:142
Function
equalize_func
same output as PIL.ImageOps.equalize PIL's implementation is different from cv2.equalize
code/lavis/processors/randaugment.py:52
Method
evaluate_only
Set to True to skip training.
code/lavis/runners/runner_base.py:333
Method
evaluation
(self, model, data_loader, **kwargs)
code/lavis/tasks/retrieval.py:32
Method
evaluation
(self, model, data_loader, cuda_enabled=True)
code/lavis/tasks/image_text_pretrain.py:17
Method
evaluation
(self, model, data_loader, cuda_enabled=True)
code/lavis/tasks/video_text_pretrain.py:151
Method
extra_repr
(self)
code/lavis/models/eva_vit.py:40
Method
extract_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
Method
extract_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
Method
extract_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
Method
feed_forward_chunk
(self, attention_output)
code/lavis/models/med.py:499
Method
feed_forward_chunk
(self, attention_output)
code/lavis/models/blip_models/nlvr_encoder.py:483
Method
feed_forward_chunk
(self, attention_output)
code/lavis/models/blip2_models/Qformer.py:476
Method
feed_forward_chunk_query
(self, attention_output)
code/lavis/models/blip2_models/Qformer.py:481
Method
forward
(self, inputs)
code/transnetv2_pytorch.py:51
Method
forward
(self, inputs)
code/transnetv2_pytorch.py:117
Method
forward
(self, inputs)
code/transnetv2_pytorch.py:167
Method
forward
(self, inputs)
code/transnetv2_pytorch.py:215
Method
forward
(self, inputs)
code/transnetv2_pytorch.py:242
Method
forward
(self, inputs)
code/transnetv2_pytorch.py:300
Method
forward
(self, x, register_hook=False)
code/lavis/models/vit.py:88
Method
forward
(self, x, register_hook=False)
code/lavis/models/vit.py:155
Method
forward
(self, x, register_blk=-1)
code/lavis/models/vit.py:265
Method
forward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:47
Method
forward
(self, x)
code/lavis/models/clip_vit.py:73
Method
forward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:103
Method
forward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:110
Method
forward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:136
Method
forward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:149
Method
forward
(self, x: torch.Tensor)
code/lavis/models/clip_vit.py:171
Method
forward
(ctx, x)
code/lavis/models/base_model.py:192
Method
forward
(self, x)
code/lavis/models/eva_vit.py:37
Method
forward
(self, x)
code/lavis/models/eva_vit.py:54
Method
forward
(self, x, rel_pos_bias=None)
code/lavis/models/eva_vit.py:118
Method
forward
(self, x, rel_pos_bias=None)
code/lavis/models/eva_vit.py:173
Method
forward
(self, x, **kwargs)
code/lavis/models/eva_vit.py:198
Method
forward
(self)
code/lavis/models/eva_vit.py:238
Method
forward
(self, x)
code/lavis/models/eva_vit.py:349
Method
forward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs
code/lavis/models/med.py:88
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/med.py:184
Method
forward
(self, hidden_states, input_tensor)
code/lavis/models/med.py:299
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/med.py:336
Method
forward
(self, hidden_states)
code/lavis/models/med.py:371
Method
forward
(self, hidden_states, input_tensor)
code/lavis/models/med.py:384
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/med.py:514
Method
forward
(self, hidden_states)
code/lavis/models/med.py:639
Method
forward
(self, hidden_states)
code/lavis/models/med.py:658
Method
forward
(self, hidden_states)
code/lavis/models/med.py:679
Method
forward
(self, sequence_output)
code/lavis/models/med.py:690
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
code/lavis/models/med.py:832
Method
forward
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
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
code/lavis/models/med.py:1150
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
( self, input_ids=None, position_ids=None, inputs_embeds=None, past_ke
code/lavis/models/blip_models/nlvr_encoder.py:58
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:148
Method
forward
(self, hidden_states, input_tensor)
code/lavis/models/blip_models/nlvr_encoder.py:273
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:329
Method
forward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:391
Method
forward
(self, hidden_states, input_tensor)
code/lavis/models/blip_models/nlvr_encoder.py:404
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:428
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
code/lavis/models/blip_models/nlvr_encoder.py:498
Method
forward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:599
Method
forward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:618
Method
forward
(self, hidden_states)
code/lavis/models/blip_models/nlvr_encoder.py:639
Method
forward
(self, sequence_output)
code/lavis/models/blip_models/nlvr_encoder.py:650
Method
forward
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
Method
forward
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
Method
forward
(self, samples, match_head="itm")
code/lavis/models/blip_models/blip_image_text_matching.py:58
Method
forward
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
Method
forward
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
Method
forward
(self, x)
code/lavis/models/timesformer/vit_utils.py:188
Method
forward
(self, x)
code/lavis/models/timesformer/vit.py:77
Method
forward
(self, x)
code/lavis/models/timesformer/vit.py:108
Method
forward
(self, x, B, T, W)
code/lavis/models/timesformer/vit.py:202
Method
forward
(self, x)
code/lavis/models/timesformer/vit.py:279
Method
forward
(self, x)
code/lavis/models/timesformer/vit.py:464
Method
forward
(self, x)
code/lavis/models/timesformer/vit.py:523
Method
forward
(self, x)
code/lavis/models/timesformer/vit.py:592
Method
forward
(self, x)
code/lavis/models/timesformer/features.py:221
Method
forward
(self, x)
code/lavis/models/timesformer/features.py:247
Method
forward
(self, x)
code/lavis/models/timesformer/features.py:304
Method
forward
(self, input: torch.Tensor)
code/lavis/models/timesformer/linear.py:16
Method
forward
(self, x)
code/lavis/models/timesformer/conv2d_same.py:97
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
(self, image_features, text_features, logit_scale)
code/lavis/models/clip_models/loss.py:100
Method
forward
(self, img)
code/lavis/models/clip_models/transform.py:40
Method
forward
(self, x)
code/lavis/models/clip_models/timm_model.py:124
Method
forward
(self, x)
code/lavis/models/clip_models/timm_model.py:161
Method
forward
(self, x)
code/lavis/models/clip_models/timm_model.py:227
← previous
next →
1,001–1,100 of 1,483, ranked by callers