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
set_output_embeddings
(self, new_embeddings)
code/lavis/models/blip2_models/modeling_llama.py:635
Method
set_output_embeddings
(self, new_embeddings)
code/lavis/models/blip2_models/modeling_t5.py:1718
Method
set_output_embeddings
(self, new_embeddings)
code/lavis/models/blip2_models/modeling_opt.py:921
Method
set_processors
(self, vis_processor, text_processor)
code/lavis/datasets/datasets/base_dataset.py:40
Function
setup_seeds
(config)
code/demo_video.py:39
Function
setup_task
(cfg)
code/lavis/tasks/__init__.py:23
Method
setup_task
(cls, cfg)
code/lavis/tasks/retrieval.py:27
Method
setup_task
(cls, cfg)
code/lavis/tasks/captioning_custom.py:33
Method
setup_task
(cls, cfg)
code/lavis/tasks/video_text_pretrain.py:129
Method
setup_task
(cls, cfg)
code/lavis/tasks/dialogue.py:33
Method
setup_task
(cls, cfg)
code/lavis/tasks/vqa_reading_comprehension.py:39
Method
setup_task
(cls, **kwargs)
code/lavis/tasks/base_task.py:26
Method
setup_task
(cls, cfg)
code/lavis/tasks/captioning.py:29
Method
shape
projection
code/lavis/models/blip2_models/modeling_t5.py:508
Function
sharpness_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
Function
shear_x_func
(img, factor, fill=(0, 0, 0))
code/lavis/processors/randaugment.py:159
Function
shear_y_func
(img, factor, fill=(0, 0, 0))
code/lavis/processors/randaugment.py:200
Method
showQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
code/lavis/common/vqa_tools/vqa.py:159
Method
show_n_params
(self, return_str=True)
code/lavis/models/base_model.py:108
Function
solarize_func
same output as PIL.ImageOps.posterize
code/lavis/processors/randaugment.py:87
Function
split_video
(input)
data/scripts/process_videos.py:40
Method
step
(self, cur_epoch, cur_step)
code/lavis/common/optims.py:77
Method
synchronize_between_processes
Warning: does not synchronize the deque!
code/lavis/common/logger.py:37
Method
test_blip2_flant5xl
(self)
code/tests/models/test_blip2.py:111
Method
test_blip2_flant5xxl
(self)
code/tests/models/test_blip2.py:131
Method
test_blip2_opt2p7b
(self)
code/tests/models/test_blip2.py:25
Method
test_blip2_opt2p7b_coco
(self)
code/tests/models/test_blip2.py:45
Method
test_blip2_opt6p7b
(self)
code/tests/models/test_blip2.py:68
Method
test_blip2_opt6p7b_coco
(self)
code/tests/models/test_blip2.py:88
Method
test_caption
(self)
code/tests/models/test_pnp_vqa.py:76
Method
test_caption
(self)
code/tests/models/test_blip.py:27
Method
test_caption_forward
(self)
code/tests/models/test_blip.py:69
Method
test_caption_large
(self)
code/tests/models/test_blip.py:48
Method
test_feature_extractor
(self)
code/tests/models/test_blip.py:213
Method
test_itm
(self)
code/tests/models/test_pnp_vqa.py:57
Method
test_itm
(self)
code/tests/models/test_blip.py:263
Method
test_pretrain
(self)
code/tests/models/test_albef.py:122
Method
test_pretrain
(self)
code/tests/models/test_blip.py:179
Method
test_qa
(self)
code/tests/models/test_pnp_vqa.py:98
Method
test_retrieval
(self)
code/tests/models/test_albef.py:81
Method
test_retrieval
(self)
code/tests/models/test_blip.py:138
Method
test_splits
(self)
code/lavis/runners/runner_base.py:318
Method
test_vqa
(self)
code/tests/models/test_albef.py:27
Method
test_vqa
(self)
code/tests/models/test_pnp_vqa.py:27
Method
test_vqa
(self)
code/tests/models/test_blip.py:114
Method
test_vqa_forward
(self)
code/tests/models/test_albef.py:45
Method
to_dict
(self, sample)
code/lavis/datasets/datasets/laion_dataset.py:26
Function
to_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
Method
to_gradio_chatbot
(self)
code/lavis/conversation/conversation.py:81
Function
to_image_text_pair
(sample)
code/lavis/datasets/datasets/laion_dataset.py:36
Function
to_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
Function
tokenize
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
Function
trace_model
(model, batch_size=256, device=torch.device("cpu"))
code/lavis/models/clip_models/model.py:873
Method
train_epoch
( self, epoch, model, data_loader, optimizer, lr_scheduler,
code/lavis/tasks/base_task.py:103
Method
train_iters
( self, epoch, start_iters, iters_per_inner_epoch, model, data
code/lavis/tasks/base_task.py:128
Method
train_loader
(self)
code/lavis/runners/runner_base.py:359
Method
train_splits
(self)
code/lavis/runners/runner_base.py:324
Function
translate_x_func
same output as PIL.Image.transform
code/lavis/processors/randaugment.py:168
Function
translate_y_func
same output as PIL.Image.transform
code/lavis/processors/randaugment.py:180
Method
unregister
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
Method
unshape
reshape
code/lavis/models/blip2_models/modeling_t5.py:514
Function
upload_img
(gr_img, text_input, chat_state)
code/demo_video.py:98
Function
upload_vid
(gr_vid, text_input, chat_state, temperature=0.1, input_splits="")
code/demo_video.py:106
Method
upload_video
(self, video, conv, img_list, collate_way='none', step=1, shot_list=[])
code/lavis/conversation/conversation.py:658
Method
upload_video_single_frame
(self, video, conv, img_list)
code/lavis/conversation/conversation.py:620
Method
use_dist_eval_sampler
(self)
code/lavis/runners/runner_base.py:347
Method
use_distributed
(self)
code/lavis/runners/runner_base.py:84
Method
valid_splits
(self)
code/lavis/runners/runner_base.py:309
Method
valid_step
(self, model, samples)
code/lavis/tasks/captioning_custom.py:51
Method
valid_step
(self, model, samples)
code/lavis/tasks/multimodal_classification.py:24
Method
valid_step
(self, model, samples)
code/lavis/tasks/dialogue.py:51
Method
valid_step
(self, model, samples)
code/lavis/tasks/vqa_reading_comprehension.py:61
Method
valid_step
(self, model, samples)
code/lavis/tasks/vqa_reading_comprehension.py:158
Method
valid_step
(self, model, samples)
code/lavis/tasks/vqa.py:97
Method
valid_step
(self, model, samples)
code/lavis/tasks/vqa.py:171
Method
valid_step
(self, model, samples)
code/lavis/tasks/vqa.py:235
Method
valid_step
(self, model, samples)
code/lavis/tasks/captioning.py:47
Function
worker_init_fn
(_)
code/lavis/runners/runner_base.py:39
Method
wrap
(builder_cls)
code/lavis/common/registry.py:34
Function
wrapper
(*args, **kwargs)
code/lavis/common/dist_utils.py:109
Function
write_to_file
(filename, content)
data/scripts/process_videos.py:29
Function
ytb_save
(id, save_fp)
data/scripts/download_videos.py:25
Method
zero_shot_predict
(self, image_path, categories)
code/lavis/models/clip_models/model.py:696
← previous
1,401–1,483 of 1,483, ranked by callers