MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 1 callersMethodlist_lr_schedulers
(cls)
lavis/common/registry.py:272
↓ 1 callersFunctionlist_models
enumerate available model architectures based on config files
lavis/models/clip_models/model.py:1032
↓ 1 callersFunctionlist_openai_models
Returns the names of available CLIP models
lavis/models/clip_models/model.py:1045
↓ 1 callersFunctionlist_pretrained_tag_models
return all models having the specified pretrain tag
lavis/models/clip_models/pretrained.py:103
↓ 1 callersMethodlist_tasks
(cls)
lavis/common/registry.py:264
↓ 1 callersFunctionload
(module, prefix='')
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:67
↓ 1 callersFunctionload
(module, prefix='')
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:67
↓ 1 callersMethodload_annotations
Load annotation from directory. Args: img_dir (str): Path to image directory img_suffix (str): Suffix of images.
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:120
↓ 1 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:286
↓ 1 callersMethodload_checkpoint
load checkpoint through URL scheme path. Args: filename (str): checkpoint file name with given prefix map_location (s
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:227
↓ 1 callersMethodload_checkpoint_from_dir
(self, checkpoint_dir_or_url)
lavis/models/blip_diffusion_models/blip_diffusion.py:950
↓ 1 callersFunctionload_dataset
Example >>> dataset = load_dataset("coco_caption", cfg=None) >>> splits = dataset.keys() >>> print([len(dataset[split]) for split in
lavis/datasets/builders/__init__.py:230
↓ 1 callersFunctionload_fileclient_dist
In distributed setting, this function only download checkpoint at local rank 0.
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:151
↓ 1 callersMethodload_from_pretrained
(self, url_or_filename)
lavis/models/albef_models/albef_vqa.py:381
↓ 1 callersMethodload_from_pretrained
(self, url_or_filename, **kwargs)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2522
↓ 1 callersFunctionload_gt_file
(file_path)
lavis/tasks/captioning.py:165
↓ 1 callersFunctionload_model
(model_type)
lavis/common/annotator/midas/api.py:77
↓ 1 callersFunctionload_model_and_preprocess
Load model and its related preprocessors. List all available models and types in registry: >>> from lavis.models import model_zoo >>
lavis/models/__init__.py:183
↓ 1 callersFunctionload_openai_model
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model checkp
lavis/models/clip_models/model.py:1050
↓ 1 callersFunctionload_pavimodel_dist
In distributed setting, this function only download checkpoint at local rank 0.
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:123
↓ 1 callersFunctionload_preprocess
Load preprocessor configs and construct preprocessors. If no preprocessor is specified, return BaseProcessor, which does not do any preproce
lavis/models/__init__.py:131
↓ 1 callersFunctionload_pretrained
( model, cfg=None, num_classes=1000, in_chans=3, filter_fn=None, img_size=224, num
lavis/models/timesformer/helpers.py:102
↓ 1 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``F
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:41
↓ 1 callersMethodload_unifiedqa
(self, state_dict)
lavis/models/pnp_vqa_models/pnp_unifiedqav2_fid.py:54
↓ 1 callersFunctionload_video
(video_path, n_frms=MAX_INT, height=-1, width=-1, sampling="uniform")
lavis/datasets/data_utils.py:30
↓ 1 callersMethodlock
(self, unlocked_groups=0, freeze_bn_stats=False)
lavis/models/clip_models/model.py:217
↓ 1 callersMethodloss
(self)
lavis/models/clip_models/model.py:501
↓ 1 callersMethodlosses
Compute segmentation loss.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:215
↓ 1 callersMethodlosses
Compute segmentation loss.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:248
↓ 1 callersMethodlosses
Compute ``pam_cam``, ``pam``, ``cam`` loss.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/da_head.py:164
↓ 1 callersFunctionmain
(args)
main.py:141
↓ 1 callersFunctionmake_color_wheel
Build a color wheel. Args: bins(list or tuple, optional): Specify the number of bins for each color range, corresponding to s
lavis/common/annotator/uniformer/mmcv/visualization/optflow.py:76
↓ 1 callersMethodmake_layer
Stack InvertedResidual blocks to build a layer for MobileNetV2. Args: out_channels (int): out_channels of block. num_
lavis/common/annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:107
↓ 1 callersFunctionmake_res_layer
(block, inplanes, planes, blocks,
lavis/common/annotator/uniformer/mmcv/cnn/resnet.py:143
↓ 1 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:523
↓ 1 callersMethodmake_stage_plugins
make plugins for ResNet 'stage_idx'th stage . Currently we support to insert 'context_block', 'empirical_attention_block', 'nonlocal_
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:470
↓ 1 callersFunctionmake_vgg_layer
(inplanes, planes, num_blocks, dilation=1,
lavis/common/annotator/uniformer/mmcv/cnn/vgg.py:19
↓ 1 callersMethodmask
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.
lavis/models/albef_models/albef_pretrain.py:341
↓ 1 callersFunctionmerge_datasets
Merge datasets in download_path to storage_path
lavis/datasets/download_scripts/download_msrvtt.py:46
↓ 1 callersFunctionmerge_new_config
(config, new_config)
lavis/models/ulip_models/utils/config.py:18
↓ 1 callersFunctionmerge_new_config
(config, new_config)
lavis/models/ulip_models/utils/utils.py:14
↓ 1 callersMethodmis_match_char
(self, x, y)
lavis/models/blip_diffusion_models/ptp_utils.py:358
↓ 1 callersMethodmodule_name
feature module name accessor
lavis/models/timesformer/features.py:74
↓ 1 callersFunctionmove_directory
Move files from download_path to storage_path
lavis/datasets/download_scripts/download_flickr.py:32
↓ 1 callersFunctionmove_files
Move files from download_path to storage_path
lavis/datasets/download_scripts/download_didemo.py:31
↓ 1 callersFunctionmove_files
Move files from download_path to storage_path
lavis/datasets/download_scripts/download_msvd.py:28
↓ 1 callersFunctionmulti_scale_deformable_attn_pytorch
CPU version of multi-scale deformable attention. Args: value (Tensor): The value has shape (bs, num_keys, mum_heads, embed_di
lavis/common/annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:94
↓ 1 callersMethodnorm0
nn.Module: the normalization layer named "norm0"
lavis/common/annotator/uniformer/mmseg/models/backbones/resnest.py:108
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
lavis/common/annotator/uniformer/mmseg/models/backbones/resnest.py:113
↓ 1 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:58
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:528
↓ 1 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:63
↓ 1 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:255
↓ 1 callersFunctionnorm_ema_inplace
(moving_avg, new, decay)
lavis/models/beats/quantizer.py:126
↓ 1 callersFunctionnormalize
Normalize input grid from [-1, 1] to [0, 1] Args: grid (Tensor): The grid to be normalize, range [-1, 1]. Returns: Tensor: Nor
lavis/common/annotator/uniformer/mmcv/ops/point_sample.py:94
↓ 1 callersFunctionnumpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
lavis/models/blip_diffusion_models/utils.py:19
↓ 1 callersFunctionopen_tsv
(fname, folder)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:174
↓ 1 callersFunctionopen_tsv
(fname, folder)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:174
↓ 1 callersFunctionpad_same
(x, k: List[int], s: List[int], d: List[int] = (1, 1), value: float = 0)
lavis/models/timesformer/conv2d_same.py:24
↓ 1 callersMethodpam_cls_seg
PAM feature classification.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/da_head.py:128
↓ 1 callersMethodparse_uri_prefix
Parse the prefix of a uri. Args: uri (str | Path): Uri to be parsed that contains the file prefix. Examples:
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:831
↓ 1 callersFunctionpatch_forward_method
Patch the forward method of a module. Args: func (callable): The original forward method. src_type (torch.dtype): Type of input a
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:283
↓ 1 callersFunctionpatch_norm_fp32
Recursively convert normalization layers from FP16 to FP32. Args: module (nn.Module): The modules to be converted in FP16. Returns:
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:263
↓ 1 callersFunctionpc_norm
pc: NxC, return NxC
lavis/processors/ulip_processors.py:23
↓ 1 callersFunctionpc_normalize
(pc)
lavis/processors/ulip_processors.py:42
↓ 1 callersFunctionposterize_level_to_args
(MAX_LEVEL)
lavis/processors/randaugment.py:270
↓ 1 callersMethodpre_question
(self, question)
lavis/processors/blip_processors.py:88
↓ 1 callersFunctionpred_lines
(image, model, input_shape=[512, 512], score_thr=0.10, dist_thr=2
lavis/common/annotator/mlsd/utils.py:47
↓ 1 callersFunctionprepare_cond_image
( image, width, height, batch_size, device, do_classifier_free_guidance=True )
lavis/models/blip_diffusion_models/utils.py:56
↓ 1 callersMethodprepare_few_shot_embeds
(self, samples)
lavis/models/blip2_models/blip2_t5_instruct.py:204
↓ 1 callersFunctionprepare_qa_input
(sample, num_captions, num_captions_fid)
lavis/models/pnp_vqa_models/__init__.py:11
↓ 1 callersMethodprepare_test_img
Get testing data after pipeline. Args: idx (int): Index of data. Returns: dict: Testing data after pipeline
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:211
↓ 1 callersMethodprepare_train_img
Get training data and annotations after pipeline. Args: idx (int): Index of data. Returns: dict: Training da
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:194
↓ 1 callersMethodpreprocess
( self, source: torch.Tensor, fbank_mean: float = 15.41663, fb
lavis/models/beats/Tokenizers.py:123
↓ 1 callersFunctionpreprocess_canny
( input_image: np.ndarray, image_resolution: int, low_threshold: int, high_threshold: int, )
lavis/models/blip_diffusion_models/utils.py:31
↓ 1 callersFunctionprint_model_with_flops
Print a model with FLOPs for each layer. Args: model (nn.Module): The model to be printed. total_flops (float): Total FLOPs of th
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:198
↓ 1 callersMethodproject
projects hidden states correctly to key/query states
lavis/models/blip2_models/modeling_t5.py:520
↓ 1 callersMethodprune_heads
(self, heads)
lavis/models/med.py:313
↓ 1 callersMethodprune_heads
(self, heads)
lavis/models/blip_models/nlvr_encoder.py:306
↓ 1 callersMethodprune_heads
(self, heads)
lavis/models/blip2_models/Qformer.py:299
↓ 1 callersMethodpsp_forward
Forward function of PSP module.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/uper_head.py:76
↓ 1 callersMethodput
Save data to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data.
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:179
↓ 1 callersFunctionquantize
Quantize an array of (-inf, inf) to [0, levels-1]. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clippe
lavis/common/annotator/uniformer/mmcv/arraymisc/quantization.py:5
↓ 1 callersFunctionquantize_flow
Quantize flow to [0, 255]. After this step, the size of flow will be much smaller, and can be dumped as jpeg images. Args: flow
lavis/common/annotator/uniformer/mmcv/video/optflow.py:91
↓ 1 callersFunctionrandom_sample
(permutation, pc, num)
lavis/processors/ulip_processors.py:31
↓ 1 callersMethodrandom_select
Randomly select an img_scale from given candidates. Args: img_scales (list[tuple]): Images scales for selection. Returns
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:68
↓ 1 callersMethodrank_answers
Generate the first token of answers using decoder and select ${num_ans_candidates} most probable ones. Then select answers from answe
lavis/models/albef_models/albef_vqa.py:269
↓ 1 callersMethodrecon_loss
(self, ret, gt)
lavis/models/ulip_models/pointbert/dvae.py:297
↓ 1 callersFunctionrecord_cuda_stream
(batch)
lavis/datasets/datasets/dataloader_utils.py:116
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
lavis/common/annotator/uniformer/mmseg/models/losses/utils.py:26
↓ 1 callersFunctionreduce_mean
Reduce mean when distributed training.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/ema_head.py:13
↓ 1 callersMethodregister_checkpoint_hook
(self, checkpoint_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:451
↓ 1 callersMethodregister_custom_hooks
(self, custom_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:480
↓ 1 callersMethodregister_hook_from_cfg
Register a hook from its cfg. Args: hook_cfg (dict): Hook config. It should have at least keys 'type' and 'priority
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:283
↓ 1 callersMethodregister_logger_hooks
(self, log_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:461
↓ 1 callersMethodregister_lr_hook
(self, lr_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:399
↓ 1 callersMethodregister_momentum_hook
(self, momentum_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:420
↓ 1 callersMethodregister_optimizer_hook
(self, optimizer_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:441
↓ 1 callersMethodregister_timer_hook
(self, timer_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:470
↓ 1 callersFunctionregister_torch_optimizers
()
lavis/common/annotator/uniformer/mmcv/runner/optimizer/builder.py:13
← previousnext →1,101–1,200 of 3,633, ranked by callers