MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

Functionlovasz_hinge
Binary Lovasz hinge loss. Args: logits (torch.Tensor): [B, H, W], logits at each pixel (between -infty and +infty). l
lavis/common/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:83
Functionlovasz_softmax
Multi-class Lovasz-Softmax loss. Args: probs (torch.Tensor): [B, C, H, W], class probabilities at each prediction (between 0
lavis/common/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:171
Methodlr_scheduler
A property to get and create learning rate scheduler by split just in need.
lavis/runners/runner_base.py:133
Functionlut_transform
Transform array by look-up table. The function lut_transform fills the output array with values from the look-up table. Indices of the entrie
lavis/common/annotator/uniformer/mmcv/image/photometric.py:381
Functionmain_process
(func)
lavis/common/dist_utils.py:107
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
lavis/common/annotator/uniformer/mmseg/models/backbones/resnest.py:305
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``
lavis/common/annotator/uniformer/mmseg/models/backbones/resnext.py:139
Functionmask_cross_entropy
Calculate the CrossEntropy loss for masks. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of cl
lavis/common/annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:100
Functionmaster_only
(func)
lavis/common/annotator/uniformer/mmcv/runner/dist_utils.py:88
Methodmax_epoch
(self)
lavis/runners/runner_iter.py:57
Methodmax_epoch
(self)
lavis/runners/runner_base.py:268
Methodmax_epochs
int: Maximum training epochs.
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:175
Methodmax_iters
int: Maximum training iterations.
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:180
Functionmean_dice
Calculate Mean Dice (mDice) Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or list of predic
lavis/common/annotator/uniformer/mmseg/core/evaluation/metrics.py:172
Functionmean_fscore
Calculate Mean Intersection and Union (mIoU) Args: results (list[ndarray] | list[str]): List of prediction segmentation maps
lavis/common/annotator/uniformer/mmseg/core/evaluation/metrics.py:212
Functionmean_iou
Calculate Mean Intersection and Union (mIoU) Args: results (list[ndarray] | list[str]): List of prediction segmentation maps
lavis/common/annotator/uniformer/mmseg/core/evaluation/metrics.py:133
Methodmedian
(self)
lavis/common/logger.py:51
Methodmerge_from_dict
Merge list into cfg_dict. Merge the dict parsed by MultipleKVAction into this cfg. Examples: >>> options = {'model.backb
lavis/common/annotator/uniformer/mmcv/utils/config.py:550
Methodmin_lr
(self)
lavis/runners/runner_base.py:296
Methodmodel_cfg
(self)
lavis/common/config.py:140
Methodmodel_name
str: Name of the model, usually the module class name.
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:139
Methodmodule_dict
(self)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:179
Methodmodule_dict
(self)
lavis/models/ulip_models/utils/registry.py:116
Functionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
lavis/common/annotator/uniformer/mmcv/engine/test.py:44
Methodname
(self)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:171
Methodname
(self)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:31
Methodname
(self)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:823
Methodname
(self)
lavis/models/ulip_models/utils/registry.py:108
Functionnew_forward
(*args, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:296
Functionnew_func
(*args, **kwargs)
lavis/common/annotator/uniformer/mmcv/utils/misc.py:304
Functionnew_func
(*args, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:91
Functionnms
Dispatch to either CPU or GPU NMS implementations. The input can be either torch tensor or numpy array. GPU NMS will be used if the input is
lavis/common/annotator/uniformer/mmcv/ops/nms.py:118
Functionnms
(x, t, s)
lavis/common/annotator/hed/__init__.py:117
Functionnms_bev
NMS function GPU implementation (for BEV boxes). The overlap of two boxes for IoU calculation is defined as the exact overlapping area of the
lavis/common/annotator/uniformer/mmcv/ops/iou3d.py:31
Functionnms_match
Matched dets into different groups by NMS. NMS match is Similar to NMS but when a bbox is suppressed, nms match will record the indice of sup
lavis/common/annotator/uniformer/mmcv/ops/nms.py:339
Functionnms_normal_bev
Normal NMS function GPU implementation (for BEV boxes). The overlap of two boxes for IoU calculation is defined as the exact overlapping area of
lavis/common/annotator/uniformer/mmcv/ops/iou3d.py:65
Functionnms_rotated
Performs non-maximum suppression (NMS) on the rotated boxes according to their intersection-over-union (IoU). Rotated NMS iteratively removes
lavis/common/annotator/uniformer/mmcv/ops/nms.py:376
Methodno_weight_decay
(self)
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:373
Methodno_weight_decay
(self)
lavis/models/vit.py:262
Methodno_weight_decay
(self)
lavis/models/timesformer/vit.py:395
Functionnone_level_to_args
(level)
lavis/processors/randaugment.py:266
Functionnorm_flops_counter_hook
(module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:430
Functionnormalize
Args: clip (torch.tensor): Video clip to be normalized. Size is (C, T, H, W) mean (tuple): pixel RGB mean. Size is (3) st
lavis/processors/functional_video.py:93
Functionnow
()
lavis/common/utils.py:37
Functionnpmax
(array)
lavis/common/annotator/openpose/util.py:159
Methodnum_uncond_att_layers
(self)
lavis/models/blip_diffusion_models/ptp_utils.py:84
Functionobj_from_dict
Initialize an object from dict. The dict must contain the key "type", which indicates the object type, it can be either a string or type, suc
lavis/common/annotator/uniformer/mmcv/runner/utils.py:35
Methodopened
bool: Indicate whether the video is opened.
lavis/common/annotator/uniformer/mmcv/video/io.py:85
Methodoptimizer
(self)
lavis/runners/runner_base.py:100
FunctionpadRightDownCorner
(img, stride, padValue)
lavis/common/annotator/openpose/util.py:7
Methodpad_dims
(self)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:80
Functionpad_same
(x, k, s, d=(1, 1), value=0)
lavis/models/timesformer/vit_utils.py:140
Methodpadding
(self, seq)
lavis/processors/gpt_processors.py:128
Methodpadding_value
(self)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:76
Methodparallelize
(self, device_map=None)
lavis/models/blip2_models/modeling_t5.py:1482
Methodparallelize
(self, device_map=None)
lavis/models/blip2_models/modeling_t5.py:1687
Methodparallelize
(self, device_map=None)
lavis/models/blip2_models/modeling_t5.py:1983
Functionparse
(x)
lavis/models/clip_vit.py:199
Functionparse
(x)
lavis/models/timesformer/vit_utils.py:89
Functionparse_version_info
Parse a version string into a tuple. Args: version_str (str): The version string. length (int): The maximum number of version lev
lavis/common/annotator/uniformer/mmcv/version.py:5
Functionpil_loader
(path)
lavis/processors/ulip_processors.py:36
Functionpixel_group
Group pixels into text instances, which is widely used text detection methods. Arguments: score (np.array or Tensor): The foreground
lavis/common/annotator/uniformer/mmcv/ops/pixel_group.py:10
Methodpndm_scheduler
(self)
lavis/models/blip_diffusion_models/blip_diffusion.py:174
Functionpoints_in_boxes_all
Find all boxes in which each point is (CUDA). Args: points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR/DEPTH coordinate boxes (
lavis/common/annotator/uniformer/mmcv/ops/points_in_boxes.py:95
Functionpoints_in_boxes_cpu
Find all boxes in which each point is (CPU). The CPU version of :meth:`points_in_boxes_all`. Args: points (torch.Tensor): [B, M, 3],
lavis/common/annotator/uniformer/mmcv/ops/points_in_boxes.py:58
Functionpoints_in_boxes_part
Find the box in which each point is (CUDA). Args: points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR/DEPTH coordinate boxes (to
lavis/common/annotator/uniformer/mmcv/ops/points_in_boxes.py:11
Functionpool_flops_counter_hook
(module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:425
Methodposition
int: Current cursor position, indicating frame decoded.
lavis/common/annotator/uniformer/mmcv/video/io.py:120
Functionposterize
Posterize an image (reduce the number of bits for each color channel) Args: img (ndarray): Image to be posterized. bits (int): Nu
lavis/common/annotator/uniformer/mmcv/image/photometric.py:85
Functionposterize_func
same output as PIL.ImageOps.posterize
lavis/processors/randaugment.py:192
Functionpred_squares
shape = [height, width]
lavis/common/annotator/mlsd/utils.py:89
Methodpredict
(self, samples)
lavis/models/blip_models/blip_nlvr.py:128
Methodpredict
(self, samples)
lavis/models/blip_models/blip_classification.py:142
Methodpredict
(self, samples)
lavis/models/albef_models/albef_classification.py:149
Methodpredict
(self, samples)
lavis/models/albef_models/albef_nlvr.py:213
Methodpredict
( self, samples, candidates=None, n_segments=1, max_length=10,
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:1613
Methodpredict
(self, samples)
lavis/models/alpro_models/alpro_qa.py:109
Methodpredict_answers
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/albef_models/albef_vqa.py:228
Methodpredict_answers
( self, samples, num_beams=5, inference_method="generate", max_len=10,
lavis/models/blip2_models/blip2_t5_instruct.py:415
Methodpredict_answers
( self, samples, num_beams=5, inference_method="generate", max_len=10,
lavis/models/blip2_models/blip2_t5.py:247
Methodpredict_answers
( self, samples, num_beams=5, inference_method="generate", max_len=10,
lavis/models/blip2_models/blip2_vicuna_instruct.py:386
Methodpredict_answers
( self, samples, num_beams=5, inference_method="generate", max_len=10,
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:1511
Methodpredict_answers
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/pnp_vqa_models/pnp_vqa.py:232
Methodpredict_class
( self, samples, candidates, n_segments=1, )
lavis/models/blip2_models/blip2_t5_instruct.py:463
Methodpredict_class
( self, samples, candidates, n_segments=1, )
lavis/models/blip2_models/blip2_vicuna_instruct.py:434
Methodprepare_LLM_input
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/img2prompt_models/img2prompt_vqa.py:464
Methodprepare_decoder_input_ids_from_labels
(self, labels: torch.Tensor)
lavis/models/blip2_models/modeling_t5.py:1923
Methodprepare_inputs_for_generation
( self, input_ids, attention_mask=None, **model_kwargs )
lavis/models/med.py:1106
Methodprepare_inputs_for_generation
( self, input_ids, past=None, attention_mask=None, **model_kwargs )
lavis/models/med.py:1266
Methodprepare_inputs_for_generation
( self, input_ids, query_embeds, past=None, attention_mask=None, **model_kwargs )
lavis/models/blip2_models/Qformer.py:1097
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
lavis/models/blip2_models/modeling_llama.py:731
Methodprepare_inputs_for_generation
( self, input_ids, past=None, attention_mask=None, head_mask=None,
lavis/models/blip2_models/modeling_t5.py:1895
Methodprepare_inputs_for_generation
( self, input_ids=None, query_embeds=None, past=None, attention_mask=N
lavis/models/blip2_models/modeling_opt.py:1079
Methodpreprocess
( self, source: torch.Tensor, fbank_mean: float = 15.41663, fb
lavis/models/beats/BEATs.py:118
Methodpretty_print
(self)
lavis/common/config.py:143
Methodpretty_text
(self)
lavis/common/annotator/uniformer/mmcv/utils/config.py:407
Methodprint_help
(self)
lavis/common/config.py:256
Methodprompts_construction
( self, samples, question_type="neural", num_caps_per_img=30, num_ques
lavis/models/img2prompt_models/img2prompt_vqa.py:437
Methodput
Write data to a given ``filepath`` with 'wb' mode. Note: ``put`` will create a directory if the directory of ``filepath``
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:538
Methodput_text
Save data to a given ``filepath``. Args: obj (str): Data to be written. filepath (str or Path): Path to write data.
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:190
← previousnext →3,301–3,400 of 3,633, ranked by callers