MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

Method_check_input_dim
(self, input)
lavis/common/annotator/uniformer/mmcv/utils/parrots_wrapper.py:101
Method_check_input_dim
(self, input)
lavis/common/annotator/uniformer/mmcv/cnn/utils/sync_bn.py:17
Function_check_py_package
(package)
lavis/common/annotator/uniformer/mmcv/utils/misc.py:244
Method_collect_output_hook
(self, hook_id, *args)
lavis/models/timesformer/features.py:109
Method_contain_invalid_identifier
(dict_str)
lavis/common/annotator/uniformer/mmcv/utils/config.py:453
Function_conv_filter
convert patch embedding weight from manual patchify + linear proj to conv
lavis/models/timesformer/vit.py:470
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:413
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:517
Method_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
lavis/common/annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:80
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_do_evaluate
perform evaluation and save ckpt.
lavis/common/annotator/uniformer/mmcv/runner/hooks/evaluation.py:478
Method_download_ann
(self)
lavis/datasets/builders/text_to_image_generation_builder.py:23
Method_download_ann
(self)
lavis/datasets/builders/image_text_pair_builder.py:83
Method_download_ann
(self)
lavis/datasets/builders/imagefolder_builder.py:22
Method_download_data
(self)
lavis/datasets/builders/base_dataset_builder.py:279
Method_download_vis
(self)
lavis/datasets/builders/image_text_pair_builder.py:86
Method_flip
(samples)
lavis/datasets/datasets/nlvr_datasets.py:93
Method_format_basic_types
(k, v, use_mapping=False)
lavis/common/annotator/uniformer/mmcv/utils/config.py:421
Method_format_dict
(input_dict, outest_level=False)
lavis/common/annotator/uniformer/mmcv/utils/config.py:460
Method_format_list
(k, v, use_mapping=False)
lavis/common/annotator/uniformer/mmcv/utils/config.py:436
Function_forward_pre_hook
(mod, input)
lavis/models/beats/modules.py:169
Method_get_init_info
(self)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:157
Method_get_momentum
(optimizer)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:233
Method_get_warmup_lr
(cur_iters, regular_lr)
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:87
Method_get_warmup_momentum
(cur_iters, regular_momentum)
lavis/common/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:73
Method_indent
(s_, num_spaces)
lavis/common/annotator/uniformer/mmcv/utils/config.py:411
Method_init_decode_head
Initialize ``decode_head``
lavis/common/annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:38
Method_init_weights
(self, m)
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:363
Method_init_weights
(self, m)
lavis/models/vit.py:252
Method_init_weights
(self, m)
lavis/models/eva_vit.py:308
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
(self, m)
lavis/models/timesformer/vit.py:385
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:347
Method_init_weights
Initialize the weights
lavis/models/blip2_models/modeling_t5.py:853
Method_init_weights
(self, module)
lavis/models/blip2_models/modeling_opt.py:440
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/backbones/resnest.py:228
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/backbones/cgnet.py:39
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/backbones/cgnet.py:144
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/backbones/vit.py:158
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:70
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:267
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/utils/inverted_residual.py:83
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmseg/models/utils/inverted_residual.py:185
Method_inner_forward
(x)
lavis/common/annotator/uniformer/mmcv/cnn/resnet.py:112
Method_is_power_of_2
(n)
lavis/common/annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:203
Method_lemmatize
(self, answers)
lavis/models/blip2_models/blip2_opt.py:261
Method_lemmatize
(self, answers)
lavis/models/blip2_models/blip2.py:150
Method_list_dir_or_file
(dir_path, list_dir, list_file, suffix, recursive)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:385
Method_list_dir_or_file
(dir_path, list_dir, list_file, suffix, recursive)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:670
Method_load_audio
(self, aupath)
lavis/processors/audio_processors.py:38
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys
lavis/common/annotator/uniformer/mmcv/ops/modulated_deform_conv.py:256
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys
lavis/common/annotator/uniformer/mmcv/ops/deform_conv.py:380
Method_load_json_file
(self, files, audio_root, blacklist=None)
lavis/datasets/datasets/audio_captioning_datasets.py:326
Method_load_pretrained_model
(self)
lavis/common/annotator/mlsd/models/mbv2_mlsd_tiny.py:236
Method_log_handler
(prof)
lavis/common/annotator/uniformer/mmcv/runner/hooks/profiler.py:123
Function_make_pretrained_deitb16_384
(pretrained, use_readout="ignore", hooks=None)
lavis/common/annotator/midas/midas/vit.py:319
Function_make_pretrained_deitb16_distil_384
(pretrained, use_readout="ignore", hooks=None)
lavis/common/annotator/midas/midas/vit.py:328
Function_move_to_cuda
(tensor)
lavis/datasets/data_utils.py:72
Function_named_modules_with_dup
The same as `model.named_modules()`, except that it includes duplicated modules that have more than one name.
lavis/models/ulip_models/pointbert/checkpoint.py:114
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_register
(cls)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:310
Method_register
(loader_cls)
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:204
Method_register
(backend_cls)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:969
Method_register
(cls)
lavis/models/ulip_models/utils/registry.py:238
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:762
Method_reorder_cache
(self, past, beam_idx)
lavis/models/blip2_models/modeling_t5.py:1926
Method_reorder_cache
(past, beam_idx)
lavis/models/blip2_models/modeling_opt.py:1105
Method_report_metrics
(self, eval_result_file, split_name)
lavis/tasks/dialogue.py:68
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:262
Method_report_metrics
TODO: add other evaluation metrics for GQA
lavis/tasks/vqa.py:366
Method_report_metrics
(self, result_file, split)
lavis/tasks/vqa.py:443
Function_resize_pos_embed
(self, posemb, gs_h, gs_w)
lavis/common/annotator/midas/midas/vit.py:100
Method_set_gradient_checkpointing
(self, module, value=False)
lavis/models/blip2_models/modeling_llama.py:358
Method_set_gradient_checkpointing
(self, module, value=False)
lavis/models/blip2_models/modeling_t5.py:915
Method_set_gradient_checkpointing
(self, module, value=False)
lavis/models/blip2_models/modeling_opt.py:451
Method_set_momentum
(self, runner, momentum_groups)
lavis/common/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:448
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
lavis/models/blip2_models/modeling_llama.py:182
Function_strip_prefix_if_present
Strip the prefix in metadata, if any. Args: state_dict (OrderedDict): a state-dict to be loaded to the model. prefix (str): p
lavis/models/ulip_models/pointbert/checkpoint.py:43
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
Functionabspath
Make a path absolute, but take into account prefixes like "http://" or "manifold://"
lavis/common/utils.py:376
Methodaccum_grad_iters
(self)
lavis/runners/runner_base.py:300
Functionaccumulate_flops
(self)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:264
Functionaccumulate_params
(self)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:255
Functionadaptive_pool_feat_mult
(pool_type="avg")
lavis/models/timesformer/vit_utils.py:154
Functionadd_extra_repr
(m)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:286
Functionadd_flops_counter_hook_function
(module)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:364
Functionadd_flops_counter_variable_or_reset
(module)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:530
Functionadd_model_config
add model config path or file and update registry
lavis/models/clip_models/model.py:1037
← previousnext →2,101–2,200 of 3,633, ranked by callers