MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 3 callersMethodget_empty_store
()
lavis/models/blip_diffusion_models/ptp_utils.py:121
↓ 3 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
lavis/models/blip2_models/Qformer.py:713
↓ 3 callersFunctionget_pretrained_url
(model: str, tag: str)
lavis/models/clip_models/pretrained.py:120
↓ 3 callersMethodget_processor_class
(cls, name)
lavis/common/registry.py:244
↓ 3 callersMethodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:994
↓ 3 callersFunctionget_world_size
()
lavis/common/dist_utils.py:41
↓ 3 callersFunctionget_world_size
()
lavis/models/ulip_models/utils/utils.py:73
↓ 3 callersFunctionimresize
Resize image to a given size. Args: img (ndarray): The input image. size (tuple[int]): Target size (w, h). return_scale (
lavis/common/annotator/uniformer/mmcv/image/geometric.py:51
↓ 3 callersFunctionimshow
Show an image. Args: img (str or ndarray): The image to be displayed. win_name (str): The window name. wait_time (int): V
lavis/common/annotator/uniformer/mmcv/visualization/image.py:9
↓ 3 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None or li
lavis/common/annotator/uniformer/mmcv/image/io.py:242
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:233
↓ 3 callersMethodloadRes
Load result file and return a result object. :param resFile (str) : file name of result file :return: res (obj)
lavis/common/vqa_tools/vqa.py:173
↓ 3 callersFunctionload_clip
(video_path, num_frames, target_height, target_width, start_time=None, end_time=None, sampling="headtail")
lavis/datasets/data_utils.py:345
↓ 3 callersFunctionload_dataset_config
(cfg_path)
lavis/datasets/builders/base_dataset_builder.py:325
↓ 3 callersFunctionload_from_http
load checkpoint through HTTP or HTTPS scheme path. In distributed setting, this function only download checkpoint at local rank 0. Args:
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:267
↓ 3 callersMethodload_from_pretrained
(self, url_or_filename)
lavis/models/blip_models/blip.py:34
↓ 3 callersMethodload_state_dict
(module, filename)
lavis/models/blip_diffusion_models/blip_diffusion.py:957
↓ 3 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:219
↓ 3 callersFunctionmake_layers
(block, no_relu_layers)
lavis/common/annotator/openpose/model.py:7
↓ 3 callersFunctionmakedir
Create the directory if it does not exist.
lavis/common/utils.py:66
↓ 3 callersMethodnext
(self, it)
lavis/datasets/datasets/dataloader_utils.py:100
↓ 3 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:260
↓ 3 callersFunctionpixel_freq_bands
( num_bands: int, max_freq: float = 224.0, linear_bands: bool = True, dtype: torch.dtype = tor
lavis/models/clip_models/timm_model.py:250
↓ 3 callersMethodpre_caption
(self, caption)
lavis/processors/blip_processors.py:49
↓ 3 callersMethodput
(self, key, val)
lavis/common/annotator/uniformer/mmcv/video/io.py:30
↓ 3 callersFunctionrandom_point_dropout
batch_pc: BxNx3
lavis/processors/ulip_processors.py:92
↓ 3 callersFunctionrandom_scale_point_cloud
Randomly scale the point cloud. Scale is per point cloud. Input: BxNx3 array, original batch of point clouds Return:
lavis/processors/ulip_processors.py:101
↓ 3 callersMethodregister
r"""Register an item to registry with key 'name' Args: name: Key with which the item will be registered. Usage::
lavis/common/registry.py:205
↓ 3 callersFunctionreorg_datasets_by_split
Organizes datasets by split. Args: datasets: dict of torch.utils.data.Dataset objects by name. Returns: Dict of dataset
lavis/datasets/data_utils.py:87
↓ 3 callersMethodreset_classifier
(self, num_classes, global_pool="")
lavis/models/timesformer/vit.py:401
↓ 3 callersFunctionrot
(x)
lavis/models/clip_models/timm_model.py:430
↓ 3 callersFunctionrotate_perturbation_point_cloud
Randomly perturb the point clouds by small rotations Input: BxNx3 array, original batch of point clouds Return: B
lavis/processors/ulip_processors.py:140
↓ 3 callersFunctionrotate_point_cloud
Randomly rotate the point clouds to augument the dataset rotation is per shape based along up direction Input: BxNx3 array,
lavis/processors/ulip_processors.py:72
↓ 3 callersMethodscatter
(self, inputs, kwargs, device_ids)
lavis/common/annotator/uniformer/mmcv/parallel/distributed_deprecated.py:52
↓ 3 callersFunctionshift_point_cloud
Randomly shift point cloud. Shift is per point cloud. Input: BxNx3 array, original batch of point clouds Return:
lavis/processors/ulip_processors.py:114
↓ 3 callersMethodto_dict
(self, sample)
lavis/datasets/datasets/laion_dataset.py:26
↓ 3 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
lavis/models/clip_models/timm_model.py:544
↓ 3 callersFunctionwarmup_lr_schedule
Warmup the learning rate
lavis/common/optims.py:128
↓ 2 callersFunctionHWC3
(x)
lavis/common/annotator/util.py:9
↓ 2 callersMethod__exit__
(self, type, value, traceback)
lavis/common/annotator/uniformer/mmcv/utils/timer.py:53
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/snli_ve_datasets.py:40
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/iconqa_datasets.py:48
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/vatex_captioning_datasets.py:53
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/visdial_dialogue_datasets.py:86
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/image_text_pair_datasets.py:36
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/gqa_datasets.py:38
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/vlep_dataset.py:28
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/coco_vqa_datasets.py:37
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/caption_datasets.py:44
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/valor_caption.py:53
↓ 2 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/aok_vqa_datasets.py:39
↓ 2 callersMethod__init__
(self, ocr_channels, scale=1, **kwargs)
lavis/common/annotator/uniformer/mmseg/models/decode_heads/ocr_head.py:97
↓ 2 callersMethod__init__
(self, in_channels, channels)
lavis/common/annotator/uniformer/mmseg/models/decode_heads/da_head.py:20
↓ 2 callersMethod__init__
(self, kernel_size, group_size, scale_factor)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:194
↓ 2 callersMethod__init__
(self, output_size, spatial_scale=1.0, sampling_ratio=0,
lavis/common/annotator/uniformer/mmcv/ops/deform_roi_pool.py:94
↓ 2 callersMethod__init__
(self, depth, num_stages=4, strides=(1, 2, 2, 2),
lavis/common/annotator/uniformer/mmcv/cnn/resnet.py:210
↓ 2 callersMethod__init__
(self, **kwargs)
lavis/datasets/datasets/object3d_captioning_datasets.py:37
↓ 2 callersMethod__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file spl
lavis/datasets/datasets/avsd_dialogue_datasets.py:20
↓ 2 callersMethod__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
lavis/datasets/datasets/visdial_dialogue_datasets.py:33
↓ 2 callersMethod__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
lavis/datasets/datasets/vsr_datasets.py:66
↓ 2 callersMethod__init__
(self, config: CLIPTextConfig)
lavis/models/blip_diffusion_models/modeling_ctx_clip.py:25
↓ 2 callersMethod__init__
(self, width: int, layers: int, heads: int, attn_mask: torch.Tensor = None)
lavis/models/ulip_models/ULIP_models.py:63
↓ 2 callersMethod__init__
(self)
lavis/models/beats/modules.py:44
↓ 2 callersMethod__init__
(self, args)
lavis/models/beats/backbone.py:27
↓ 2 callersMethod__init__
(self)
lavis/processors/alpro_processors.py:52
↓ 2 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
lavis/common/annotator/uniformer/mmcv/runner/dist_utils.py:145
↓ 2 callersFunction_any
Since built-in ``any`` works only when the element of iterable is not iterable, implement the function.
lavis/common/annotator/uniformer/mmcv/utils/testing.py:25
↓ 2 callersMethod_build_class_labels
(self)
lavis/datasets/datasets/nlvr_datasets.py:40
↓ 2 callersMethod_build_input_conv
(self, channel, conv_cfg, norm_cfg)
lavis/common/annotator/uniformer/mmcv/ops/merge_cells.py:78
↓ 2 callersMethod_build_prompt
(self, prompts, tgt_subjects, prompt_strength=1.0, prompt_reps=20)
lavis/models/blip_diffusion_models/blip_diffusion.py:270
↓ 2 callersMethod_collect
(self, x)
lavis/models/timesformer/features.py:207
↓ 2 callersMethod_denoise_latent_step
( self, latents, t, text_embeddings, guidance_scale, height,
lavis/models/blip_diffusion_models/blip_diffusion.py:807
↓ 2 callersMethod_dist_broadcast_coalesced
(self, tensors, buffer_size)
lavis/common/annotator/uniformer/mmcv/parallel/distributed_deprecated.py:29
↓ 2 callersMethod_do_evaluate
perform evaluation and save ckpt.
lavis/common/annotator/uniformer/mmcv/runner/hooks/evaluation.py:269
↓ 2 callersMethod_download_ann
Download annotation files if necessary. All the vision-language datasets should have annotations of unified format. storage_
lavis/datasets/builders/base_dataset_builder.py:101
↓ 2 callersMethod_dump_log
(self, log_dict, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/text.py:185
↓ 2 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
lavis/models/blip2_models/modeling_opt.py:93
↓ 2 callersFunction_file_name
(row)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:82
↓ 2 callersFunction_file_name
(row)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:82
↓ 2 callersMethod_freeze_stages
Freeze stages param and norm stats.
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:581
↓ 2 callersMethod_get_absolute_path
(self, path)
lavis/datasets/builders/base_dataset_builder.py:284
↓ 2 callersMethod_get_coarse_point_feats
Sample from fine grained features. Args: prev_output (list[Tensor]): Prediction of previous decode head. points (Tens
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:147
↓ 2 callersFunction_get_feature_info
(net, out_indices)
lavis/models/timesformer/features.py:137
↓ 2 callersMethod_get_fine_grained_point_feats
Sample from fine grained features. Args: x (list[Tensor]): Feature pyramid from by neck or backbone. points (Tensor):
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:123
↓ 2 callersFunction_get_mmcv_home
()
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:30
↓ 2 callersFunction_get_mmcv_home
()
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:30
↓ 2 callersMethod_get_real_position
(self)
lavis/common/annotator/uniformer/mmcv/video/io.py:124
↓ 2 callersMethod_get_weight
(self, weight)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:101
↓ 2 callersFunction_group_checkpoint_keys
Group keys based on common prefixes. A prefix is the string up to the final "." in each key. Args: keys (list[str]): list of para
lavis/models/ulip_models/pointbert/checkpoint.py:76
↓ 2 callersFunction_group_to_str
Format a group of parameter name suffixes into a loggable string. Args: group (list[str]): list of parameter name suffixes. Retur
lavis/models/ulip_models/pointbert/checkpoint.py:97
↓ 2 callersMethod_init_rule
Initialize rule, key_indicator, comparison_func, and best score. Here is the rule to determine which rule is used for key indicator w
lavis/common/annotator/uniformer/mmcv/runner/hooks/evaluation.py:153
↓ 2 callersFunction_initialize
(module, cfg, wholemodule=False)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:511
↓ 2 callersFunction_jpegflag
(flag='color', channel_order='bgr')
lavis/common/annotator/uniformer/mmcv/image/io.py:69
↓ 2 callersMethod_latent_to_image
(self, latents)
lavis/models/blip_diffusion_models/blip_diffusion.py:740
↓ 2 callersMethod_load_from_state_dict
Override default load function. AWS overrides the function _load_from_state_dict to recover weight_gamma and weight_beta if they are
lavis/common/annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:114
↓ 2 callersMethod_merge_a_into_b
merge dict ``a`` into dict ``b`` (non-inplace). Values in ``a`` will overwrite ``b``. ``b`` is copied first to avoid in-place modific
lavis/common/annotator/uniformer/mmcv/utils/config.py:274
↓ 2 callersFunction_module_list
(module, flatten_sequential=False)
lavis/models/timesformer/features.py:123
↓ 2 callersFunction_pillow2array
Convert a pillow image to numpy array. Args: img (:obj:`PIL.Image.Image`): The image loaded using PIL flag (str): Flags specifyin
lavis/common/annotator/uniformer/mmcv/image/io.py:85
↓ 2 callersMethod_predict_class
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/blip2_models/blip2_t5_instruct.py:503
↓ 2 callersMethod_predict_class
( self, samples, candidates, n_segments=1, )
lavis/models/blip2_models/blip2_vicuna_instruct.py:476
← previousnext →301–400 of 3,633, ranked by callers