MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 2 callersMethodget_num_layer
(self, var_name="")
lavis/models/eva_vit.py:372
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
lavis/models/ulip_models/utils/tokenizer.py:40
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
lavis/models/clip_models/tokenizer.py:58
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
lavis/common/annotator/midas/midas/vit.py:166
↓ 2 callersMethodget_regular_lr
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:71
↓ 2 callersMethodget_regular_momentum
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:55
↓ 2 callersFunctionget_same_padding
(x: int, k: int, s: int, d: int)
lavis/models/timesformer/vit_utils.py:129
↓ 2 callersFunctionget_same_padding
(x: int, k: int, s: int, d: int)
lavis/models/timesformer/conv2d_same.py:39
↓ 2 callersMethodget_state_dict
(self, url_or_filename, **kwargs)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2505
↓ 2 callersFunctionget_torchvision_models
()
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:172
↓ 2 callersMethodget_warmup_lr
(self, cur_iters)
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:85
↓ 2 callersMethodget_warmup_momentum
(self, cur_iters)
lavis/common/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:71
↓ 2 callersMethodhas_overflow
Check if params contain overflow.
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:349
↓ 2 callersFunctionhook
(model, input, output)
lavis/common/annotator/midas/midas/vit.py:160
↓ 2 callersFunctionimage_transform
( image_size: int, is_train: bool, mean: Optional[Tuple[float, ...]] = None, std: Optional[Tup
lavis/models/clip_models/transform.py:68
↓ 2 callersMethodimport_wandb
(self)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:25
↓ 2 callersMethodinit_Qformer
(cls, num_query_token, modality_width, cross_attention_freq=2, pretrained_qformer=None, load_attention=False,
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2463
↓ 2 callersMethodinit_tokenizer
(cls)
lavis/models/alpro_models/__init__.py:21
↓ 2 callersMethodinit_weights
(self)
lavis/common/annotator/uniformer/mmcv/ops/modulated_deform_conv.py:192
↓ 2 callersFunctioninv_freq_bands
( num_bands: int, temperature: float = 100000.0, step: int = 2, dtype: torch.dtype = torch.flo
lavis/models/clip_models/timm_model.py:266
↓ 2 callersFunctionis_dist_avail_and_initialized
()
lavis/models/ulip_models/utils/utils.py:65
↓ 2 callersFunctionis_list_of
Check whether it is a list of some type. A partial method of :func:`is_seq_of`.
lavis/common/annotator/uniformer/mmcv/utils/misc.py:152
↓ 2 callersFunctionis_method_overridden
Check if a method of base class is overridden in derived class. Args: method (str): the method name to check. base_class (type):
lavis/common/annotator/uniformer/mmcv/utils/misc.py:348
↓ 2 callersFunctionis_static_pad
(kernel_size: int, stride: int = 1, dilation: int = 1, **_)
lavis/models/timesformer/vit_utils.py:134
↓ 2 callersFunctioniter_cast
Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type.
lavis/common/annotator/uniformer/mmcv/utils/misc.py:87
↓ 2 callersMethodjoin_path
Concatenate all file paths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:281
↓ 2 callersFunctionlast_zero_init
(m)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/context_block.py:9
↓ 2 callersMethodload_checkpoint
Load from a finetuned checkpoint. This should expect no mismatch in the model keys and the checkpoint keys.
lavis/models/base_model.py:29
↓ 2 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/runner/checkpoint.py:41
↓ 2 callersMethodlog_config
(self)
lavis/runners/runner_base.py:668
↓ 2 callersFunctionlog_string
(str)
main.py:147
↓ 2 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors. See Alg. 1 in paper.
lavis/common/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:14
↓ 2 callersFunctionlovasz_hinge_flat
Binary Lovasz hinge loss. Args: logits (torch.Tensor): [P], logits at each prediction (between -infty and +infty). la
lavis/common/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:59
↓ 2 callersFunctionlovasz_softmax_flat
Multi-class Lovasz-Softmax loss. Args: probs (torch.Tensor): [P, C], class probabilities at each prediction (between 0 and 1)
lavis/common/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:128
↓ 2 callersFunctionmeasure_gpu
(model, input_token, iter_num, device_id)
main.py:20
↓ 2 callersFunctionmove_to_cuda
(sample)
lavis/datasets/data_utils.py:71
↓ 2 callersFunctionmulti_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/mmseg/apis/test.py:106
↓ 2 callersFunctionnode_to_dict
(node)
lavis/common/config.py:169
↓ 2 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:250
↓ 2 callersFunctionnorm_cdf
(x)
lavis/common/annotator/uniformer/mmseg/models/utils/weight_init.py:14
↓ 2 callersFunctionnorm_cdf
(x)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:628
↓ 2 callersFunctionnorm_cdf
(x)
lavis/models/timesformer/vit_utils.py:32
↓ 2 callersFunctionnorm_cdf
(x)
lavis/models/clip_models/timm_model.py:509
↓ 2 callersFunctionparams_to_string
Convert parameter number into a string. Args: num_params (float): Parameter number to be converted. units (str | None): Converted
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:161
↓ 2 callersFunctionparse
(x)
lavis/common/annotator/uniformer/mmcv/utils/misc.py:16
↓ 2 callersFunctionparse_args
PARAMETERS
main.py:130
↓ 2 callersFunctionpatch_device
(module)
lavis/models/clip_models/model.py:1116
↓ 2 callersFunctionpatch_float
(module)
lavis/models/clip_models/model.py:1144
↓ 2 callersMethodpre_caption
(self, caption)
lavis/processors/instruction_text_processors.py:481
↓ 2 callersMethodpre_pipeline
Prepare results dict for pipeline.
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:170
↓ 2 callersMethodpredict
(self, samples)
lavis/models/clip_models/model.py:640
↓ 2 callersMethodpreload
(self, it)
lavis/datasets/datasets/dataloader_utils.py:75
↓ 2 callersFunctionprepare_sample
(samples, cuda_enabled=True)
lavis/datasets/data_utils.py:78
↓ 2 callersMethodprune_heads
(self, heads)
lavis/models/blip2_models/modeling_t5.py:376
↓ 2 callersMethodput
Write data to a given ``filepath`` with 'wb' mode. Note: ``put`` should create a directory if the directory of ``filepath``
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:1007
↓ 2 callersMethodput_text
Write data to a given ``filepath`` with 'w' mode. Note: ``put_text`` should create a directory if the directory of ``
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:1020
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:86
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:113
↓ 2 callersFunctionrel_roi_point_to_rel_img_point
Convert roi based relative point coordinates to image based absolute point coordinates. Args: rois (Tensor): RoIs or BBoxes, shape (N
lavis/common/annotator/uniformer/mmcv/ops/point_sample.py:216
↓ 2 callersFunctionrescale_size
Calculate the new size to be rescaled to. Args: old_size (tuple[int]): The old size (w, h) of image. scale (float | tuple[int]):
lavis/common/annotator/uniformer/mmcv/image/geometric.py:184
↓ 2 callersMethodresize_pos_embed
Resize pos_embed weights. Resize pos_embed using bicubic interpolate method. Args: pos_embed (torch.Tensor): pos_embed we
lavis/common/annotator/uniformer/mmseg/models/backbones/vit.py:392
↓ 2 callersMethodresume
(self, checkpoint, resume_optimizer=True, map_location='default')
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:345
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
lavis/models/blip2_models/modeling_llama.py:126
↓ 2 callersMethodrun_iter
(self, data_batch, train_mode, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/epoch_based_runner.py:24
↓ 2 callersFunctionsave_checkpoint
Save checkpoint to file. The checkpoint will have 3 fields: ``meta``, ``state_dict`` and ``optimizer``. By default ``meta`` will contain vers
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:634
↓ 2 callersMethodsave_checkpoint
(self, out_dir, filename_tmpl, save_op
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:197
↓ 2 callersFunctionscandir
Scan a directory to find the interested files. Args: dir_path (str | obj:`Path`): Path of the directory. suffix (str | tuple(str)
lavis/common/annotator/uniformer/mmcv/utils/path.py:39
↓ 2 callersFunctionscatter
Scatter inputs to target gpus. The only difference from original :func:`scatter` is to add support for :type:`~mmcv.parallel.DataContainer`.
lavis/common/annotator/uniformer/mmcv/parallel/scatter_gather.py:9
↓ 2 callersFunctionscatter
Scatters tensor across multiple GPUs.
lavis/common/annotator/uniformer/mmcv/parallel/_functions.py:6
↓ 2 callersMethodscatter
(self, inputs, kwargs, device_ids)
lavis/common/annotator/uniformer/mmcv/parallel/distributed.py:26
↓ 2 callersMethodshare_cross_attention
(self, model)
lavis/models/albef_models/albef_nlvr.py:198
↓ 2 callersFunctionshear_level_to_args
(MAX_LEVEL, replace_value)
lavis/processors/randaugment.py:230
↓ 2 callersMethodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor): The semantic segment
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:208
↓ 2 callersMethodsince_last_check
Time since the last checking. Either :func:`since_start` or :func:`since_last_check` is a checking operation. Returns (float
lavis/common/annotator/uniformer/mmcv/utils/timer.py:74
↓ 2 callersFunctionsingle_gpu_test
Test with single GPU. Args: model (nn.Module): Model to be tested. data_loader (utils.data.Dataloader): Pytorch data loader.
lavis/common/annotator/uniformer/mmseg/apis/test.py:34
↓ 2 callersMethodstart
Start the timer.
lavis/common/annotator/uniformer/mmcv/utils/timer.py:57
↓ 2 callersMethodstart
(self)
lavis/common/annotator/uniformer/mmcv/utils/progressbar.py:26
↓ 2 callersMethodstem
(self, x)
lavis/models/clip_models/model.py:226
↓ 2 callersMethodstep
(self, epoch=None)
lavis/models/ulip_models/pointbert/misc.py:156
↓ 2 callersFunctiontrack_progress
Track the progress of tasks execution with a progress bar. Tasks are done with a simple for-loop. Args: func (callable): The functio
lavis/common/annotator/uniformer/mmcv/utils/progressbar.py:64
↓ 2 callersMethodtrain_step
(self, *inputs, **kwargs)
lavis/common/annotator/uniformer/mmcv/parallel/data_parallel.py:47
↓ 2 callersFunctiontranslate_level_to_args
(translate_const, MAX_LEVEL, replace_value)
lavis/processors/randaugment.py:240
↓ 2 callersFunctiontrunc_normal_init
(module: nn.Module, mean: float = 0, std: float = 1,
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:73
↓ 2 callersFunctiontune_channel
(ch)
lavis/processors/randaugment.py:25
↓ 2 callersFunctionuniform_init
(module, a=0, b=1, bias=0)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:85
↓ 2 callersMethodupdate
(self, value, n=1)
lavis/common/logger.py:32
↓ 2 callersFunctionupdate_alpha_time_word
(alpha, bounds: Union[float, Tuple[float, float]], prompt_ind: int, word_inds: Opti
lavis/models/blip_diffusion_models/ptp_utils.py:316
↓ 2 callersMethodupdate_scale
update the current loss scale value when overflow happens.
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:372
↓ 2 callersMethodval_step
(self, *inputs, **kwargs)
lavis/common/annotator/uniformer/mmcv/parallel/data_parallel.py:69
↓ 2 callersFunctionwrap_fp16_model
Wrap the FP32 model to FP16. If you are using PyTorch >= 1.6, torch.cuda.amp is used as the backend, otherwise, original mmcv implementation
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:234
↓ 2 callersFunctionwrite_frame
(file_idx)
lavis/common/annotator/uniformer/mmcv/video/io.py:308
↓ 1 callersFunctionNEG_INF_DIAG
Returns a diagonal matrix of size [n, n]. The diagonal are all "-inf". This is for avoiding calculating the overlapped element in the Criss-C
lavis/common/annotator/uniformer/mmcv/ops/cc_attention.py:9
↓ 1 callersMethod__call__
(self, module)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:222
↓ 1 callersMethod__enter__
(self)
lavis/common/annotator/uniformer/mmcv/utils/timer.py:49
↓ 1 callersMethod__getattr__
(self, name)
lavis/common/annotator/uniformer/mmcv/utils/config.py:506
↓ 1 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/retrieval_datasets.py:45
↓ 1 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/vg_vqa_datasets.py:20
↓ 1 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/ocr_datasets.py:37
↓ 1 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/imagefolder_dataset.py:34
↓ 1 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/discriminatory_reasoning_datasets.py:102
← previousnext →501–600 of 3,633, ranked by callers