MCPcopy Create free account

hub / github.com/bytedance/Shot2Story / functions

Functions1,483 in github.com/bytedance/Shot2Story

Methodfrom_config
(cls, model_config)
code/lavis/models/pnp_vqa_models/pnp_vqa.py:321
Methodfrom_config
(cls, cfg)
code/lavis/models/gpt_models/gpt_dialogue.py:107
Methodfrom_config
(cls, cfg)
code/lavis/models/alpro_models/alpro_qa.py:114
Methodfrom_config
(cls, cfg)
code/lavis/models/alpro_models/alpro_retrieval.py:397
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/alpro_processors.py:146
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/alpro_processors.py:205
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/gpt_processors.py:111
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/gpt_processors.py:164
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/clip_processors.py:41
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/clip_processors.py:79
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:46
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:86
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:151
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:191
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:224
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:268
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:352
Methodfrom_config
(cls, cfg=None)
code/lavis/processors/blip_processors.py:410
Methodgenerate
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
Methodgenerate
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
Methodgenerate
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
Methodgenerate
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
Methodgenerate
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
Methodgenerate
(self, samples)
code/lavis/models/blip2_models/video_minigpt4.py:443
MethodgetImgIds
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
Methodget_attention_map
(self)
code/lavis/models/med.py:173
Methodget_attention_map
(self)
code/lavis/models/blip2_models/Qformer.py:158
Methodget_attention_mask
(self, seq)
code/lavis/processors/gpt_processors.py:134
Methodget_attn_gradients
(self)
code/lavis/models/med.py:167
Methodget_attn_gradients
(self)
code/lavis/models/blip2_models/Qformer.py:152
Methodget_bin
(frames)
code/transnetv2_pytorch.py:279
Methodget_classifier
(self)
code/lavis/models/eva_vit.py:317
Methodget_classifier
(self)
code/lavis/models/timesformer/vit.py:398
Functionget_concat_v
(im1, im2)
code/app/dataset_browser.py:32
Methodget_config
(self)
code/lavis/common/config.py:128
Methodget_context_emb
(self, conv, img_list)
code/lavis/conversation/conversation.py:770
Methodget_decoder
(self)
code/lavis/models/blip2_models/modeling_llama.py:641
Methodget_decoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1514
Methodget_decoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1727
Methodget_decoder
(self)
code/lavis/models/blip2_models/modeling_opt.py:832
Methodget_decoder
(self)
code/lavis/models/blip2_models/modeling_opt.py:927
Methodget_encoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1511
Methodget_encoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:1724
Methodget_encoder
(self)
code/lavis/models/blip2_models/modeling_t5.py:2008
Functionget_file_size
Given a file, get the size of file in MB
code/lavis/common/utils.py:419
Methodget_input_embeddings
(self)
code/lavis/models/med.py:740
Methodget_input_embeddings
(self)
code/lavis/models/blip_models/nlvr_encoder.py:700
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:452
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:626
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:805
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1015
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1503
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1710
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:2001
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:571
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:826
Methodget_input_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:912
Methodget_intermediate_layers
(self, x)
code/lavis/models/eva_vit.py:354
Functionget_latest_checkpoint
(folders: str)
code/lavis/datasets/hdfs_utils.py:223
Methodget_optimizer_params
(self, weight_decay, lr_scale=1)
code/lavis/models/blip2_models/blip2.py:106
Methodget_output_embeddings
(self)
code/lavis/models/med.py:1018
Methodget_output_embeddings
(self)
code/lavis/models/med.py:1144
Methodget_output_embeddings
(self)
code/lavis/models/blip2_models/Qformer.py:981
Methodget_output_embeddings
(self)
code/lavis/models/blip2_models/Qformer.py:1144
Methodget_output_embeddings
(self)
code/lavis/models/blip2_models/modeling_llama.py:632
Methodget_output_embeddings
(self)
code/lavis/models/blip2_models/modeling_t5.py:1721
Methodget_output_embeddings
(self)
code/lavis/models/blip2_models/modeling_opt.py:918
Functionget_padding_value
(padding, kernel_size, **kwargs)
code/lavis/models/timesformer/vit_utils.py:105
Methodget_samples_template
(self, num_shots, whole_asr)
code/lavis/datasets/datasets/video_caption_datasets.py:411
Methodglobal_avg
(self)
code/lavis/common/logger.py:61
Functiongradio_answer
(chatbot, chat_state, img_list, num_beams, temperature)
code/demo_video.py:134
Functiongradio_ask
(user_message, chatbot, chat_state)
code/demo_video.py:126
Functiongradio_reset
(chat_state, img_list)
code/demo_video.py:82
Functiongradio_reset_history
(chat_state, img_list)
code/demo_video.py:89
Functionhcopy
hdfs copy
code/lavis/datasets/hdfs_utils.py:271
Functionhcountline
count line in file
code/lavis/datasets/hdfs_utils.py:347
Functionhdelete
hdfs capable to check whether a file_path is exists
code/lavis/datasets/hdfs_utils.py:244
Functionhflip
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
Functionhglob
hdfs glob
code/lavis/datasets/hdfs_utils.py:286
Functionhisdir
hdfs capable to check whether a file_path is a dir
code/lavis/datasets/hdfs_utils.py:252
Functionhload_cv2
load image from hdfs using cv2
code/lavis/datasets/hdfs_utils.py:82
Functionhload_json
(filepath)
code/lavis/datasets/hdfs_utils.py:52
Functionhload_pil
load image from hdfs using PIL
code/lavis/datasets/hdfs_utils.py:67
Functionhload_torch
load model from hdfs
code/lavis/datasets/hdfs_utils.py:129
Functionhload_vocab
Loads a vocabulary file into a dictionary from hdfs.
code/lavis/datasets/hdfs_utils.py:100
Functionhmget
将整个hdfs 文件夹 get下来,但是不是简单的get,因为一些hdfs文件是压缩的,需要解压
code/lavis/datasets/hdfs_utils.py:325
Functionhmkdir
hdfs mkdir
code/lavis/datasets/hdfs_utils.py:262
Functionhmove
将src_path移动至res_path
code/lavis/datasets/hdfs_utils.py:315
Functionhsave_pkl
load pickle from hdfs
code/lavis/datasets/hdfs_utils.py:43
Functionhtext_list
(files, target_folder)
code/lavis/datasets/hdfs_utils.py:308
Functionidentity_func
(img)
code/lavis/processors/randaugment.py:15
Functioninference
(image, prompt, min_len, max_len, beam_size, len_penalty, repetition_penalty, top_p, decoding_method, modeltyp
code/projects/instructblip/run_demo.py:91
Methodinference_step
(self)
code/lavis/tasks/base_task.py:81
Methodinit_lr
(self)
code/lavis/runners/runner_base.py:297
Methoditm_rank
(self, image_embeds, image_atts, encoder_input_ids, match_head='itm')
code/lavis/models/blip_models/blip_image_text_matching.py:101
Functionlevel_to_args
(level)
code/lavis/processors/randaugment.py:224
Methodlist_datasets
(cls)
code/lavis/common/registry.py:276
Methodlist_models
(cls)
code/lavis/common/registry.py:260
Functionlist_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
Functionlist_pretrained_model_tags
return all pretrain tags for the specified model architecture
code/lavis/models/clip_models/pretrained.py:112
← previousnext →1,201–1,300 of 1,483, ranked by callers