MCPcopy Create free account

hub / github.com/Picsart-AI-Research/Text2Video-Zero / functions

Functions1,788 in github.com/Picsart-AI-Research/Text2Video-Zero

↓ 241 callersMethodsize
(self)
annotator/uniformer/mmcv/video/io.py:27
↓ 79 callersMethodget
(self, key, default=None)
annotator/uniformer/mmcv/video/io.py:37
↓ 54 callersMethodupdate
(self, vars, count=1)
annotator/uniformer/mmcv/runner/log_buffer.py:24
↓ 38 callersFunctionbuild_norm_layer
Build normalization layer. Args: cfg (dict): The norm layer config, which should contain: - type (str): Layer type.
annotator/uniformer/mmcv/cnn/bricks/norm.py:72
↓ 34 callersFunctionconstant_init
(module, val, bias=0)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:48
↓ 34 callersMethoddim
(self)
annotator/uniformer/mmcv/parallel/data_container.py:88
↓ 33 callersFunctionbuild_conv_layer
Build convolution layer. Args: cfg (None or dict): The conv layer config, which should contain: - type (str): Layer type.
annotator/uniformer/mmcv/cnn/bricks/conv.py:12
↓ 32 callersFunctiondigit_version
Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha <
annotator/uniformer/mmcv/utils/version_utils.py:9
↓ 28 callersMethodload
Load model from file. Args: path (str): file path
annotator/midas/midas/base_model.py:5
↓ 26 callersMethodregister_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
annotator/uniformer/mmcv/utils/registry.py:260
↓ 26 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
annotator/uniformer/mmseg/ops/wrappers.py:7
↓ 21 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:137
↓ 20 callersMethodcls_seg
Classify each pixel with fc.
annotator/uniformer/mmseg/models/decode_heads/point_head.py:108
↓ 18 callersMethodcall_hook
Call all hooks. Args: fn_name (str): The function name in each hook to be called, such as "before_train_epoch".
annotator/uniformer/mmcv/runner/base_runner.py:299
↓ 17 callersFunctionget_dist_info
()
annotator/uniformer/mmcv/runner/dist_utils.py:78
↓ 17 callersMethodread
Read the next frame. If the next frame have been decoded before and in the cache, then return it directly, otherwise decode, cache an
annotator/uniformer/mmcv/video/io.py:134
↓ 16 callersFunctionbuild_from_cfg
Build a module from config dict. Args: cfg (dict): Config dict. It should at least contain the key "type". registry (:obj:`Regist
annotator/uniformer/mmcv/utils/registry.py:9
↓ 16 callersFunctionkaiming_init
(module, a=0, mode='fan_out', nonlinearity='relu',
annotator/uniformer/mmcv/cnn/utils/weight_init.py:92
↓ 15 callersMethodexists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:1043
↓ 15 callersFunctionprint_log
Print a log message. Args: msg (str): The message to be logged. logger (logging.Logger | str | None): The logger to be used.
annotator/uniformer/mmcv/utils/logging.py:85
↓ 15 callersMethodremove
Remove a file. Args: filepath (str, Path): Path to be removed.
annotator/uniformer/mmcv/fileio/file_client.py:1035
↓ 15 callersMethodstack
(self)
annotator/uniformer/mmcv/parallel/data_container.py:72
↓ 12 callersMethodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:1067
↓ 12 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
annotator/uniformer/mmcv/runner/checkpoint.py:503
↓ 11 callersFunctionis_str
Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported.
annotator/uniformer/mmcv/utils/misc.py:31
↓ 11 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:66
↓ 11 callersMethodstate_dict
Returns the state of the scaler as a :class:`dict`.
annotator/uniformer/mmcv/runner/fp16_utils.py:385
↓ 10 callersMethod__init__
(self, by_epoch=True, warmup=None, warmup_iters=0,
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:25
↓ 10 callersMethod_format_path
Convert a ``filepath`` to standard format of petrel oss. If the ``filepath`` is concatenated by ``os.path.join``, in a Windows enviro
annotator/uniformer/mmcv/fileio/file_client.py:134
↓ 10 callersMethod_map_path
Map ``filepath`` to a string path whose prefix will be replaced by :attr:`self.path_mapping`. Args: filepath (str): Path
annotator/uniformer/mmcv/fileio/file_client.py:121
↓ 10 callersFunctionget_activation
(name)
annotator/midas/midas/vit.py:159
↓ 10 callersMethodget_iter
Get the current training iteration step.
annotator/uniformer/mmcv/runner/hooks/logger/base.py:84
↓ 10 callersMethodload_state_dict
Loads the loss_scaler state dict. Args: state_dict (dict): scaler state.
annotator/uniformer/mmcv/runner/fp16_utils.py:395
↓ 10 callersMethodregister_hook
Register a hook into the hook list. The hook will be inserted into a priority queue, with the specified priority (See :class:`Priorit
annotator/uniformer/mmcv/runner/base_runner.py:255
↓ 9 callersFunctioncast_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
annotator/uniformer/mmcv/runner/fp16_utils.py:24
↓ 9 callersMethoddump
(self, file=None)
annotator/uniformer/mmcv/utils/config.py:534
↓ 9 callersMethodinfer_client
Infer a suitable file client based on the URI and arguments. Args: file_client_args (dict, optional): Arguments to instantiate a
annotator/uniformer/mmcv/fileio/file_client.py:858
↓ 9 callersFunctionis_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,
annotator/uniformer/mmcv/parallel/utils.py:5
↓ 9 callersMethodupdate
(self, num_tasks=1)
annotator/uniformer/mmcv/utils/progressbar.py:35
↓ 8 callersFunctionadd_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
annotator/uniformer/mmseg/core/utils/misc.py:1
↓ 8 callersMethodevery_n_iters
(self, runner, n)
annotator/uniformer/mmcv/runner/hooks/hook.py:61
↓ 8 callersMethodfromfile
(filename, use_predefined_variables=True, import_custom_modules=True)
annotator/uniformer/mmcv/utils/config.py:328
↓ 8 callersFunctionget_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
annotator/uniformer/mmseg/utils/logger.py:6
↓ 8 callersFunctionupdate_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
annotator/uniformer/mmcv/cnn/utils/weight_init.py:16
↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
annotator/uniformer/mmseg/models/backbones/uniformer.py:25
↓ 7 callersMethod__init__
(self, *, bias=0, bias_prob=None, layer=None)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:134
↓ 7 callersMethod__setattr__
(self, name, value)
annotator/uniformer/mmcv/utils/config.py:512
↓ 7 callersMethodbuild
(self, *args, **kwargs)
annotator/uniformer/mmcv/utils/registry.py:211
↓ 7 callersMethodclear
(self)
annotator/uniformer/mmcv/runner/log_buffer.py:15
↓ 7 callersMethodconvert
Multiple with alpha and add beat with clip.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:804
↓ 7 callersMethodjoin_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and
annotator/uniformer/mmcv/fileio/file_client.py:1079
↓ 7 callersFunctionobsolete_torch_version
(torch_version, version_threshold)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:24
↓ 7 callersFunctionxavier_init
(module, gain=1, bias=0, distribution='normal')
annotator/uniformer/mmcv/cnn/utils/weight_init.py:55
↓ 6 callersFunction_get_bases_name
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:128
↓ 6 callersMethodbackward
(ctx, a=None)
annotator/uniformer/mmcv/ops/knn.py:73
↓ 6 callersMethodclip_grads
(self, params)
annotator/uniformer/mmcv/runner/hooks/optimizer.py:27
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
annotator/midas/midas/transforms.py:94
↓ 6 callersFunctionconvert_color_factory
(src, dst)
annotator/uniformer/mmcv/image/colorspace.py:275
↓ 6 callersFunctionformat_param
(name, optim, param)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:659
↓ 6 callersMethodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:44
↓ 6 callersMethodforward_plugin
Forward function for plugins.
annotator/uniformer/mmseg/models/backbones/resnet.py:242
↓ 6 callersMethodget_loggable_tags
(self, runner, allow_scalar=True,
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
annotator/uniformer/mmcv/utils/misc.py:367
↓ 6 callersMethodinference
(self, split_to_chunks=False, chunk_size=8, **kwargs)
model.py:85
↓ 6 callersFunctionis_supported_instance
(module)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:540
↓ 6 callersMethodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
annotator/uniformer/mmcv/fileio/file_client.py:1054
↓ 6 callersMethodload_checkpoint
(self, filename, map_location='cpu', s
annotator/uniformer/mmcv/runner/base_runner.py:332
↓ 6 callersMethodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:35
↓ 6 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
annotator/uniformer/mmseg/models/backbones/hrnet.py:362
↓ 6 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
annotator/uniformer/mmseg/models/backbones/hrnet.py:367
↓ 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
annotator/uniformer/mmcv/ops/point_sample.py:242
↓ 6 callersMethodset_model
(self, model_type: ModelType, model_id: str, **kwargs)
model.py:52
↓ 5 callersFunctionHWC3
(x)
annotator/util.py:9
↓ 5 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
annotator/midas/midas/blocks.py:49
↓ 5 callersMethod_set_lr
(self, runner, lr_groups)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:58
↓ 5 callersMethod_set_momentum
(self, runner, momentum_groups)
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.
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.
annotator/uniformer/mmcv/cnn/bricks/activation.py:81
↓ 5 callersMethodchildren
(self)
annotator/uniformer/mmcv/utils/registry.py:183
↓ 5 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
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``
annotator/uniformer/mmcv/fileio/file_client.py:976
↓ 5 callersMethodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:224
↓ 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
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`.
annotator/uniformer/mmcv/utils/misc.py:160
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
annotator/uniformer/mmcv_custom/checkpoint.py:109
↓ 5 callersMethodnorm
(self)
annotator/uniformer/mmcv/cnn/bricks/conv_module.py:169
↓ 5 callersMethodscatter
(self, inputs, kwargs, device_ids)
annotator/uniformer/mmcv/parallel/data_parallel.py:44
↓ 5 callersMethodsize
(self, *args, **kwargs)
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.
annotator/uniformer/mmseg/models/losses/utils.py:46
↓ 4 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
annotator/uniformer/mmseg/models/backbones/vit.py:36
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
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
annotator/uniformer/mmseg/models/decode_heads/ann_head.py:99
↓ 4 callersMethod__init__
Initialize BaseModule, inherited from `torch.nn.Module`
annotator/uniformer/mmcv/runner/base_module.py:33
↓ 4 callersMethod__init__
(self, by_epoch=True, warmup=None, warmup_iters=0,
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:9
↓ 4 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
annotator/midas/midas/blocks.py:124
↓ 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-
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
annotator/uniformer/mmcv/image/colorspace.py:112
↓ 4 callersFunction_make_fusion_block
(features, use_bn)
annotator/midas/midas/dpt_depth.py:15
↓ 4 callersFunction_make_vit_b16_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11], vit_features=
annotator/midas/midas/vit.py:183
↓ 4 callersFunction_ntuple
(n)
annotator/uniformer/mmcv/utils/misc.py:14
next →1–100 of 1,788, ranked by callers