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
Method
from_config
(cls, model_config)
code/lavis/models/pnp_vqa_models/pnp_vqa.py:321
Method
from_config
(cls, cfg)
code/lavis/models/gpt_models/gpt_dialogue.py:107
Method
from_config
(cls, cfg)
code/lavis/models/alpro_models/alpro_qa.py:114
Method
from_config
(cls, cfg)
code/lavis/models/alpro_models/alpro_retrieval.py:397
Method
from_config
(cls, cfg=None)
code/lavis/processors/alpro_processors.py:146
Method
from_config
(cls, cfg=None)
code/lavis/processors/alpro_processors.py:205
Method
from_config
(cls, cfg=None)
code/lavis/processors/gpt_processors.py:111
Method
from_config
(cls, cfg=None)
code/lavis/processors/gpt_processors.py:164
Method
from_config
(cls, cfg=None)
code/lavis/processors/clip_processors.py:41
Method
from_config
(cls, cfg=None)
code/lavis/processors/clip_processors.py:79
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:46
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:86
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:151
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:191
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:224
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:268
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:352
Method
from_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:410
Method
generate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip_models/blip_caption_video.py:146
Method
generate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip2_models/blip2_qformer.py:261
Method
generate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip2_models/blip2_video_cascade_t5.py:182
Method
generate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip2_models/blip2_video_opt.py:159
Method
generate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
code/lavis/models/blip2_models/blip2_video_cascade_opt.py:192
Method
generate
(self, samples)
code/lavis/models/blip2_models/video_minigpt4.py:443
Method
getImgIds
Get image ids that satisfy given filter conditions. default skips that filter :param quesIds (int array) : get image ids for gi
code/lavis/common/vqa_tools/vqa.py:114
Method
get_attention_map
(self)
code/lavis/models/med.py:173
Method
get_attention_map
(self)
code/lavis/models/blip2_models/Qformer.py:158
Method
get_attention_mask
(self, seq)
code/lavis/processors/gpt_processors.py:134
Method
get_attn_gradients
(self)
code/lavis/models/med.py:167
Method
get_attn_gradients
(self)
code/lavis/models/blip2_models/Qformer.py:152
Method
get_bin
(frames)
code/transnetv2_pytorch.py:279
Method
get_classifier
(self)
code/lavis/models/eva_vit.py:317
Method
get_classifier
(self)
code/lavis/models/timesformer/vit.py:398
Function
get_concat_v
(im1, im2)
code/app/dataset_browser.py:32
Method
get_config
(self)
code/lavis/common/config.py:128
Method
get_context_emb
(self, conv, img_list)
code/lavis/conversation/conversation.py:770
Method
get_decoder
(self)
code/lavis/models/blip2_models/modeling_llama.py:641
Method
get_decoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1514
Method
get_decoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1727
Method
get_decoder
(self)
code/lavis/models/blip2_models/modeling_opt.py:832
Method
get_decoder
(self)
code/lavis/models/blip2_models/modeling_opt.py:927
Method
get_encoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1511
Method
get_encoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1724
Method
get_encoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:2008
Function
get_file_size
Given a file, get the size of file in MB
code/lavis/common/utils.py:419
Method
get_input_embeddings
(self)
code/lavis/models/med.py:740
Method
get_input_embeddings
(self)
code/lavis/models/blip_models/nlvr_encoder.py:700
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:452
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:626
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:805
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1015
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1503
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1710
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:2001
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:571
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:826
Method
get_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:912
Method
get_intermediate_layers
(self, x)
code/lavis/models/eva_vit.py:354
Function
get_latest_checkpoint
(folders: str)
code/lavis/datasets/hdfs_utils.py:223
Method
get_optimizer_params
(self, weight_decay, lr_scale=1)
code/lavis/models/blip2_models/blip2.py:106
Method
get_output_embeddings
(self)
code/lavis/models/med.py:1018
Method
get_output_embeddings
(self)
code/lavis/models/med.py:1144
Method
get_output_embeddings
(self)
code/lavis/models/blip2_models/Qformer.py:981
Method
get_output_embeddings
(self)
code/lavis/models/blip2_models/Qformer.py:1144
Method
get_output_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:632
Method
get_output_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1721
Method
get_output_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:918
Function
get_padding_value
(padding, kernel_size, **kwargs)
code/lavis/models/timesformer/vit_utils.py:105
Method
get_samples_template
(self, num_shots, whole_asr)
code/lavis/datasets/datasets/video_caption_datasets.py:411
Method
global_avg
(self)
code/lavis/common/logger.py:61
Function
gradio_answer
(chatbot, chat_state, img_list, num_beams, temperature)
code/demo_video.py:134
Function
gradio_ask
(user_message, chatbot, chat_state)
code/demo_video.py:126
Function
gradio_reset
(chat_state, img_list)
code/demo_video.py:82
Function
gradio_reset_history
(chat_state, img_list)
code/demo_video.py:89
Function
hcopy
hdfs copy
code/lavis/datasets/hdfs_utils.py:271
Function
hcountline
count line in file
code/lavis/datasets/hdfs_utils.py:347
Function
hdelete
hdfs capable to check whether a file_path is exists
code/lavis/datasets/hdfs_utils.py:244
Function
hflip
Args: clip (torch.tensor): Video clip to be normalized. Size is (C, T, H, W) Returns: flipped clip (torch.tensor): Size is (C
code/lavis/processors/functional_video.py:112
Function
hglob
hdfs glob
code/lavis/datasets/hdfs_utils.py:286
Function
hisdir
hdfs capable to check whether a file_path is a dir
code/lavis/datasets/hdfs_utils.py:252
Function
hload_cv2
load image from hdfs using cv2
code/lavis/datasets/hdfs_utils.py:82
Function
hload_json
(filepath)
code/lavis/datasets/hdfs_utils.py:52
Function
hload_pil
load image from hdfs using PIL
code/lavis/datasets/hdfs_utils.py:67
Function
hload_torch
load model from hdfs
code/lavis/datasets/hdfs_utils.py:129
Function
hload_vocab
Loads a vocabulary file into a dictionary from hdfs.
code/lavis/datasets/hdfs_utils.py:100
Function
hmget
将整个hdfs 文件夹 get下来,但是不是简单的get,因为一些hdfs文件是压缩的,需要解压
code/lavis/datasets/hdfs_utils.py:325
Function
hmkdir
hdfs mkdir
code/lavis/datasets/hdfs_utils.py:262
Function
hmove
将src_path移动至res_path
code/lavis/datasets/hdfs_utils.py:315
Function
hsave_pkl
load pickle from hdfs
code/lavis/datasets/hdfs_utils.py:43
Function
htext_list
(files, target_folder)
code/lavis/datasets/hdfs_utils.py:308
Function
identity_func
(img)
code/lavis/processors/randaugment.py:15
Function
inference
(image, prompt, min_len, max_len, beam_size, len_penalty, repetition_penalty, top_p, decoding_method, modeltyp
code/projects/instructblip/run_demo.py:91
Method
inference_step
(self)
code/lavis/tasks/base_task.py:81
Method
init_lr
(self)
code/lavis/runners/runner_base.py:297
Method
itm_rank
(self, image_embeds, image_atts, encoder_input_ids, match_head='itm')
code/lavis/models/blip_models/blip_image_text_matching.py:101
Function
level_to_args
(level)
code/lavis/processors/randaugment.py:224
Method
list_datasets
(cls)
code/lavis/common/registry.py:276
Method
list_models
(cls)
code/lavis/common/registry.py:260
Function
list_pretrained
returns list of pretrained models Returns a tuple (model_name, pretrain_tag) by default or 'name:tag' if as_str == True
code/lavis/models/clip_models/pretrained.py:92
Function
list_pretrained_model_tags
return all pretrain tags for the specified model architecture
code/lavis/models/clip_models/pretrained.py:112
← previous
next →
1,201–1,300 of 1,483, ranked by callers