MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 1 callersFunctionget_input_device
(input)
lavis/common/annotator/uniformer/mmcv/parallel/_functions.py:51
↓ 1 callersMethodget_lr_scheduler_class
(cls, name)
lavis/common/registry.py:248
↓ 1 callersMethodget_lr_tags
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:92
↓ 1 callersFunctionget_mapper
(x: str, y: str, tokenizer, max_len=77)
lavis/models/blip_diffusion_models/ptp_utils.py:440
↓ 1 callersFunctionget_matrix
(size_x, size_y, gap)
lavis/models/blip_diffusion_models/ptp_utils.py:365
↓ 1 callersFunctionget_missing_parameters_message
Get a logging-friendly message to report parameter names (keys) that are in the model but not found in a checkpoint. Args: keys (
lavis/models/ulip_models/pointbert/checkpoint.py:9
↓ 1 callersFunctionget_mmcls_models
()
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:135
↓ 1 callersFunctionget_mmcls_models
()
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:198
↓ 1 callersMethodget_momentum_tags
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:102
↓ 1 callersMethodget_names
(self)
lavis/datasets/builders/__init__.py:275
↓ 1 callersFunctionget_onnxruntime_op_path
()
lavis/common/annotator/uniformer/mmcv/ops/info.py:27
↓ 1 callersMethodget_optimizer_params
(self, weight_decay, lr_scale=1)
lavis/models/base_model.py:107
↓ 1 callersMethodget_output
(self, device)
lavis/models/timesformer/features.py:117
↓ 1 callersFunctionget_padding_value
(padding, kernel_size, **kwargs)
lavis/models/timesformer/conv2d_same.py:43
↓ 1 callersFunctionget_palette
Get class palette (RGB) of a dataset.
lavis/common/annotator/uniformer/mmseg/core/evaluation/class_names.py:138
↓ 1 callersMethodget_palette_for_custom_classes
(self, class_names, palette=None)
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:287
↓ 1 callersMethodget_points_test
Sample points for testing. Find ``num_points`` most uncertain points from ``uncertainty_map``. Args: seg_logits (Tensor)
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:310
↓ 1 callersMethodget_points_train
Sample points for training. Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The uncertainties are calcu
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:256
↓ 1 callersMethodget_position_embedding
(self, h, w, h_kv
lavis/common/annotator/uniformer/mmcv/cnn/bricks/generalized_attention.py:166
↓ 1 callersFunctionget_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_per
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:388
↓ 1 callersFunctionget_priority
Get priority value. Args: priority (int or str or :obj:`Priority`): Priority. Returns: int: The priority value.
lavis/common/annotator/uniformer/mmcv/runner/priority.py:42
↓ 1 callersMethodget_random_ops
(self)
lavis/processors/randaugment.py:336
↓ 1 callersMethodget_random_ops
(self)
lavis/processors/randaugment.py:363
↓ 1 callersFunctionget_rank
()
lavis/models/ulip_models/utils/utils.py:79
↓ 1 callersFunctionget_redirected_url
Given a URL, returns the URL it redirects to or the original URL in case of no indirection
lavis/common/utils.py:80
↓ 1 callersFunctionget_refinement_mapper
(prompts, tokenizer, max_len=77)
lavis/models/blip_diffusion_models/ptp_utils.py:454
↓ 1 callersFunctionget_replacement_mapper
(prompts, tokenizer, max_len=77)
lavis/models/blip_diffusion_models/ptp_utils.py:521
↓ 1 callersFunctionget_replacement_mapper_
(x: str, y: str, tokenizer, max_len=77)
lavis/models/blip_diffusion_models/ptp_utils.py:485
↓ 1 callersFunctionget_sampler_cls
Get the type and mode of points sampler. Args: sampler_type (str): The type of points sampler. The valid value are "D-FPS", "
lavis/common/annotator/uniformer/mmcv/ops/points_sampler.py:37
↓ 1 callersFunctionget_shape_from_feature_map
Get spatial resolution of input feature map considering exporting to onnx mode. Args: x (torch.Tensor): Input tensor, shape (N, C, H,
lavis/common/annotator/uniformer/mmcv/ops/point_sample.py:168
↓ 1 callersMethodget_size
(self, width, height)
lavis/common/annotator/midas/midas/transforms.py:105
↓ 1 callersFunctionget_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:590
↓ 1 callersFunctionget_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:394
↓ 1 callersMethodget_step
Get the total training step/epoch.
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:74
↓ 1 callersMethodget_task_class
(cls, name)
lavis/common/registry.py:240
↓ 1 callersFunctionget_time_str
()
lavis/common/annotator/uniformer/mmcv/runner/utils.py:31
↓ 1 callersFunctionget_time_words_attention_alpha
(prompts, num_steps, cross_replace_steps: Union[float, Dict[str, Tuple[floa
lavis/models/blip_diffusion_models/ptp_utils.py:328
↓ 1 callersFunctionget_torchvision_models
()
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:109
↓ 1 callersFunctionget_traceback_matrix
(size_x, size_y)
lavis/models/blip_diffusion_models/ptp_utils.py:386
↓ 1 callersMethodget_triggered_stages
(self)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:73
↓ 1 callersFunctionget_unexpected_parameters_message
Get a logging-friendly message to report parameter names (keys) that are in the checkpoint but not found in the model. Args: keys
lavis/models/ulip_models/pointbert/checkpoint.py:26
↓ 1 callersFunctionglobal_align
(x, y, score)
lavis/models/blip_diffusion_models/ptp_utils.py:394
↓ 1 callersMethodglobal_avg
(self)
lavis/common/logger.py:109
↓ 1 callersFunctiongray2bgr
Convert a grayscale image to BGR image. Args: img (ndarray): The input image. Returns: ndarray: The converted BGR image.
lavis/common/annotator/uniformer/mmcv/image/colorspace.py:56
↓ 1 callersMethodhas_batch_norm
(self, module)
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:76
↓ 1 callersFunctionhead_tail_frame_sampling
(video_path, num_frames, target_height, target_width, start_time=None, end_time=None)
lavis/datasets/data_utils.py:316
↓ 1 callersMethodhue
Hue distortion.
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:838
↓ 1 callersFunctionimnormalize_
Inplace normalize an image with mean and std. Args: img (ndarray): Image to be normalized. mean (ndarray): The mean to be used fo
lavis/common/annotator/uniformer/mmcv/image/photometric.py:25
↓ 1 callersFunctionimpad
Pad the given image to a certain shape or pad on all sides with specified padding mode and padding value. Args: img (ndarray): Image
lavis/common/annotator/uniformer/mmcv/image/geometric.py:440
↓ 1 callersMethodimport_dvclive
(self)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/dvclive.py:41
↓ 1 callersMethodimport_mlflow
(self)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:51
↓ 1 callersFunctionimport_modules_from_strings
Import modules from the given list of strings. Args: imports (list | str | None): The given module names to be imported. allow_fa
lavis/common/annotator/uniformer/mmcv/utils/misc.py:39
↓ 1 callersMethodimport_neptune
(self)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:52
↓ 1 callersFunctionindex_points
Input: points: input points data, [B, N, C] idx: sample index data, [B, S] Return: new_points:, indexed points data,
lavis/models/ulip_models/pointbert/misc.py:22
↓ 1 callersFunctioninfer_abbr
Infer abbreviation from the class name. When we build a norm layer with `build_norm_layer()`, we want to preserve the norm type in variable n
lavis/common/annotator/uniformer/mmcv/cnn/bricks/norm.py:23
↓ 1 callersFunctioninfer_abbr
Infer abbreviation from the class name. This method will infer the abbreviation to map class types to abbreviations. Rule 1: If the clas
lavis/common/annotator/uniformer/mmcv/cnn/bricks/plugin.py:12
↓ 1 callersMethodinfer_scope
Infer the scope of registry. The name of the package where registry is defined will be returned. Example: # in mmdet/mod
lavis/common/annotator/uniformer/mmcv/utils/registry.py:125
↓ 1 callersMethodinfer_scope
Infer the scope of registry. The name of the package where registry is defined will be returned. Example: # in mmdet/model
lavis/models/ulip_models/utils/registry.py:69
↓ 1 callersFunctioninference_segmentor
Inference image(s) with the segmentor. Args: model (nn.Module): The loaded segmentor. imgs (str/ndarray or list[str/ndarray]): Ei
lavis/common/annotator/uniformer/mmseg/apis/inference.py:69
↓ 1 callersMethodinit_embed_
(self, data)
lavis/models/beats/quantizer.py:97
↓ 1 callersMethodinit_encoder_projection
(cls, enc_num_features, shared_qformer_num_features, load_proj_path=False, load_proj_type="")
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2404
↓ 1 callersMethodinit_image_encoder
(self, model_name, precision,
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:807
↓ 1 callersMethodinit_offset
(self)
lavis/common/annotator/uniformer/mmcv/ops/deform_conv.py:370
↓ 1 callersMethodinit_parameters
(self)
lavis/models/clip_models/model.py:204
↓ 1 callersMethodinit_parameters
(self)
lavis/models/clip_models/model.py:516
↓ 1 callersFunctioninit_pool
(process_num, initializer=None, initargs=None)
lavis/common/annotator/uniformer/mmcv/utils/progressbar.py:98
↓ 1 callersFunctioninit_segmentor
Initialize a segmentor from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
lavis/common/annotator/uniformer/mmseg/apis/inference.py:11
↓ 1 callersMethodinit_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:59
↓ 1 callersMethodinit_weights
(self, pretrained)
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:358
↓ 1 callersMethodinit_weights
Initialize weight of later layer.
lavis/common/annotator/uniformer/mmseg/models/utils/self_attention_block.py:93
↓ 1 callersMethodinit_weights
(self)
lavis/common/annotator/uniformer/mmcv/ops/saconv.py:81
↓ 1 callersMethodinit_weights
(self)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:258
↓ 1 callersMethodinit_weights
(self)
lavis/common/annotator/uniformer/mmcv/ops/modulated_deform_conv.py:240
↓ 1 callersMethodinit_weights
Default initialization for Parameters of Module.
lavis/common/annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:230
↓ 1 callersMethodinit_weights
(self)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/generalized_attention.py:403
↓ 1 callersMethodinit_weights
(self)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/conv_module.py:175
↓ 1 callersMethodinit_weights
(self)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/upsample.py:41
↓ 1 callersMethodinit_weights
(self, std=0.01, zeros_init=True)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/non_local.py:99
↓ 1 callersFunctioninitialize
Initialize a module. Args: module (``torch.nn.Module``): the module will be initialized. init_cfg (dict | list[dict]): initializa
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:550
↓ 1 callersMethodinitialize_parameters
(self)
lavis/models/ulip_models/ULIP_models.py:133
↓ 1 callersFunctioninterpolate_pos_embed
(model, state_dict, interpolation: str = 'bicubic', seq_dim=1)
lavis/models/clip_vit.py:206
↓ 1 callersFunctioninterpolate_pos_embed
(model, checkpoint_model)
lavis/models/eva_vit.py:386
↓ 1 callersFunctionintersect_and_union
Calculate intersection and Union. Args: pred_label (ndarray | str): Prediction segmentation map or predict result filename.
lavis/common/annotator/uniformer/mmseg/core/evaluation/metrics.py:25
↓ 1 callersFunctionis_filepath
(x)
lavis/common/annotator/uniformer/mmcv/utils/path.py:9
↓ 1 callersFunctionis_in_onnx_export_without_custom_ops
()
lavis/common/annotator/uniformer/mmcv/ops/point_sample.py:87
↓ 1 callersMethodis_last_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:67
↓ 1 callersFunctionis_main_process
()
lavis/models/ulip_models/utils/utils.py:85
↓ 1 callersFunctionis_rocm_pytorch
()
lavis/common/annotator/uniformer/mmcv/utils/parrots_wrapper.py:9
↓ 1 callersMethodis_scalar
Tell the input variable is a scalar or not. Args: val: Input variable. include_np (bool): Whether include 0-d np.ndar
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:39
↓ 1 callersMethodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:261
↓ 1 callersMethoditm_rank
(self, image_embeds, image_atts, encoder_input_ids, match_head="itm")
lavis/models/img2prompt_models/img2prompt_vqa.py:103
↓ 1 callersMethodkernel_normalizer
(self, mask)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:264
↓ 1 callersFunctionkmeans
(samples, num_clusters, num_iters=10, use_cosine_sim=False)
lavis/models/beats/quantizer.py:40
↓ 1 callersFunctionknn_point
Input: nsample: max sample number in local region xyz: all points, [B, N, C] new_xyz: query points, [B, S, C] Return:
lavis/models/ulip_models/pointbert/dvae.py:109
↓ 1 callersMethodlemmatizer
(self)
lavis/models/blip2_models/blip2_t5_instruct.py:715
↓ 1 callersMethodlemmatizer
(self)
lavis/models/blip2_models/blip2_t5.py:331
↓ 1 callersMethodlemmatizer
(self)
lavis/models/blip2_models/blip2_opt.py:278
↓ 1 callersMethodlemmatizer
(self)
lavis/models/blip2_models/blip2_vicuna_instruct.py:675
↓ 1 callersMethodlemmatizer
(self)
lavis/models/blip2_models/blip2.py:167
↓ 1 callersMethodlemmatizer
(self)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2108
← previousnext →1,001–1,100 of 3,633, ranked by callers