Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Picsart-AI-Research/Text2Video-Zero
/ functions
Functions
1,788 in github.com/Picsart-AI-Research/Text2Video-Zero
⨍
Functions
1,788
◇
Types & classes
380
↳
Endpoints
1
↓ 1 callers
Method
get_palette_for_custom_classes
(self, class_names, palette=None)
annotator/uniformer/mmseg/datasets/custom.py:287
↓ 1 callers
Method
get_points_test
Sample points for testing. Find ``num_points`` most uncertain points from ``uncertainty_map``. Args: seg_logits (Tensor)
annotator/uniformer/mmseg/models/decode_heads/point_head.py:310
↓ 1 callers
Method
get_points_train
Sample points for training. Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The uncertainties are calcu
annotator/uniformer/mmseg/models/decode_heads/point_head.py:256
↓ 1 callers
Method
get_position_embedding
(self, h, w, h_kv
annotator/uniformer/mmcv/cnn/bricks/generalized_attention.py:166
↓ 1 callers
Function
get_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_per
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:388
↓ 1 callers
Function
get_priority
Get priority value. Args: priority (int or str or :obj:`Priority`): Priority. Returns: int: The priority value.
annotator/uniformer/mmcv/runner/priority.py:42
↓ 1 callers
Function
get_sampler_cls
Get the type and mode of points sampler. Args: sampler_type (str): The type of points sampler. The valid value are "D-FPS", "
annotator/uniformer/mmcv/ops/points_sampler.py:37
↓ 1 callers
Function
get_shape_from_feature_map
Get spatial resolution of input feature map considering exporting to onnx mode. Args: x (torch.Tensor): Input tensor, shape (N, C, H,
annotator/uniformer/mmcv/ops/point_sample.py:168
↓ 1 callers
Method
get_size
(self, width, height)
annotator/midas/midas/transforms.py:105
↓ 1 callers
Function
get_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
annotator/uniformer/mmcv/runner/checkpoint.py:590
↓ 1 callers
Function
get_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
annotator/uniformer/mmcv_custom/checkpoint.py:394
↓ 1 callers
Method
get_step
Get the total training step/epoch.
annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:74
↓ 1 callers
Function
get_time_str
()
annotator/uniformer/mmcv/runner/utils.py:31
↓ 1 callers
Function
get_torchvision_models
()
annotator/uniformer/mmcv/runner/checkpoint.py:109
↓ 1 callers
Method
get_triggered_stages
(self)
annotator/uniformer/mmcv/runner/hooks/hook.py:73
↓ 1 callers
Function
gray2bgr
Convert a grayscale image to BGR image. Args: img (ndarray): The input image. Returns: ndarray: The converted BGR image.
annotator/uniformer/mmcv/image/colorspace.py:56
↓ 1 callers
Method
has_batch_norm
(self, module)
annotator/uniformer/mmcv/runner/hooks/optimizer.py:76
↓ 1 callers
Method
hue
Hue distortion.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:838
↓ 1 callers
Function
imnormalize_
Inplace normalize an image with mean and std. Args: img (ndarray): Image to be normalized. mean (ndarray): The mean to be used fo
annotator/uniformer/mmcv/image/photometric.py:25
↓ 1 callers
Function
impad
Pad the given image to a certain shape or pad on all sides with specified padding mode and padding value. Args: img (ndarray): Image
annotator/uniformer/mmcv/image/geometric.py:440
↓ 1 callers
Method
import_dvclive
(self)
annotator/uniformer/mmcv/runner/hooks/logger/dvclive.py:41
↓ 1 callers
Method
import_mlflow
(self)
annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:51
↓ 1 callers
Function
import_modules_from_strings
Import modules from the given list of strings. Args: imports (list | str | None): The given module names to be imported. allow_fa
annotator/uniformer/mmcv/utils/misc.py:39
↓ 1 callers
Method
import_neptune
(self)
annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:52
↓ 1 callers
Function
infer_abbr
Infer abbreviation from the class name. When we build a norm layer with `build_norm_layer()`, we want to preserve the norm type in variable n
annotator/uniformer/mmcv/cnn/bricks/norm.py:23
↓ 1 callers
Function
infer_abbr
Infer abbreviation from the class name. This method will infer the abbreviation to map class types to abbreviations. Rule 1: If the clas
annotator/uniformer/mmcv/cnn/bricks/plugin.py:12
↓ 1 callers
Method
infer_scope
Infer the scope of registry. The name of the package where registry is defined will be returned. Example: # in mmdet/mod
annotator/uniformer/mmcv/utils/registry.py:125
↓ 1 callers
Method
inference_chunk
(self, frame_ids, **kwargs)
model.py:64
↓ 1 callers
Function
inference_segmentor
Inference image(s) with the segmentor. Args: model (nn.Module): The loaded segmentor. imgs (str/ndarray or list[str/ndarray]): Ei
annotator/uniformer/mmseg/apis/inference.py:69
↓ 1 callers
Method
init_offset
(self)
annotator/uniformer/mmcv/ops/deform_conv.py:370
↓ 1 callers
Function
init_pool
(process_num, initializer=None, initargs=None)
annotator/uniformer/mmcv/utils/progressbar.py:98
↓ 1 callers
Function
init_segmentor
Initialize a segmentor from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
annotator/uniformer/mmseg/apis/inference.py:11
↓ 1 callers
Method
init_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:59
↓ 1 callers
Method
init_weights
(self, pretrained)
annotator/uniformer/mmseg/models/backbones/uniformer.py:358
↓ 1 callers
Method
init_weights
Initialize weight of later layer.
annotator/uniformer/mmseg/models/utils/self_attention_block.py:93
↓ 1 callers
Method
init_weights
(self)
annotator/uniformer/mmcv/ops/saconv.py:81
↓ 1 callers
Method
init_weights
(self)
annotator/uniformer/mmcv/ops/carafe.py:258
↓ 1 callers
Method
init_weights
(self)
annotator/uniformer/mmcv/ops/modulated_deform_conv.py:240
↓ 1 callers
Method
init_weights
Default initialization for Parameters of Module.
annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:230
↓ 1 callers
Method
init_weights
(self)
annotator/uniformer/mmcv/cnn/bricks/generalized_attention.py:403
↓ 1 callers
Method
init_weights
(self)
annotator/uniformer/mmcv/cnn/bricks/conv_module.py:175
↓ 1 callers
Method
init_weights
(self)
annotator/uniformer/mmcv/cnn/bricks/upsample.py:41
↓ 1 callers
Method
init_weights
(self, std=0.01, zeros_init=True)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:99
↓ 1 callers
Function
initialize
Initialize a module. Args: module (``torch.nn.Module``): the module will be initialized. init_cfg (dict | list[dict]): initializa
annotator/uniformer/mmcv/cnn/utils/weight_init.py:550
↓ 1 callers
Function
intersect_and_union
Calculate intersection and Union. Args: pred_label (ndarray | str): Prediction segmentation map or predict result filename.
annotator/uniformer/mmseg/core/evaluation/metrics.py:25
↓ 1 callers
Function
is_filepath
(x)
annotator/uniformer/mmcv/utils/path.py:9
↓ 1 callers
Function
is_in_onnx_export_without_custom_ops
()
annotator/uniformer/mmcv/ops/point_sample.py:87
↓ 1 callers
Method
is_last_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:67
↓ 1 callers
Function
is_rocm_pytorch
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:9
↓ 1 callers
Method
is_scalar
Tell the input variable is a scalar or not. Args: val: Input variable. include_np (bool): Whether include 0-d np.ndar
annotator/uniformer/mmcv/runner/hooks/logger/base.py:39
↓ 1 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:
annotator/uniformer/mmcv/fileio/file_client.py:261
↓ 1 callers
Method
kernel_normalizer
(self, mask)
annotator/uniformer/mmcv/ops/carafe.py:264
↓ 1 callers
Function
load
(module, prefix='')
annotator/uniformer/mmcv/runner/checkpoint.py:67
↓ 1 callers
Function
load
(module, prefix='')
annotator/uniformer/mmcv_custom/checkpoint.py:67
↓ 1 callers
Method
load_annotations
Load annotation from directory. Args: img_dir (str): Path to image directory img_suffix (str): Suffix of images.
annotator/uniformer/mmseg/datasets/custom.py:120
↓ 1 callers
Function
load_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
annotator/uniformer/mmcv_custom/checkpoint.py:286
↓ 1 callers
Method
load_checkpoint
load checkpoint through URL scheme path. Args: filename (str): checkpoint file name with given prefix map_location (s
annotator/uniformer/mmcv/runner/checkpoint.py:227
↓ 1 callers
Function
load_fileclient_dist
In distributed setting, this function only download checkpoint at local rank 0.
annotator/uniformer/mmcv_custom/checkpoint.py:151
↓ 1 callers
Function
load_model
(model_type)
annotator/midas/api.py:77
↓ 1 callers
Function
load_pavimodel_dist
In distributed setting, this function only download checkpoint at local rank 0.
annotator/uniformer/mmcv_custom/checkpoint.py:123
↓ 1 callers
Function
load_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
annotator/uniformer/mmcv_custom/checkpoint.py:41
↓ 1 callers
Method
losses
Compute segmentation loss.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:215
↓ 1 callers
Method
losses
Compute segmentation loss.
annotator/uniformer/mmseg/models/decode_heads/point_head.py:248
↓ 1 callers
Method
losses
Compute ``pam_cam``, ``pam``, ``cam`` loss.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:164
↓ 1 callers
Function
make_color_wheel
Build a color wheel. Args: bins(list or tuple, optional): Specify the number of bins for each color range, corresponding to s
annotator/uniformer/mmcv/visualization/optflow.py:76
↓ 1 callers
Method
make_layer
Stack InvertedResidual blocks to build a layer for MobileNetV2. Args: out_channels (int): out_channels of block. num_
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:107
↓ 1 callers
Function
make_res_layer
(block, inplanes, planes, blocks,
annotator/uniformer/mmcv/cnn/resnet.py:143
↓ 1 callers
Method
make_res_layer
Pack all blocks in a stage into a ``ResLayer``.
annotator/uniformer/mmseg/models/backbones/resnet.py:523
↓ 1 callers
Method
make_stage_plugins
make plugins for ResNet 'stage_idx'th stage . Currently we support to insert 'context_block', 'empirical_attention_block', 'nonlocal_
annotator/uniformer/mmseg/models/backbones/resnet.py:470
↓ 1 callers
Function
make_vgg_layer
(inplanes, planes, num_blocks, dilation=1,
annotator/uniformer/mmcv/cnn/vgg.py:19
↓ 1 callers
Function
model_url_list
()
hf_utils.py:5
↓ 1 callers
Function
multi_scale_deformable_attn_pytorch
CPU version of multi-scale deformable attention. Args: value (Tensor): The value has shape (bs, num_keys, mum_heads, embed_di
annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:94
↓ 1 callers
Method
norm0
nn.Module: the normalization layer named "norm0"
annotator/uniformer/mmseg/models/backbones/resnest.py:108
↓ 1 callers
Method
norm1
nn.Module: the normalization layer named "norm1"
annotator/uniformer/mmseg/models/backbones/resnest.py:113
↓ 1 callers
Method
norm1
nn.Module: normalization layer after the first convolution layer
annotator/uniformer/mmseg/models/backbones/resnet.py:58
↓ 1 callers
Method
norm1
nn.Module: the normalization layer named "norm1"
annotator/uniformer/mmseg/models/backbones/resnet.py:528
↓ 1 callers
Method
norm2
nn.Module: normalization layer after the second convolution layer
annotator/uniformer/mmseg/models/backbones/resnet.py:63
↓ 1 callers
Method
norm2
nn.Module: normalization layer after the second convolution layer
annotator/uniformer/mmseg/models/backbones/resnet.py:255
↓ 1 callers
Function
normalize
Normalize input grid from [-1, 1] to [0, 1] Args: grid (Tensor): The grid to be normalize, range [-1, 1]. Returns: Tensor: Nor
annotator/uniformer/mmcv/ops/point_sample.py:94
↓ 1 callers
Method
pam_cls_seg
PAM feature classification.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:128
↓ 1 callers
Method
parse_uri_prefix
Parse the prefix of a uri. Args: uri (str | Path): Uri to be parsed that contains the file prefix. Examples:
annotator/uniformer/mmcv/fileio/file_client.py:831
↓ 1 callers
Function
patch_forward_method
Patch the forward method of a module. Args: func (callable): The original forward method. src_type (torch.dtype): Type of input a
annotator/uniformer/mmcv/runner/fp16_utils.py:283
↓ 1 callers
Function
patch_norm_fp32
Recursively convert normalization layers from FP16 to FP32. Args: module (nn.Module): The modules to be converted in FP16. Returns:
annotator/uniformer/mmcv/runner/fp16_utils.py:263
↓ 1 callers
Method
prepare_test_img
Get testing data after pipeline. Args: idx (int): Index of data. Returns: dict: Testing data after pipeline
annotator/uniformer/mmseg/datasets/custom.py:211
↓ 1 callers
Method
prepare_train_img
Get training data and annotations after pipeline. Args: idx (int): Index of data. Returns: dict: Training da
annotator/uniformer/mmseg/datasets/custom.py:194
↓ 1 callers
Function
print_model_with_flops
Print a model with FLOPs for each layer. Args: model (nn.Module): The model to be printed. total_flops (float): Total FLOPs of th
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:198
↓ 1 callers
Method
psp_forward
Forward function of PSP module.
annotator/uniformer/mmseg/models/decode_heads/uper_head.py:76
↓ 1 callers
Method
put
Save data to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data.
annotator/uniformer/mmcv/fileio/file_client.py:179
↓ 1 callers
Function
quantize
Quantize an array of (-inf, inf) to [0, levels-1]. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clippe
annotator/uniformer/mmcv/arraymisc/quantization.py:5
↓ 1 callers
Function
quantize_flow
Quantize flow to [0, 255]. After this step, the size of flow will be much smaller, and can be dumped as jpeg images. Args: flow
annotator/uniformer/mmcv/video/optflow.py:91
↓ 1 callers
Method
random_select
Randomly select an img_scale from given candidates. Args: img_scales (list[tuple]): Images scales for selection. Returns
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:68
↓ 1 callers
Function
reduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
annotator/uniformer/mmseg/models/losses/utils.py:26
↓ 1 callers
Function
reduce_mean
Reduce mean when distributed training.
annotator/uniformer/mmseg/models/decode_heads/ema_head.py:13
↓ 1 callers
Method
register_checkpoint_hook
(self, checkpoint_config)
annotator/uniformer/mmcv/runner/base_runner.py:451
↓ 1 callers
Method
register_custom_hooks
(self, custom_config)
annotator/uniformer/mmcv/runner/base_runner.py:480
↓ 1 callers
Method
register_hook_from_cfg
Register a hook from its cfg. Args: hook_cfg (dict): Hook config. It should have at least keys 'type' and 'priority
annotator/uniformer/mmcv/runner/base_runner.py:283
↓ 1 callers
Method
register_logger_hooks
(self, log_config)
annotator/uniformer/mmcv/runner/base_runner.py:461
↓ 1 callers
Method
register_lr_hook
(self, lr_config)
annotator/uniformer/mmcv/runner/base_runner.py:399
↓ 1 callers
Method
register_momentum_hook
(self, momentum_config)
annotator/uniformer/mmcv/runner/base_runner.py:420
↓ 1 callers
Method
register_optimizer_hook
(self, optimizer_config)
annotator/uniformer/mmcv/runner/base_runner.py:441
← previous
next →
501–600 of 1,788, ranked by callers