MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:25
↓ 7 callersMethod__init__
(self, *, bias=0, bias_prob=None, layer=None)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:134
↓ 7 callersMethod__init__
( self, hidden_size: int, intermediate_size: int, hidden_act: str, )
lavis/models/blip2_models/modeling_llama.py:144
↓ 7 callersMethod__setattr__
(self, name, value)
lavis/common/annotator/uniformer/mmcv/utils/config.py:512
↓ 7 callersMethod_build_proc_from_cfg
(cfg)
lavis/datasets/builders/base_dataset_builder.py:86
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
lavis/models/blip2_models/modeling_opt.py:167
↓ 7 callersMethodbuild
(self, *args, **kwargs)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:211
↓ 7 callersMethodclear
(self)
lavis/common/annotator/uniformer/mmcv/runner/log_buffer.py:15
↓ 7 callersMethodencode_image
(self, image)
lavis/models/clip_models/model.py:552
↓ 7 callersMethodencode_text
(self, text)
lavis/models/clip_models/model.py:555
↓ 7 callersMethodforward_automask
(self, tokenized_text, visual_embeds, **kwargs)
lavis/models/med.py:1388
↓ 7 callersMethodgenerate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/blip2_models/blip2_t5.py:159
↓ 7 callersMethodinit_weights
(self, pretrained=None)
lavis/common/annotator/uniformer/mmcv/cnn/vgg.py:125
↓ 7 callersFunctionis_dist_avail_and_initialized
()
lavis/common/dist_utils.py:33
↓ 7 callersFunctionis_main_process
()
lavis/common/dist_utils.py:53
↓ 7 callersMethodjoin_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:1079
↓ 7 callersMethodload_state_dict
(self, state_dict, strict=True)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2537
↓ 7 callersFunctionobsolete_torch_version
(torch_version, version_threshold)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/wrappers.py:24
↓ 7 callersMethodtranspose_for_scores
(self, x)
lavis/models/med.py:176
↓ 7 callersMethodtranspose_for_scores
(self, x)
lavis/models/blip_models/nlvr_encoder.py:140
↓ 7 callersMethodtranspose_for_scores
(self, x)
lavis/models/blip2_models/Qformer.py:161
↓ 7 callersFunctionxavier_init
(module, gain=1, bias=0, distribution='normal')
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:55
↓ 6 callersFunctionULIP_PointBERT
(ulip_v=2)
lavis/models/ulip_models/ULIP_models.py:191
↓ 6 callersMethod__init__
(self, in_c1, in_c2, out_c1, out_c2, upscale = True)
lavis/common/annotator/mlsd/models/mbv2_mlsd_tiny.py:10
↓ 6 callersMethod__init__
(self, in_c1, in_c2, out_c1, out_c2, upscale = True)
lavis/common/annotator/mlsd/models/mbv2_mlsd_large.py:10
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
lavis/models/eva_vit.py:45
↓ 6 callersMethod__init__
(self, prompts: List[str], words, tokenizer, device, threshold=.3, max_num_words=77)
lavis/models/blip_diffusion_models/ptp_utils.py:171
↓ 6 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
lavis/models/timesformer/vit.py:61
↓ 6 callersMethod__init__
( self, embed_dim: int, vision_cfg: CLIPVisionCfg, text_cfg: CLIPTextCfg,
lavis/models/clip_models/model.py:418
↓ 6 callersFunction_get_bases_name
(m)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:128
↓ 6 callersMethodbackward
(ctx, a=None)
lavis/common/annotator/uniformer/mmcv/ops/knn.py:73
↓ 6 callersMethodclip_grads
(self, params)
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:27
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
lavis/common/annotator/midas/midas/transforms.py:94
↓ 6 callersFunctionconvert_color_factory
(src, dst)
lavis/common/annotator/uniformer/mmcv/image/colorspace.py:275
↓ 6 callersFunctiondownload_and_extract_archive
( url: str, download_root: str, extract_root: Optional[str] = None, filename: Optional[str] =
lavis/common/utils.py:223
↓ 6 callersFunctionformat_param
(name, optim, param)
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:659
↓ 6 callersMethodforward
(self, x)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/wrappers.py:44
↓ 6 callersMethodforward_plugin
Forward function for plugins.
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:242
↓ 6 callersMethodget_loggable_tags
(self, runner, allow_scalar=True,
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:112
↓ 6 callersFunctionhas_method
Check whether the object has a method. Args: method (str): The method name to check. obj (object): The object to check. Retu
lavis/common/annotator/uniformer/mmcv/utils/misc.py:367
↓ 6 callersMethodinit_tokenizer
(cls)
lavis/models/albef_models/__init__.py:27
↓ 6 callersMethodinit_tokenizer
(cls, truncation_side="right")
lavis/models/blip2_models/blip2.py:31
↓ 6 callersMethodinit_vision_encoder
( self, model_name, img_size, drop_path_rate, use_grad_checkpoint, precision )
lavis/models/blip2_models/blip2.py:63
↓ 6 callersFunctionis_supported_instance
(module)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:540
↓ 6 callersMethodload_checkpoint
(self, filename, map_location='cpu', s
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:332
↓ 6 callersFunctionload_state_dict
(checkpoint_path: str, map_location="cpu")
lavis/models/clip_models/model.py:923
↓ 6 callersFunctionpoint_sample
A wrapper around :func:`grid_sample` to support 3D point_coords tensors Unlike :func:`torch.nn.functional.grid_sample` it assumes point_coords to
lavis/common/annotator/uniformer/mmcv/ops/point_sample.py:242
↓ 6 callersMethodpredict_answers
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/blip_models/blip_vqa.py:162
↓ 6 callersFunctionprint_log
Print a log message. Args: msg (str): The message to be logged. logger (logging.Logger | str | None): The logger to be used.
lavis/models/ulip_models/utils/logger.py:103
↓ 6 callersMethodprocessPunctuation
(self, inText)
lavis/common/vqa_tools/vqa_eval.py:249
↓ 6 callersMethodsample
Sample pixels that have high loss or with low prediction confidence. Args: seg_logit (torch.Tensor): segmentation logits, shape (
lavis/common/annotator/uniformer/mmseg/core/seg/sampler/ohem_pixel_sampler.py:30
↓ 6 callersMethodto_dict
(self)
lavis/common/config.py:165
↓ 6 callersMethodunwrap_dist_model
(self, model)
lavis/runners/runner_base.py:498
↓ 5 callersMethod__init__
(self, config: OPTConfig)
lavis/models/blip2_models/modeling_opt.py:820
↓ 5 callersFunction_is_tensor_video_clip
(clip)
lavis/processors/functional_video.py:13
↓ 5 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
lavis/common/annotator/midas/midas/blocks.py:49
↓ 5 callersMethod_set_lr
(self, runner, lr_groups)
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:58
↓ 5 callersMethod_set_momentum
(self, runner, momentum_groups)
lavis/common/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:35
↓ 5 callersFunctionannealing_cos
Calculate annealing cos learning rate. Cosine anneal from `weight * start + (1 - weight) * end` to `end` as percentage goes from 0.0 to 1.0.
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:627
↓ 5 callersFunctionbuild_activation_layer
Build activation layer. Args: cfg (dict): The activation layer config, which should contain: - type (str): Layer type.
lavis/common/annotator/uniformer/mmcv/cnn/bricks/activation.py:81
↓ 5 callersMethodchildren
(self)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:183
↓ 5 callersMethoddeparallelize
(self)
lavis/models/blip2_models/modeling_t5.py:1004
↓ 5 callersMethodforward_encoder
(self, samples)
lavis/models/blip_models/blip_vqa.py:104
↓ 5 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:76
↓ 5 callersMethodget
Read data from a given ``filepath`` with 'rb' mode. Note: There are two types of return values for ``get``, one is ``bytes``
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:976
↓ 5 callersFunctionget_word_inds
(text: str, word_place: int, tokenizer)
lavis/models/blip_diffusion_models/ptp_utils.py:464
↓ 5 callersMethodinit
(m)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:224
↓ 5 callersMethodinit_Qformer
(cls, num_query_token, vision_width, cross_attention_freq=2)
lavis/models/blip2_models/blip2.py:47
↓ 5 callersFunctionis_convertible_to_int
(value)
lavis/common/utils.py:454
↓ 5 callersFunctionis_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type): Expected typ
lavis/common/annotator/uniformer/mmcv/utils/misc.py:128
↓ 5 callersFunctionis_tuple_of
Check whether it is a tuple of some type. A partial method of :func:`is_seq_of`.
lavis/common/annotator/uniformer/mmcv/utils/misc.py:160
↓ 5 callersFunctionl2norm
(t)
lavis/models/beats/quantizer.py:21
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:109
↓ 5 callersFunctionnormal_
(data)
lavis/models/beats/backbone.py:765
↓ 5 callersMethodparallelize
(self, device_map=None)
lavis/models/blip2_models/modeling_t5.py:977
↓ 5 callersFunctionprint_log
Print a log message. Args: msg (str): The message to be logged. logger (logging.Logger | str | None): The logger to be used.
lavis/models/ulip_models/pointbert/logger.py:103
↓ 5 callersMethodprocessDigitArticle
(self, inText)
lavis/common/vqa_tools/vqa_eval.py:261
↓ 5 callersMethodregister_path
r"""Register a path to registry with key 'name' Args: name: Key with which the path will be registered. Usage:
lavis/common/registry.py:189
↓ 5 callersMethodsave_result
(result, result_dir, filename, remove_duplicate="")
lavis/tasks/base_task.py:257
↓ 5 callersMethodset_input_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:1018
↓ 5 callersMethodsize
(self, *args, **kwargs)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:84
↓ 5 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
lavis/common/annotator/uniformer/mmseg/models/losses/utils.py:46
↓ 4 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/video_caption_datasets.py:100
↓ 4 callersMethod__getitem__
(self, index)
lavis/datasets/datasets/violin_dataset.py:78
↓ 4 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
lavis/common/annotator/uniformer/mmseg/models/backbones/vit.py:36
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:373
↓ 4 callersMethod__init__
(self, low_in_channels, high_in_channels, channels, out_channels, query_scales, key_pool_scal
lavis/common/annotator/uniformer/mmseg/models/decode_heads/ann_head.py:99
↓ 4 callersMethod__init__
Initialize BaseModule, inherited from `torch.nn.Module`
lavis/common/annotator/uniformer/mmcv/runner/base_module.py:33
↓ 4 callersMethod__init__
(self, by_epoch=True, warmup=None, warmup_iters=0,
lavis/common/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:9
↓ 4 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
lavis/common/annotator/midas/midas/blocks.py:124
↓ 4 callersMethod__init__
(self, **kwargs)
lavis/datasets/datasets/audio_captioning_datasets.py:94
↓ 4 callersMethod__init__
(self, inplanes, planes, stride=1)
lavis/models/clip_vit.py:18
↓ 4 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
lavis/models/ulip_models/pointbert/point_encoder.py:12
↓ 4 callersMethod__init__
(self, encoder_channel, output_channel)
lavis/models/ulip_models/pointbert/dvae.py:14
↓ 4 callersMethod__init__
( self, model_name, embed_dim, image_size=224, pool="avg", pro
lavis/models/clip_models/timm_model.py:42
↓ 4 callersFunction_build_proc_from_cfg
(cfg)
lavis/models/__init__.py:147
↓ 4 callersMethod_build_templates
(self, template)
lavis/datasets/datasets/audio_qa_datasets.py:115
↓ 4 callersFunction_convert_input_type_range
Convert the type and range of the input image. It converts the input image to np.float32 type and range of [0, 1]. It is mainly used for pre-
lavis/common/annotator/uniformer/mmcv/image/colorspace.py:84
↓ 4 callersFunction_convert_output_type_range
Convert the type and range of the image according to dst_type. It converts the image to desired type and range. If `dst_type` is np.uint8, im
lavis/common/annotator/uniformer/mmcv/image/colorspace.py:112
↓ 4 callersMethod_dequeue_and_enqueue
(self, image_feat, text_feat, idxs=None)
lavis/models/base_model.py:159
← previousnext →101–200 of 3,633, ranked by callers