MCPcopy Create free account

hub / github.com/bytedance/Shot2Story / functions

Functions1,483 in github.com/bytedance/Shot2Story

Methodset_output_embeddings
(self, new_embeddings)
code/lavis/models/blip2_models/modeling_llama.py:635
Methodset_output_embeddings
(self, new_embeddings)
code/lavis/models/blip2_models/modeling_t5.py:1718
Methodset_output_embeddings
(self, new_embeddings)
code/lavis/models/blip2_models/modeling_opt.py:921
Methodset_processors
(self, vis_processor, text_processor)
code/lavis/datasets/datasets/base_dataset.py:40
Functionsetup_seeds
(config)
code/demo_video.py:39
Functionsetup_task
(cfg)
code/lavis/tasks/__init__.py:23
Methodsetup_task
(cls, cfg)
code/lavis/tasks/retrieval.py:27
Methodsetup_task
(cls, cfg)
code/lavis/tasks/captioning_custom.py:33
Methodsetup_task
(cls, cfg)
code/lavis/tasks/video_text_pretrain.py:129
Methodsetup_task
(cls, cfg)
code/lavis/tasks/dialogue.py:33
Methodsetup_task
(cls, cfg)
code/lavis/tasks/vqa_reading_comprehension.py:39
Methodsetup_task
(cls, **kwargs)
code/lavis/tasks/base_task.py:26
Methodsetup_task
(cls, cfg)
code/lavis/tasks/captioning.py:29
Methodshape
projection
code/lavis/models/blip2_models/modeling_t5.py:508
Functionsharpness_func
The differences the this result and PIL are all on the 4 boundaries, the center areas are same
code/lavis/processors/randaugment.py:138
Functionshear_x_func
(img, factor, fill=(0, 0, 0))
code/lavis/processors/randaugment.py:159
Functionshear_y_func
(img, factor, fill=(0, 0, 0))
code/lavis/processors/randaugment.py:200
MethodshowQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
code/lavis/common/vqa_tools/vqa.py:159
Methodshow_n_params
(self, return_str=True)
code/lavis/models/base_model.py:108
Functionsolarize_func
same output as PIL.ImageOps.posterize
code/lavis/processors/randaugment.py:87
Functionsplit_video
(input)
data/scripts/process_videos.py:40
Methodstep
(self, cur_epoch, cur_step)
code/lavis/common/optims.py:77
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
code/lavis/common/logger.py:37
Methodtest_blip2_flant5xl
(self)
code/tests/models/test_blip2.py:111
Methodtest_blip2_flant5xxl
(self)
code/tests/models/test_blip2.py:131
Methodtest_blip2_opt2p7b
(self)
code/tests/models/test_blip2.py:25
Methodtest_blip2_opt2p7b_coco
(self)
code/tests/models/test_blip2.py:45
Methodtest_blip2_opt6p7b
(self)
code/tests/models/test_blip2.py:68
Methodtest_blip2_opt6p7b_coco
(self)
code/tests/models/test_blip2.py:88
Methodtest_caption
(self)
code/tests/models/test_pnp_vqa.py:76
Methodtest_caption
(self)
code/tests/models/test_blip.py:27
Methodtest_caption_forward
(self)
code/tests/models/test_blip.py:69
Methodtest_caption_large
(self)
code/tests/models/test_blip.py:48
Methodtest_feature_extractor
(self)
code/tests/models/test_blip.py:213
Methodtest_itm
(self)
code/tests/models/test_pnp_vqa.py:57
Methodtest_itm
(self)
code/tests/models/test_blip.py:263
Methodtest_pretrain
(self)
code/tests/models/test_albef.py:122
Methodtest_pretrain
(self)
code/tests/models/test_blip.py:179
Methodtest_qa
(self)
code/tests/models/test_pnp_vqa.py:98
Methodtest_retrieval
(self)
code/tests/models/test_albef.py:81
Methodtest_retrieval
(self)
code/tests/models/test_blip.py:138
Methodtest_splits
(self)
code/lavis/runners/runner_base.py:318
Methodtest_vqa
(self)
code/tests/models/test_albef.py:27
Methodtest_vqa
(self)
code/tests/models/test_pnp_vqa.py:27
Methodtest_vqa
(self)
code/tests/models/test_blip.py:114
Methodtest_vqa_forward
(self)
code/tests/models/test_albef.py:45
Methodto_dict
(self, sample)
code/lavis/datasets/datasets/laion_dataset.py:26
Functionto_google_drive_download_url
Utility function to transform a view URL of google drive to a download URL for google drive Example input: https://drive.google.c
code/lavis/common/utils.py:93
Methodto_gradio_chatbot
(self)
code/lavis/conversation/conversation.py:81
Functionto_image_text_pair
(sample)
code/lavis/datasets/datasets/laion_dataset.py:36
Functionto_tensor
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor Args: clip (torch.t
code/lavis/processors/functional_video.py:76
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input st
code/lavis/models/clip_models/tokenizer.py:175
Functiontrace_model
(model, batch_size=256, device=torch.device("cpu"))
code/lavis/models/clip_models/model.py:873
Methodtrain_epoch
( self, epoch, model, data_loader, optimizer, lr_scheduler,
code/lavis/tasks/base_task.py:103
Methodtrain_iters
( self, epoch, start_iters, iters_per_inner_epoch, model, data
code/lavis/tasks/base_task.py:128
Methodtrain_loader
(self)
code/lavis/runners/runner_base.py:359
Methodtrain_splits
(self)
code/lavis/runners/runner_base.py:324
Functiontranslate_x_func
same output as PIL.Image.transform
code/lavis/processors/randaugment.py:168
Functiontranslate_y_func
same output as PIL.Image.transform
code/lavis/processors/randaugment.py:180
Methodunregister
r"""Remove an item from registry with key 'name' Args: name: Key which needs to be removed. Usage:: from mmf
code/lavis/common/registry.py:315
Methodunshape
reshape
code/lavis/models/blip2_models/modeling_t5.py:514
Functionupload_img
(gr_img, text_input, chat_state)
code/demo_video.py:98
Functionupload_vid
(gr_vid, text_input, chat_state, temperature=0.1, input_splits="")
code/demo_video.py:106
Methodupload_video
(self, video, conv, img_list, collate_way='none', step=1, shot_list=[])
code/lavis/conversation/conversation.py:658
Methodupload_video_single_frame
(self, video, conv, img_list)
code/lavis/conversation/conversation.py:620
Methoduse_dist_eval_sampler
(self)
code/lavis/runners/runner_base.py:347
Methoduse_distributed
(self)
code/lavis/runners/runner_base.py:84
Methodvalid_splits
(self)
code/lavis/runners/runner_base.py:309
Methodvalid_step
(self, model, samples)
code/lavis/tasks/captioning_custom.py:51
Methodvalid_step
(self, model, samples)
code/lavis/tasks/multimodal_classification.py:24
Methodvalid_step
(self, model, samples)
code/lavis/tasks/dialogue.py:51
Methodvalid_step
(self, model, samples)
code/lavis/tasks/vqa_reading_comprehension.py:61
Methodvalid_step
(self, model, samples)
code/lavis/tasks/vqa_reading_comprehension.py:158
Methodvalid_step
(self, model, samples)
code/lavis/tasks/vqa.py:97
Methodvalid_step
(self, model, samples)
code/lavis/tasks/vqa.py:171
Methodvalid_step
(self, model, samples)
code/lavis/tasks/vqa.py:235
Methodvalid_step
(self, model, samples)
code/lavis/tasks/captioning.py:47
Functionworker_init_fn
(_)
code/lavis/runners/runner_base.py:39
Methodwrap
(builder_cls)
code/lavis/common/registry.py:34
Functionwrapper
(*args, **kwargs)
code/lavis/common/dist_utils.py:109
Functionwrite_to_file
(filename, content)
data/scripts/process_videos.py:29
Functionytb_save
(id, save_fp)
data/scripts/download_videos.py:25
Methodzero_shot_predict
(self, image_path, categories)
code/lavis/models/clip_models/model.py:696
← previous1,401–1,483 of 1,483, ranked by callers