Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KuofengGao/Verbose_Images
/ functions
Functions
3,633 in github.com/KuofengGao/Verbose_Images
⨍
Functions
3,633
◇
Types & classes
927
↳
Endpoints
4
↓ 632 callers
Method
size
(self)
lavis/common/annotator/uniformer/mmcv/video/io.py:27
↓ 272 callers
Method
get
(cls, file_path)
lavis/models/ulip_models/utils/io.py:8
↓ 192 callers
Method
info
Print information about the VQA annotation file. :return:
lavis/common/vqa_tools/vqa.py:71
↓ 188 callers
Method
get
r"""Get an item from registry with key 'name' Args: name (string): Key whose value needs to be retrieved. default: If
lavis/common/registry.py:284
↓ 164 callers
Method
load
Load model from file. Args: path (str): file path
lavis/common/annotator/midas/midas/base_model.py:5
↓ 122 callers
Function
print
(*args, **kwargs)
lavis/common/dist_utils.py:25
↓ 77 callers
Method
stack
(self)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:72
↓ 70 callers
Method
get
(self, key, default=None)
lavis/common/annotator/uniformer/mmcv/video/io.py:37
↓ 55 callers
Method
update
(self, vars, count=1)
lavis/common/annotator/uniformer/mmcv/runner/log_buffer.py:24
↓ 50 callers
Method
exists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:1043
↓ 49 callers
Method
apply
(answer)
lavis/models/blip2_models/blip2.py:151
↓ 49 callers
Method
maybe_autocast
(self, dtype=torch.float16)
lavis/models/blip2_models/blip2.py:36
↓ 48 callers
Method
dim
(self)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:88
↓ 46 callers
Method
add_argument
Assume the first argument is the name of the argument.
lavis/common/config.py:220
↓ 46 callers
Method
convert
Multiple with alpha and add beat with clip.
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:804
↓ 41 callers
Method
from_pretrained
Build a pretrained model from default configuration file, specified by model_type. Args: - model_type (str): model type,
lavis/models/base_model.py:59
↓ 41 callers
Method
max
(self)
lavis/common/logger.py:65
↓ 38 callers
Function
build_norm_layer
Build normalization layer. Args: cfg (dict): The norm layer config, which should contain: - type (str): Layer type.
lavis/common/annotator/uniformer/mmcv/cnn/bricks/norm.py:72
↓ 37 callers
Method
isfile
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:1067
↓ 35 callers
Method
state_dict
Returns the state of the scaler as a :class:`dict`.
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:385
↓ 34 callers
Function
constant_init
(module, val, bias=0)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:48
↓ 33 callers
Function
build_conv_layer
Build convolution layer. Args: cfg (None or dict): The conv layer config, which should contain: - type (str): Layer type.
lavis/common/annotator/uniformer/mmcv/cnn/bricks/conv.py:12
↓ 32 callers
Function
digit_version
Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha <
lavis/common/annotator/uniformer/mmcv/utils/version_utils.py:9
↓ 30 callers
Method
get_path
(cls, name)
lavis/common/registry.py:280
↓ 29 callers
Method
read
Read the next frame. If the next frame have been decoded before and in the cache, then return it directly, otherwise decode, cache an
lavis/common/annotator/uniformer/mmcv/video/io.py:134
↓ 26 callers
Function
_n2p
(w, t=True)
lavis/models/vit.py:293
↓ 26 callers
Method
load_state_dict
(self, pretrained_ckpt_path)
lavis/models/timesformer/vit.py:614
↓ 26 callers
Method
register_module
Register a module. A record will be added to `self._module_dict`, whose key is the class name or the specified name, and value is the
lavis/common/annotator/uniformer/mmcv/utils/registry.py:260
↓ 26 callers
Function
resize
(input, size=None, scale_factor=None, mode='nearest', align_corner
lavis/common/annotator/uniformer/mmseg/ops/wrappers.py:7
↓ 25 callers
Method
dump
(self, file=None)
lavis/common/annotator/uniformer/mmcv/utils/config.py:534
↓ 24 callers
Function
print
(*args, **kwargs)
lavis/models/ulip_models/utils/utils.py:57
↓ 21 callers
Method
_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor
lavis/common/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:137
↓ 21 callers
Function
get_abs_path
(rel_path)
lavis/common/utils.py:52
↓ 20 callers
Method
cls_seg
Classify each pixel with fc.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:108
↓ 20 callers
Method
decode
(self, tokens)
lavis/models/clip_models/tokenizer.py:162
↓ 20 callers
Function
download_cached_file
Download a file from a URL and cache it locally. If the file already exists, it is not downloaded again. If distributed, only the main proces
lavis/common/dist_utils.py:117
↓ 20 callers
Method
log
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:35
↓ 19 callers
Method
forward_features
(self, x)
lavis/models/timesformer/vit.py:596
↓ 18 callers
Method
call_hook
Call all hooks. Args: fn_name (str): The function name in each hook to be called, such as "before_train_epoch".
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:299
↓ 18 callers
Method
encode
(self, text)
lavis/models/clip_models/tokenizer.py:152
↓ 18 callers
Function
get_cache_path
(rel_path)
lavis/common/utils.py:48
↓ 18 callers
Method
get_input_embeddings
(self)
lavis/models/blip2_models/Qformer.py:699
↓ 18 callers
Function
is_url
(url_or_filename)
lavis/common/utils.py:43
↓ 18 callers
Method
load_checkpoint_from_config
Load checkpoint as specified in the config file. If load_finetuned is True, load the finetuned model; otherwise, load the pretrained
lavis/models/base_model.py:81
↓ 18 callers
Method
norm
(self)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/conv_module.py:169
↓ 17 callers
Function
cleanup_dir
Utility for deleting a directory. Useful for cleaning the storage space that contains various training artifacts like checkpoints, data etc.
lavis/common/utils.py:426
↓ 17 callers
Function
get_dist_info
()
lavis/common/annotator/uniformer/mmcv/runner/dist_utils.py:78
↓ 17 callers
Method
remove
Remove a file. Args: filepath (str, Path): Path to be removed.
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:1035
↓ 16 callers
Function
build_from_cfg
Build a module from config dict. Args: cfg (dict): Config dict. It should at least contain the key "type". registry (:obj:`Regist
lavis/common/annotator/uniformer/mmcv/utils/registry.py:9
↓ 16 callers
Function
kaiming_init
(module, a=0, mode='fan_out', nonlinearity='relu',
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:92
↓ 15 callers
Method
_add_instance_ids
(self, key="instance_id")
lavis/datasets/datasets/base_dataset.py:72
↓ 15 callers
Function
print_log
Print a log message. Args: msg (str): The message to be logged. logger (logging.Logger | str | None): The logger to be used.
lavis/common/annotator/uniformer/mmcv/utils/logging.py:85
↓ 15 callers
Method
update
(self, **kwargs)
lavis/common/logger.py:87
↓ 14 callers
Method
__init__
(self, config, layer_num)
lavis/models/med.py:392
↓ 14 callers
Method
__init__
(self, config, layer_num)
lavis/models/blip2_models/Qformer.py:379
↓ 14 callers
Method
load_state_dict
Loads the loss_scaler state dict. Args: state_dict (dict): scaler state.
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:395
↓ 14 callers
Method
register_hook
Register a hook into the hook list. The hook will be inserted into a priority queue, with the specified priority (See :class:`Priorit
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:255
↓ 13 callers
Function
concat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
lavis/models/base_model.py:241
↓ 12 callers
Method
__init__
(self, config, layer_num)
lavis/models/blip_models/nlvr_encoder.py:412
↓ 12 callers
Method
clamp
(self, delta, clean_imgs)
main.py:46
↓ 12 callers
Function
load_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:503
↓ 12 callers
Method
norm1
nn.Module: the normalization layer named "norm1"
lavis/common/annotator/uniformer/mmseg/models/backbones/hrnet.py:362
↓ 12 callers
Method
norm2
nn.Module: the normalization layer named "norm2"
lavis/common/annotator/uniformer/mmseg/models/backbones/hrnet.py:367
↓ 11 callers
Method
__init__
(self, config, has_relative_attention_bias=False)
lavis/models/blip2_models/modeling_t5.py:698
↓ 11 callers
Method
device
(self)
lavis/models/base_model.py:26
↓ 11 callers
Method
forward_text
(self, text_tokens)
lavis/models/blip2_models/blip2_qformer.py:356
↓ 11 callers
Function
is_str
Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported.
lavis/common/annotator/uniformer/mmcv/utils/misc.py:31
↓ 11 callers
Function
normal_init
(module, mean=0, std=1, bias=0)
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:66
↓ 10 callers
Method
__init__
(self, by_epoch=True, warmup=None, warmup_iters=0,
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:25
↓ 10 callers
Method
_format_path
Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows enviro
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:134
↓ 10 callers
Method
_map_path
Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str): Path
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:121
↓ 10 callers
Function
get_activation
(name)
lavis/common/annotator/midas/midas/vit.py:159
↓ 10 callers
Method
get_iter
Get the current training iteration step.
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:84
↓ 10 callers
Method
padding
(self, seq, pad_token=-1)
lavis/processors/gpt_processors.py:77
↓ 10 callers
Method
step
(self, cur_epoch, cur_step)
lavis/common/optims.py:105
↓ 9 callers
Method
__getitem__
(self, index)
lavis/datasets/datasets/audio_captioning_datasets.py:121
↓ 9 callers
Function
cast_tensor_type
Recursively convert Tensor in inputs from src_type to dst_type. Args: inputs: Inputs that to be casted. src_type (torch.dtype): S
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:24
↓ 9 callers
Method
copy_params
(self)
lavis/models/base_model.py:183
↓ 9 callers
Method
get_model_class
(cls, name)
lavis/common/registry.py:236
↓ 9 callers
Function
get_rank
()
lavis/common/dist_utils.py:47
↓ 9 callers
Method
infer_client
Infer a suitable file client based on the URI and arguments. Args: file_client_args (dict, optional): Arguments to instantiate a
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:858
↓ 9 callers
Function
is_module_wrapper
Check if a module is a module wrapper. The following 3 modules in MMCV (and their subclasses) are regarded as module wrappers: DataParallel,
lavis/common/annotator/uniformer/mmcv/parallel/utils.py:5
↓ 9 callers
Function
trunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
lavis/models/timesformer/vit_utils.py:67
↓ 9 callers
Method
update
(self, num_tasks=1)
lavis/common/annotator/uniformer/mmcv/utils/progressbar.py:35
↓ 9 callers
Method
update
(self, cfg: dict)
lavis/models/beats/BEATs.py:67
↓ 9 callers
Method
value
(self)
lavis/common/logger.py:69
↓ 8 callers
Method
_momentum_update
(self)
lavis/models/base_model.py:192
↓ 8 callers
Function
add_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
lavis/common/annotator/uniformer/mmseg/core/utils/misc.py:1
↓ 8 callers
Method
every_n_iters
(self, runner, n)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:61
↓ 8 callers
Method
fromfile
(filename, use_predefined_variables=True, import_custom_modules=True)
lavis/common/annotator/uniformer/mmcv/utils/config.py:328
↓ 8 callers
Function
get_root_logger
Get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHandler will be added. If `log_file` i
lavis/common/annotator/uniformer/mmseg/utils/logger.py:6
↓ 8 callers
Method
init_tokenizer
(cls)
lavis/models/blip_models/blip.py:27
↓ 8 callers
Function
interpolate_pos_embed
(pos_embed_checkpoint, visual_encoder)
lavis/models/vit.py:426
↓ 8 callers
Method
isdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:1054
↓ 8 callers
Function
load_file
Common i/o utility to handle loading data from various file formats. Supported: .pkl, .pickle, .npy, .json For the npy files, we
lavis/common/utils.py:315
↓ 8 callers
Method
log_every
(self, iterable, print_freq, header=None)
lavis/common/logger.py:122
↓ 8 callers
Method
model
A property to get the DDP-wrapped model on the device.
lavis/runners/runner_base.py:80
↓ 8 callers
Method
scatter
(self, inputs, kwargs, device_ids)
lavis/common/annotator/uniformer/mmcv/parallel/data_parallel.py:44
↓ 8 callers
Function
update_init_info
Update the `_params_init_info` in the module if the value of parameters are changed. Args: module (obj:`nn.Module`): The module of Py
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:16
↓ 7 callers
Method
__getitem__
(self, index)
lavis/datasets/datasets/object3d_captioning_datasets.py:72
next →
1–100 of 3,633, ranked by callers