MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 4 callersFunction_make_fusion_block
(features, use_bn)
lavis/common/annotator/midas/midas/dpt_depth.py:15
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
lavis/models/clip_models/model.py:195
↓ 4 callersFunction_make_vit_b16_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11], vit_features=
lavis/common/annotator/midas/midas/vit.py:183
↓ 4 callersFunction_ntuple
(n)
lavis/common/annotator/uniformer/mmcv/utils/misc.py:14
↓ 4 callersMethod_save_checkpoint
(self, cur_iters, is_best=False, is_last=False)
lavis/runners/runner_iter.py:169
↓ 4 callersMethod_save_checkpoint
Save the checkpoint at the current epoch.
lavis/runners/runner_base.py:586
↓ 4 callersMethod_set_real_position
(self, frame_id)
lavis/common/annotator/uniformer/mmcv/video/io.py:127
↓ 4 callersMethod_tokenize_text
(self, text_input, with_query=True)
lavis/models/blip_diffusion_models/blip_diffusion.py:863
↓ 4 callersFunctionall_gather_with_grad
Performs all_gather operation on the provided tensors. Graph remains connected for backward grad computation.
lavis/models/base_model.py:223
↓ 4 callersMethodattention
(self, x: torch.Tensor)
lavis/models/clip_vit.py:132
↓ 4 callersMethodaverage
Average latest n values or all values.
lavis/common/annotator/uniformer/mmcv/runner/log_buffer.py:33
↓ 4 callersMethodbuild_processors
(self)
lavis/datasets/builders/base_dataset_builder.py:62
↓ 4 callersMethodbuild_project
Build projection layer for key/query/value/out.
lavis/common/annotator/uniformer/mmseg/models/utils/self_attention_block.py:99
↓ 4 callersFunctioncheck_file_exist
(filename, msg_tmpl='file "{}" does not exist')
lavis/common/annotator/uniformer/mmcv/utils/path.py:21
↓ 4 callersMethodclear_output
(self)
lavis/common/annotator/uniformer/mmcv/runner/log_buffer.py:20
↓ 4 callersMethodcrop
Crop from ``img``
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:523
↓ 4 callersMethoddefault_config_path
(cls, model_type)
lavis/models/base_model.py:75
↓ 4 callersFunctiondownload_file
(url, filename)
lavis/datasets/download_scripts/download_nocaps.py:39
↓ 4 callersFunctiondownload_url
Download a file from a url and place it in root. Args: url (str): URL to download file from root (str): Directory to place downloa
lavis/common/utils.py:169
↓ 4 callersMethoddump_to_fileobj
(self, obj, file, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/base.py:17
↓ 4 callersFunctionenhance_level_to_args
(MAX_LEVEL)
lavis/processors/randaugment.py:223
↓ 4 callersFunctioneval_metrics
Calculate evaluation metrics Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or list of predic
lavis/common/annotator/uniformer/mmseg/core/evaluation/metrics.py:257
↓ 4 callersMethodevaluate
(self, cur_epoch="best", skip_reload=False)
lavis/runners/runner_base.py:436
↓ 4 callersMethodevaluate
Evaluate the results. Args: runner (:obj:`mmcv.Runner`): The underlined training runner. results (list): Output resul
lavis/common/annotator/uniformer/mmcv/runner/hooks/evaluation.py:354
↓ 4 callersFunctionfarthest_point_sample
Input: xyz: pointcloud data, [N, D] npoint: number of samples Return: centroids: sampled pointcloud index, [npoint, D
lavis/processors/ulip_processors.py:49
↓ 4 callersMethodforward_ctx_embeddings
(self, input_image, text_input, ratio=None)
lavis/models/blip_diffusion_models/blip_diffusion.py:878
↓ 4 callersMethodfrom_config
(cls, cfg, from_pretrained=False)
lavis/models/med.py:1376
↓ 4 callersMethodget
Get the registry record. Args: key (str): The class name in string format. Returns: class: The corresponding
lavis/common/annotator/uniformer/mmcv/utils/registry.py:186
↓ 4 callersMethodget
Get value by key at specified index (indices) if idx == None, returns value for key at each output index if idx is an integer, return
lavis/models/timesformer/features.py:36
↓ 4 callersMethodget_attention_mask
(self, seq, pad_token=-1)
lavis/processors/gpt_processors.py:85
↓ 4 callersMethodget_graph_feature
(coor_q, x_q, coor_k, x_k)
lavis/models/ulip_models/pointbert/dvae.py:47
↓ 4 callersFunctionget_logger
Initialize and get a logger by name. If the logger has not been initialized, this method will initialize the logger by adding one or two hand
lavis/common/annotator/uniformer/mmcv/utils/logging.py:9
↓ 4 callersMethodget_mode
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:59
↓ 4 callersFunctionget_padding
(kernel_size: int, stride: int = 1, dilation: int = 1, **_)
lavis/models/timesformer/vit_utils.py:100
↓ 4 callersFunctionimread
Read an image. Args: img_or_path (ndarray or str or Path): Either a numpy array or str or pathlib.Path. If it is a numpy arra
lavis/common/annotator/uniformer/mmcv/image/io.py:140
↓ 4 callersMethodinit_ln
(cls, num_features, load_ln_path=False, load_ln_type="")
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2376
↓ 4 callersMethodinit_vicuna_projection
(cls, input_size, output_size, load_projection_path=False, load_projection_type="", projection_key=None)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2432
↓ 4 callersMethodis_last_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:70
↓ 4 callersFunctionis_serializable
This function checks if the provided value can be serialized into a JSON string.
lavis/common/utils.py:444
↓ 4 callersMethodload_from_fileobj
(self, file, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/base.py:13
↓ 4 callersFunctionload_state_dict
(checkpoint_path, use_ema=False)
lavis/models/timesformer/helpers.py:24
↓ 4 callersMethodlog_stats
(self, stats, split_name)
lavis/runners/runner_base.py:659
↓ 4 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number to the nearest value that can be divisible by the divisor. It is taken from
lavis/common/annotator/uniformer/mmseg/models/utils/make_divisible.py:1
↓ 4 callersFunctionmkdir_or_exist
(dir_name, mode=0o777)
lavis/common/annotator/uniformer/mmcv/utils/path.py:26
↓ 4 callersFunctionnp2tmp
Save ndarray to local numpy file. Args: array (ndarray): Ndarray to save. temp_file_name (str): Numpy file name. If 'temp_file_na
lavis/common/annotator/uniformer/mmseg/apis/test.py:14
↓ 4 callersFunctionquant_noise
Wraps modules and applies quantization noise to the weights for subsequent quantization with Iterative Product Quantization as described
lavis/models/beats/modules.py:121
↓ 4 callersFunctionscatter_kwargs
Scatter with support for kwargs dictionary.
lavis/common/annotator/uniformer/mmcv/parallel/scatter_gather.py:49
↓ 4 callersFunctiontile
(x, dim, n_tile)
lavis/models/base_model.py:259
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/formating.py:11
↓ 4 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/common/annotator/uniformer/mmseg/models/utils/weight_init.py:48
↓ 3 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/vsr_datasets.py:74
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
lavis/common/annotator/uniformer/mmseg/models/backbones/resnest.py:291
↓ 3 callersMethod__init__
(self, in_channels=3, base_channels=64, num_stages=5,
lavis/common/annotator/uniformer/mmseg/models/backbones/unet.py:277
↓ 3 callersMethod__init__
(self, in_channels=3, num_channels=(32, 64, 128), num_block
lavis/common/annotator/uniformer/mmseg/models/backbones/cgnet.py:215
↓ 3 callersMethod__init__
(self, in_channels=3, downsample_dw_channels=(32, 48), glob
lavis/common/annotator/uniformer/mmseg/models/backbones/fast_scnn.py:296
↓ 3 callersMethod__init__
(self)
lavis/common/annotator/uniformer/mmcv/ops/points_sampler.py:165
↓ 3 callersMethod__init__
(self, *args, **kwargs)
lavis/common/annotator/uniformer/mmcv/ops/deprecated_wrappers.py:11
↓ 3 callersMethod__init__
(self, in_channels, out_channels, **kwargs)
lavis/common/annotator/uniformer/mmcv/ops/merge_cells.py:123
↓ 3 callersMethod__init__
(self, grad_clip=None)
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:24
↓ 3 callersMethod__init__
(self, in_channels, sub_sample=False, conv_cfg=dict(type='C
lavis/common/annotator/uniformer/mmcv/cnn/bricks/non_local.py:226
↓ 3 callersMethod__init__
(self, embed_dims=256, feedforward_channels=1024, num_fcs=2
lavis/common/annotator/uniformer/mmcv/cnn/bricks/transformer.py:234
↓ 3 callersMethod__init__
(self, start_index=1)
lavis/common/annotator/midas/midas/vit.py:10
↓ 3 callersMethod__init__
(self, vis_processor, text_processor, vis_root, ann_paths)
lavis/datasets/datasets/video_caption_datasets.py:97
↓ 3 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/retrieval_datasets.py:30
↓ 3 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
lavis/models/vit.py:29
↓ 3 callersMethod__init__
(self, feature_info: List[Dict], out_indices: Tuple[int])
lavis/models/timesformer/features.py:22
↓ 3 callersMethod__init__
(self, prompt="", max_words=50)
lavis/processors/blip_processors.py:30
↓ 3 callersFunction_auto_contrast_channel
(im, c, cutoff)
lavis/common/annotator/uniformer/mmcv/image/photometric.py:257
↓ 3 callersMethod_convert_node_to_json
(self, node)
lavis/common/config.py:161
↓ 3 callersMethod_init
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:84
↓ 3 callersMethod_init_latent
(self, latent, height, width, generator, batch_size)
lavis/models/blip_diffusion_models/blip_diffusion.py:322
↓ 3 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:450
↓ 3 callersFunction_make_divisible
This function is taken from the original tf repo. It ensures that all layers have a channel number that is divisible by 8 It can be seen
lavis/common/annotator/mlsd/models/mbv2_mlsd_tiny.py:71
↓ 3 callersFunction_make_divisible
This function is taken from the original tf repo. It ensures that all layers have a channel number that is divisible by 8 It can be seen
lavis/common/annotator/mlsd/models/mbv2_mlsd_large.py:72
↓ 3 callersFunction_make_encoder
(backbone, features, use_pretrained, groups=1, expand=False, exportable=True, hooks=None, use_vit_only=False,
lavis/common/annotator/midas/midas/blocks.py:11
↓ 3 callersMethod_make_layer
(self, in_channels, out_channels, blocks,
lavis/common/annotator/uniformer/mmseg/models/backbones/fast_scnn.py:148
↓ 3 callersMethod_make_stage
Make each stage.
lavis/common/annotator/uniformer/mmseg/models/backbones/hrnet.py:454
↓ 3 callersMethod_make_transition_layer
Make transition layer.
lavis/common/annotator/uniformer/mmseg/models/backbones/hrnet.py:371
↓ 3 callersMethod_register_module
(self, module_class, module_name=None, force=False)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:235
↓ 3 callersMethod_register_module
(self, module_class, module_name=None, force=False)
lavis/models/ulip_models/utils/registry.py:168
↓ 3 callersFunction_scale_channel
Scale the data in the corresponding channel.
lavis/common/annotator/uniformer/mmcv/image/photometric.py:145
↓ 3 callersMethod_sync_params
(self)
lavis/common/annotator/uniformer/mmcv/parallel/distributed_deprecated.py:37
↓ 3 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class, ...)
lavis/common/annotator/uniformer/mmseg/models/losses/accuracy.py:4
↓ 3 callersFunctionallreduce_params
Allreduce parameters. Args: params (list[torch.Parameters]): List of parameters or buffers of a model. coalesce (bool
lavis/common/annotator/uniformer/mmcv/runner/dist_utils.py:99
↓ 3 callersFunctionapply_rot_embed
(x: torch.Tensor, sin_emb, cos_emb)
lavis/models/clip_models/timm_model.py:434
↓ 3 callersMethodattention
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
lavis/models/clip_models/model.py:279
↓ 3 callersMethodbackward
(ctx, *grads)
lavis/models/base_model.py:217
↓ 3 callersFunctioncolor_val
Convert various input to color tuples. Args: color (:obj:`Color`/str/tuple/int/ndarray): Color inputs Returns: tuple[int]: A
lavis/common/annotator/uniformer/mmcv/visualization/color.py:24
↓ 3 callersFunctionconvert_video
Convert a video with ffmpeg. This provides a general api to ffmpeg, the executed command is:: `ffmpeg -y <pre_options> -i <in_file> <opt
lavis/common/annotator/uniformer/mmcv/video/processing.py:11
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:84
↓ 3 callersMethodeval_epoch
Evaluate the model on a given split. Args: split_name (str): name of the split to evaluate on. cur_epoch (in
lavis/runners/runner_base.py:464
↓ 3 callersMethodevery_n_epochs
(self, runner, n)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:55
↓ 3 callersMethodforward_train
Placeholder for Forward function for training.
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:51
↓ 3 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:136
↓ 3 callersFunctionfps
Input: xyz: pointcloud data, [B, N, 3] npoint: number of samples Return: centroids: sampled pointcloud index, [B, npo
lavis/models/ulip_models/pointbert/misc.py:40
↓ 3 callersFunctionfreeze_batch_norm_2d
Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is itself an instance of eithe
lavis/models/clip_models/utils.py:14
↓ 3 callersMethodgenerate
( self, samples, use_nucleus_sampling=False, num_beams=5, max_length=2
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:1098
↓ 3 callersMethodget
Get the registry record. Args: key (str): The class name in string format. Returns: class: The corresponding c
lavis/models/ulip_models/utils/registry.py:123
↓ 3 callersMethodget_builder_class
(cls, name)
lavis/common/registry.py:232
↓ 3 callersFunctionget_class_weight
Get class weight for loss function. Args: class_weight (list[float] | str | None): If class_weight is a str, take it as a fil
lavis/common/annotator/uniformer/mmseg/models/losses/utils.py:8
← previousnext →201–300 of 3,633, ranked by callers