MCPcopy Create free account

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

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

↓ 4 callersMethod_set_real_position
(self, frame_id)
annotator/uniformer/mmcv/video/io.py:127
↓ 4 callersMethodaverage
Average latest n values or all values.
annotator/uniformer/mmcv/runner/log_buffer.py:33
↓ 4 callersMethodbuild_project
Build projection layer for key/query/value/out.
annotator/uniformer/mmseg/models/utils/self_attention_block.py:99
↓ 4 callersFunctioncheck_file_exist
(filename, msg_tmpl='file "{}" does not exist')
annotator/uniformer/mmcv/utils/path.py:21
↓ 4 callersMethodclear_output
(self)
annotator/uniformer/mmcv/runner/log_buffer.py:20
↓ 4 callersMethoddump_to_fileobj
(self, obj, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:17
↓ 4 callersFunctioneval_metrics
Calculate evaluation metrics Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or list of predic
annotator/uniformer/mmseg/core/evaluation/metrics.py:257
↓ 4 callersMethodevaluate
Evaluate the results. Args: runner (:obj:`mmcv.Runner`): The underlined training runner. results (list): Output resul
annotator/uniformer/mmcv/runner/hooks/evaluation.py:354
↓ 4 callersMethodget
Get the registry record. Args: key (str): The class name in string format. Returns: class: The corresponding
annotator/uniformer/mmcv/utils/registry.py:186
↓ 4 callersFunctionget_logger
Initialize and get a logger by name. If the logger has not been initialized, this method will initialize the logger by adding one or two hand
annotator/uniformer/mmcv/utils/logging.py:9
↓ 4 callersMethodget_mode
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:59
↓ 4 callersFunctionimread
Read an image. Args: img_or_path (ndarray or str or Path): Either a numpy array or str or pathlib.Path. If it is a numpy arra
annotator/uniformer/mmcv/image/io.py:140
↓ 4 callersMethodis_last_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:70
↓ 4 callersMethodload_from_fileobj
(self, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:13
↓ 4 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number to the nearest value that can be divisible by the divisor. It is taken from
annotator/uniformer/mmseg/models/utils/make_divisible.py:1
↓ 4 callersFunctionmkdir_or_exist
(dir_name, mode=0o777)
annotator/uniformer/mmcv/utils/path.py:26
↓ 4 callersFunctionnp2tmp
Save ndarray to local numpy file. Args: array (ndarray): Ndarray to save. temp_file_name (str): Numpy file name. If 'temp_file_na
annotator/uniformer/mmseg/apis/test.py:14
↓ 4 callersFunctionscatter_kwargs
Scatter with support for kwargs dictionary.
annotator/uniformer/mmcv/parallel/scatter_gather.py:49
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
annotator/uniformer/mmseg/datasets/pipelines/formating.py:11
↓ 4 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
annotator/uniformer/mmseg/models/utils/weight_init.py:48
↓ 3 callersMethodDDIM_backward
(self, num_inference_steps, timesteps, skip_t, t0, t1, do_classifier_free_guidance, null_embs, text_embeddings
text_to_video_pipeline.py:117
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
annotator/uniformer/mmseg/models/backbones/resnest.py:291
↓ 3 callersMethod__init__
(self, in_channels=3, base_channels=64, num_stages=5,
annotator/uniformer/mmseg/models/backbones/unet.py:277
↓ 3 callersMethod__init__
(self, in_channels=3, num_channels=(32, 64, 128), num_block
annotator/uniformer/mmseg/models/backbones/cgnet.py:215
↓ 3 callersMethod__init__
(self, in_channels=3, downsample_dw_channels=(32, 48), glob
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:296
↓ 3 callersMethod__init__
(self)
annotator/uniformer/mmcv/ops/points_sampler.py:165
↓ 3 callersMethod__init__
(self, *args, **kwargs)
annotator/uniformer/mmcv/ops/deprecated_wrappers.py:11
↓ 3 callersMethod__init__
(self, in_channels, out_channels, **kwargs)
annotator/uniformer/mmcv/ops/merge_cells.py:123
↓ 3 callersMethod__init__
(self, grad_clip=None)
annotator/uniformer/mmcv/runner/hooks/optimizer.py:24
↓ 3 callersMethod__init__
(self, in_channels, sub_sample=False, conv_cfg=dict(type='C
annotator/uniformer/mmcv/cnn/bricks/non_local.py:226
↓ 3 callersMethod__init__
(self, embed_dims=256, feedforward_channels=1024, num_fcs=2
annotator/uniformer/mmcv/cnn/bricks/transformer.py:234
↓ 3 callersMethod__init__
(self, start_index=1)
annotator/midas/midas/vit.py:10
↓ 3 callersFunction_auto_contrast_channel
(im, c, cutoff)
annotator/uniformer/mmcv/image/photometric.py:257
↓ 3 callersMethod_init
(self, runner)
annotator/uniformer/mmcv/runner/hooks/optimizer.py:84
↓ 3 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
annotator/uniformer/mmcv/runner/checkpoint.py:450
↓ 3 callersFunction_make_encoder
(backbone, features, use_pretrained, groups=1, expand=False, exportable=True, hooks=None, use_vit_only=False,
annotator/midas/midas/blocks.py:11
↓ 3 callersMethod_make_layer
(self, in_channels, out_channels, blocks,
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:148
↓ 3 callersMethod_make_stage
Make each stage.
annotator/uniformer/mmseg/models/backbones/hrnet.py:454
↓ 3 callersMethod_make_transition_layer
Make transition layer.
annotator/uniformer/mmseg/models/backbones/hrnet.py:371
↓ 3 callersMethod_register_module
(self, module_class, module_name=None, force=False)
annotator/uniformer/mmcv/utils/registry.py:235
↓ 3 callersFunction_scale_channel
Scale the data in the corresponding channel.
annotator/uniformer/mmcv/image/photometric.py:145
↓ 3 callersMethod_sync_params
(self)
annotator/uniformer/mmcv/parallel/distributed_deprecated.py:37
↓ 3 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class, ...)
annotator/uniformer/mmseg/models/losses/accuracy.py:4
↓ 3 callersFunctionallreduce_params
Allreduce parameters. Args: params (list[torch.Parameters]): List of parameters or buffers of a model. coalesce (bool
annotator/uniformer/mmcv/runner/dist_utils.py:99
↓ 3 callersFunctioncolor_val
Convert various input to color tuples. Args: color (:obj:`Color`/str/tuple/int/ndarray): Color inputs Returns: tuple[int]: A
annotator/uniformer/mmcv/visualization/color.py:24
↓ 3 callersFunctionconvert_video
Convert a video with ffmpeg. This provides a general api to ffmpeg, the executed command is:: `ffmpeg -y <pre_options> -i <in_file> <opt
annotator/uniformer/mmcv/video/processing.py:11
↓ 3 callersMethodcrop
Crop from ``img``
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:523
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:84
↓ 3 callersMethodevery_n_epochs
(self, runner, n)
annotator/uniformer/mmcv/runner/hooks/hook.py:55
↓ 3 callersMethodforward_train
Placeholder for Forward function for training.
annotator/uniformer/mmseg/models/segmentors/base.py:51
↓ 3 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:136
↓ 3 callersFunctionget_class_weight
Get class weight for loss function. Args: class_weight (list[float] | str | None): If class_weight is a str, take it as a fil
annotator/uniformer/mmseg/models/losses/utils.py:8
↓ 3 callersMethodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
annotator/uniformer/mmcv/fileio/file_client.py:994
↓ 3 callersFunctionimresize
Resize image to a given size. Args: img (ndarray): The input image. size (tuple[int]): Target size (w, h). return_scale (
annotator/uniformer/mmcv/image/geometric.py:51
↓ 3 callersFunctionimshow
Show an image. Args: img (str or ndarray): The image to be displayed. win_name (str): The window name. wait_time (int): V
annotator/uniformer/mmcv/visualization/image.py:9
↓ 3 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None or li
annotator/uniformer/mmcv/image/io.py:242
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:233
↓ 3 callersFunctionload_from_http
load checkpoint through HTTP or HTTPS scheme path. In distributed setting, this function only download checkpoint at local rank 0. Args:
annotator/uniformer/mmcv/runner/checkpoint.py:267
↓ 3 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
annotator/uniformer/mmseg/models/backbones/resnet.py:219
↓ 3 callersFunctionmake_layers
(block, no_relu_layers)
annotator/openpose/model.py:7
↓ 3 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
annotator/uniformer/mmseg/models/backbones/resnet.py:260
↓ 3 callersMethodput
(self, key, val)
annotator/uniformer/mmcv/video/io.py:30
↓ 3 callersMethodscatter
(self, inputs, kwargs, device_ids)
annotator/uniformer/mmcv/parallel/distributed_deprecated.py:52
↓ 3 callersMethodwarp_latents_independently
(self, latents, reference_flow)
text_to_video_pipeline.py:94
↓ 2 callersMethod__exit__
(self, type, value, traceback)
annotator/uniformer/mmcv/utils/timer.py:53
↓ 2 callersMethod__init__
(self, ocr_channels, scale=1, **kwargs)
annotator/uniformer/mmseg/models/decode_heads/ocr_head.py:97
↓ 2 callersMethod__init__
(self, in_channels, channels)
annotator/uniformer/mmseg/models/decode_heads/da_head.py:20
↓ 2 callersMethod__init__
(self, kernel_size, group_size, scale_factor)
annotator/uniformer/mmcv/ops/carafe.py:194
↓ 2 callersMethod__init__
(self, output_size, spatial_scale=1.0, sampling_ratio=0,
annotator/uniformer/mmcv/ops/deform_roi_pool.py:94
↓ 2 callersMethod__init__
(self, depth, num_stages=4, strides=(1, 2, 2, 2),
annotator/uniformer/mmcv/cnn/resnet.py:210
↓ 2 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
annotator/uniformer/mmcv/runner/dist_utils.py:145
↓ 2 callersFunction_any
Since built-in ``any`` works only when the element of iterable is not iterable, implement the function.
annotator/uniformer/mmcv/utils/testing.py:25
↓ 2 callersMethod_build_input_conv
(self, channel, conv_cfg, norm_cfg)
annotator/uniformer/mmcv/ops/merge_cells.py:78
↓ 2 callersMethod_dist_broadcast_coalesced
(self, tensors, buffer_size)
annotator/uniformer/mmcv/parallel/distributed_deprecated.py:29
↓ 2 callersMethod_do_evaluate
perform evaluation and save ckpt.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:269
↓ 2 callersMethod_dump_log
(self, log_dict, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:185
↓ 2 callersMethod_freeze_stages
Freeze stages param and norm stats.
annotator/uniformer/mmseg/models/backbones/resnet.py:581
↓ 2 callersMethod_get_coarse_point_feats
Sample from fine grained features. Args: prev_output (list[Tensor]): Prediction of previous decode head. points (Tens
annotator/uniformer/mmseg/models/decode_heads/point_head.py:147
↓ 2 callersMethod_get_fine_grained_point_feats
Sample from fine grained features. Args: x (list[Tensor]): Feature pyramid from by neck or backbone. points (Tensor):
annotator/uniformer/mmseg/models/decode_heads/point_head.py:123
↓ 2 callersFunction_get_mmcv_home
()
annotator/uniformer/mmcv/runner/checkpoint.py:30
↓ 2 callersFunction_get_mmcv_home
()
annotator/uniformer/mmcv_custom/checkpoint.py:30
↓ 2 callersMethod_get_real_position
(self)
annotator/uniformer/mmcv/video/io.py:124
↓ 2 callersMethod_get_weight
(self, weight)
annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:101
↓ 2 callersMethod_init_rule
Initialize rule, key_indicator, comparison_func, and best score. Here is the rule to determine which rule is used for key indicator w
annotator/uniformer/mmcv/runner/hooks/evaluation.py:153
↓ 2 callersFunction_initialize
(module, cfg, wholemodule=False)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:511
↓ 2 callersFunction_jpegflag
(flag='color', channel_order='bgr')
annotator/uniformer/mmcv/image/io.py:69
↓ 2 callersMethod_load_from_state_dict
Override default load function. AWS overrides the function _load_from_state_dict to recover weight_gamma and weight_beta if they are
annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:114
↓ 2 callersMethod_merge_a_into_b
merge dict ``a`` into dict ``b`` (non-inplace). Values in ``a`` will overwrite ``b``. ``b`` is copied first to avoid in-place modific
annotator/uniformer/mmcv/utils/config.py:274
↓ 2 callersFunction_pillow2array
Convert a pillow image to numpy array. Args: img (:obj:`PIL.Image.Image`): The image loaded using PIL flag (str): Flags specifyin
annotator/uniformer/mmcv/image/io.py:85
↓ 2 callersMethod_register_backend
(cls, name, backend, force=False, prefixes=None)
annotator/uniformer/mmcv/fileio/file_client.py:886
↓ 2 callersMethod_register_scheme
(cls, prefixes, loader, force=False)
annotator/uniformer/mmcv/runner/checkpoint.py:168
↓ 2 callersMethod_resize
(self, x, size)
annotator/uniformer/mmcv/ops/merge_cells.py:92
↓ 2 callersMethod_save_checkpoint
Save the current checkpoint and delete unwanted checkpoint.
annotator/uniformer/mmcv/runner/hooks/checkpoint.py:119
↓ 2 callersMethod_save_ckpt
Save the best checkpoint. It will compare the score according to the compare function, write related information (best score, best ch
annotator/uniformer/mmcv/runner/hooks/evaluation.py:314
↓ 2 callersFunction_scale_size
Rescale a size by a ratio. Args: size (tuple[int]): (w, h). scale (float | tuple(float)): Scaling factor. Returns: t
annotator/uniformer/mmcv/image/geometric.py:16
↓ 2 callersMethod_should_evaluate
Judge whether to perform evaluation. Here is the rule to judge whether to perform evaluation: 1. It will not perform evaluation durin
annotator/uniformer/mmcv/runner/hooks/evaluation.py:279
↓ 2 callersMethod_swap_ema_parameters
Swap the parameter of model with parameter in ema_buffer.
annotator/uniformer/mmcv/runner/hooks/ema.py:83
↓ 2 callersFunctionadd_watermark
Creates a watermark on the saved inference image. We request that you do not remove this to properly assign credit to Shi-Lab's work.
utils.py:23
↓ 2 callersMethodafter_epoch
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:22
↓ 2 callersMethodafter_iter
(self, runner)
annotator/uniformer/mmcv/runner/hooks/hook.py:28
← previousnext →101–200 of 1,788, ranked by callers