Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boheumd/MA-LMM
/ functions
Functions
1,238 in github.com/boheumd/MA-LMM
⨍
Functions
1,238
◇
Types & classes
310
↳
Endpoints
9
Method
__iter__
(self)
lavis/models/__init__.py:256
Method
__len__
(self)
lavis/datasets/datasets/msrvtt_vqa_datasets.py:80
Method
__len__
(self)
lavis/datasets/datasets/youcook_caption_datasets.py:77
Method
__len__
(self)
lavis/datasets/datasets/youcook_caption_datasets.py:167
Method
__len__
(self)
lavis/datasets/datasets/breakfast_cls_datasets.py:81
Method
__len__
(self)
lavis/datasets/datasets/activitynet_vqa_datasets.py:80
Method
__len__
(self)
lavis/datasets/datasets/msvd_vqa_datasets.py:80
Method
__len__
(self)
lavis/datasets/datasets/base_dataset.py:34
Method
__len__
(self)
lavis/datasets/datasets/msrvtt_caption_datasets.py:75
Method
__len__
(self)
lavis/datasets/datasets/imagefolder_dataset.py:31
Method
__len__
(self)
lavis/datasets/datasets/coin_cls_datasets.py:84
Method
__len__
(self)
lavis/datasets/datasets/dataloader_utils.py:73
Method
__len__
(self)
lavis/datasets/datasets/dataloader_utils.py:161
Method
__len__
(self)
lavis/datasets/datasets/msvd_caption_datasets.py:75
Method
__len__
(self)
lavis/datasets/datasets/lvu_cls_datasets.py:88
Method
__len__
(self)
lavis/models/__init__.py:259
Method
__next__
(self)
lavis/datasets/datasets/dataloader_utils.py:40
Method
__next__
(self)
lavis/datasets/datasets/dataloader_utils.py:145
Method
__repr__
(self)
lavis/processors/alpro_processors.py:40
Method
__repr__
(self)
lavis/processors/alpro_processors.py:58
Method
__repr__
(self)
lavis/processors/alpro_processors.py:77
Method
__repr__
(self)
lavis/processors/transforms_video.py:52
Method
__repr__
(self)
lavis/processors/transforms_video.py:88
Method
__repr__
(self)
lavis/processors/transforms_video.py:109
Method
__repr__
(self)
lavis/processors/transforms_video.py:130
Method
__repr__
(self)
lavis/processors/transforms_video.py:149
Method
__repr__
(self)
lavis/processors/transforms_video.py:173
Method
__repr__
(self)
lavis/processors/transforms_video.py:195
Method
__repr__
(self)
lavis/processors/transforms_video.py:220
Method
__repr__
(self)
lavis/processors/blip_processors.py:353
Method
__repr__
(self)
lavis/processors/blip_processors.py:371
Method
__str__
(self)
lavis/common/config.py:196
Method
__str__
(self)
lavis/common/config.py:218
Method
__str__
(self)
lavis/common/logger.py:74
Method
__str__
(self)
lavis/common/logger.py:105
Method
__str__
(self)
lavis/models/__init__.py:241
Method
_aug
(self, img, ops, apply_or_not)
lavis/processors/randaugment.py:386
Method
_build_class_labels
(self)
lavis/datasets/datasets/multimodal_classification_datasets.py:19
Method
_build_class_labels
(self, ans_path)
lavis/datasets/datasets/video_vqa_datasets.py:33
Function
_cfg
(url='', **kwargs)
lavis/models/eva_vit.py:21
Function
_convert_to_rgb
(image)
lavis/models/clip_models/transform.py:64
Function
_convert_to_rgb
(image)
lavis/processors/clip_processors.py:15
Function
_convert_weights_to_fp16
(l)
lavis/models/eva_vit.py:407
Function
_convert_weights_to_fp16
(l)
lavis/models/clip_models/model.py:766
Method
_create_loader
(dataset, num_workers, bsz, is_train, collate_fn)
lavis/runners/runner_base.py:513
Function
_df_split_apply
(tup_arg)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:34
Function
_df_split_apply
(tup_arg)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:34
Method
_download_ann
(self)
lavis/datasets/builders/image_text_pair_builder.py:54
Method
_download_ann
(self)
lavis/datasets/builders/imagefolder_builder.py:22
Method
_download_vis
(self)
lavis/datasets/builders/image_text_pair_builder.py:57
Method
_flip
(samples)
lavis/datasets/datasets/nlvr_datasets.py:93
Method
_init_weights
(self, m)
lavis/models/vit.py:252
Method
_init_weights
(self, m)
lavis/models/eva_vit.py:311
Method
_init_weights
Initialize the weights
lavis/models/med.py:705
Method
_init_weights
Initialize the weights
lavis/models/blip_models/nlvr_encoder.py:665
Method
_init_weights
Initialize the weights
lavis/models/blip2_models/Qformer.py:664
Method
_init_weights
(self, module)
lavis/models/blip2_models/modeling_llama.py:348
Method
_init_weights
Initialize the weights
lavis/models/blip2_models/modeling_t5.py:853
Method
_lemmatize
(self, answers)
lavis/models/blip2_models/blip2.py:313
Function
_move_to_cuda
(tensor)
lavis/datasets/data_utils.py:70
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
lavis/models/med.py:746
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
lavis/models/blip_models/nlvr_encoder.py:706
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
lavis/models/blip2_models/Qformer.py:705
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
lavis/models/blip2_models/modeling_t5.py:1517
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
lavis/models/blip2_models/modeling_t5.py:2011
Method
_reorder_cache
(self, past, beam_idx)
lavis/models/med.py:1287
Method
_reorder_cache
(self, past, beam_idx)
lavis/models/blip2_models/Qformer.py:1120
Method
_reorder_cache
(past_key_values, beam_idx)
lavis/models/blip2_models/modeling_llama.py:764
Method
_reorder_cache
(self, past, beam_idx)
lavis/models/blip2_models/modeling_t5.py:1926
Method
_report_metrics
(self, eval_result_file, split_name)
lavis/tasks/dialogue.py:68
Method
_report_metrics
TODO: add other evaluation metrics for GQA
lavis/tasks/vqa.py:228
Method
_report_metrics
Implementing accuracy computation for AOKVQA, see https://github.com/allenai/aokvqa/blob/main/evaluation/eval_predictions.py#L45 for
lavis/tasks/vqa.py:293
Method
_set_gradient_checkpointing
(self, module, value=False)
lavis/models/blip2_models/modeling_llama.py:359
Method
_set_gradient_checkpointing
(self, module, value=False)
lavis/models/blip2_models/modeling_t5.py:915
Method
_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
lavis/models/blip2_models/modeling_llama.py:183
Method
_validate_runner_config
This method validates the configuration, such that 1) all the user specified options are valid; 2) no type mismatches
lavis/common/config.py:43
Function
abspath
Make a path absolute, but take into account prefixes like "http://" or "manifold://"
lavis/common/utils.py:374
Method
accum_grad_iters
(self)
lavis/runners/runner_base.py:294
Function
add_model_config
add model config path or file and update registry
lavis/models/clip_models/model.py:1037
Method
after_evaluation
(self, val_result, **kwargs)
lavis/tasks/retrieval.py:49
Method
after_evaluation
(self, val_result, split_name, epoch, dataset, **kwargs)
lavis/tasks/classification.py:94
Method
after_evaluation
(self, val_result, split_name, epoch, **kwargs)
lavis/tasks/multimodal_classification.py:51
Method
after_evaluation
(self, val_result, split_name, epoch, **kwargs)
lavis/tasks/dialogue.py:57
Method
after_evaluation
(self, val_result, split_name, **kwargs)
lavis/tasks/vqa_reading_comprehension.py:93
Method
after_evaluation
(self, **kwargs)
lavis/tasks/base_task.py:77
Method
after_evaluation
(self, val_result, split_name, epoch, dataset, **kwargs)
lavis/tasks/captioning.py:71
Function
app
()
app/classification.py:63
Function
app
()
app/text_localization.py:20
Function
app
()
app/image_text_match.py:19
Function
app
()
app/multimodal_search.py:72
Function
app
()
app/vqa.py:15
Function
app
()
app/caption.py:15
Method
apply
(answer)
lavis/models/blip2_models/blip2_t5_instruct.py:699
Method
apply
(answer)
lavis/models/blip2_models/blip2_t5.py:315
Method
apply
(answer)
lavis/models/blip2_models/blip2_vicuna_instruct.py:760
Function
apply_rot_embed_list
(x: List[torch.Tensor], sin_emb, cos_emb)
lavis/models/clip_models/timm_model.py:438
Function
apply_rot_embed_split
(x: torch.Tensor, emb)
lavis/models/clip_models/timm_model.py:444
Function
autocontrast_func
same output as PIL.ImageOps.autocontrast
lavis/processors/randaugment.py:19
Method
avg
(self)
lavis/common/logger.py:58
Method
before_evaluation
(self, **kwargs)
lavis/models/base_model.py:107
← previous
next →
701–800 of 1,238, ranked by callers