MCPcopy Create free account

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

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

Methodscope
(self)
annotator/uniformer/mmcv/utils/registry.py:175
Functionset_default
Set default json values for non-serializable values. It helps convert ``set``, ``range`` and ``np.ndarray`` data types to list. It also conve
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:9
Functionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
annotator/uniformer/mmseg/apis/train.py:14
Functionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
annotator/uniformer/mmcv/runner/utils.py:70
Methodsimple_test
Simple test with single image.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:268
Functionsingle_gpu_test
Test model with a single gpu. This method tests model with a single gpu and displays test progress bar. Args: model (nn.Module): Mod
annotator/uniformer/mmcv/engine/test.py:15
Functionskip_no_elena
(func)
annotator/uniformer/mmcv/utils/parrots_jit.py:36
Functionslice_list
Slice a list into several sub lists by a list of given length. Args: in_list (list): The list to be sliced. lens(int or list): Th
annotator/uniformer/mmcv/utils/misc.py:168
Functionsoft_nms
Dispatch to only CPU Soft NMS implementations. The input can be either a torch tensor or numpy array. The returned type will always be the sa
annotator/uniformer/mmcv/ops/nms.py:181
Functionsolarize
Solarize an image (invert all pixel values above a threshold) Args: img (ndarray): Image to be solarized. thr (int): Threshold fo
annotator/uniformer/mmcv/image/photometric.py:71
Functionsparse_flow_from_bytes
Read the optical flow in KITTI datasets from bytes. This function is modified from RAFT load the `KITTI datasets <https://github.com/princeto
annotator/uniformer/mmcv/video/optflow.py:234
Functionstart_flops_count
Activate the computation of mean flops consumption per image. A method to activate the computation of mean flops consumption per image. which
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:355
Functionstop_flops_count
Stop computing the mean flops consumption per image. A method to stop computing the mean flops consumption per image, which will be available
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:378
Methodsymbolic
(g, features, masks, kernel_size, group_size, scale_factor)
annotator/uniformer/mmcv/ops/carafe.py:20
Methodsymbolic
(g, features, masks, kernel_size, group_size, scale_factor)
annotator/uniformer/mmcv/ops/carafe.py:103
Methodsymbolic
(g, input, boxes, pool_size)
annotator/uniformer/mmcv/ops/border_align.py:19
Methodsymbolic
(g, bboxes, scores, iou_threshold, offset, score_threshold, max_num)
annotator/uniformer/mmcv/ops/nms.py:36
Methodsymbolic
(g, boxes, scores, iou_threshold, sigma, min_score, method, offset)
annotator/uniformer/mmcv/ops/nms.py:100
Methodsymbolic
(g, input, offset, mask, weight, bias, stride, padding, dilation, groups, deform_groups)
annotator/uniformer/mmcv/ops/modulated_deform_conv.py:22
Methodsymbolic
(g, features, mask, weight, bias, padding, stride)
annotator/uniformer/mmcv/ops/masked_conv.py:19
Methodsymbolic
(g, input, psa_type, mask_size)
annotator/uniformer/mmcv/ops/psa_mask.py:15
Methodsymbolic
(g, input)
annotator/uniformer/mmcv/ops/corner_pool.py:20
Methodsymbolic
(g, input)
annotator/uniformer/mmcv/ops/corner_pool.py:41
Methodsymbolic
(g, input)
annotator/uniformer/mmcv/ops/corner_pool.py:62
Methodsymbolic
(g, input)
annotator/uniformer/mmcv/ops/corner_pool.py:83
Methodsymbolic
(g, input, rois, output_size, spatial_scale, sampling_ratio, pool_mode, aligned)
annotator/uniformer/mmcv/ops/roi_align.py:17
Methodsymbolic
(g, input, offset, weight, stride,
annotator/uniformer/mmcv/ops/deform_conv.py:25
Methodsymbolic
(g, input, rois, offset, output_size, spatial_scale, sampling_ratio, gamma)
annotator/uniformer/mmcv/ops/deform_roi_pool.py:16
Methodsymbolic
(g, input, running_mean, running_var, weight, bias, momentum, eps, group, group_size, stats_m
annotator/uniformer/mmcv/ops/sync_bn.py:22
Methodsymbolic
(g, features, rois, out_size, spatial_scale, sample_num, aligned, clockwise)
annotator/uniformer/mmcv/ops/roi_align_rotated.py:14
Methodsymbolic
(g, input, rois, output_size, spatial_scale)
annotator/uniformer/mmcv/ops/roi_pool.py:17
Methodsymbolic
(g, input, target, gamma, alpha, weight, reduction)
annotator/uniformer/mmcv/ops/focal_loss.py:18
Methodsymbolic
(g, input, target, gamma, alpha, weight, reduction)
annotator/uniformer/mmcv/ops/focal_loss.py:112
Functionsymlink
(src, dst, overwrite=True, **kwargs)
annotator/uniformer/mmcv/utils/path.py:33
Methodterminal_width
(self)
annotator/uniformer/mmcv/utils/progressbar.py:22
Methodtext
(self)
annotator/uniformer/mmcv/utils/config.py:403
Methodto_kwargs
(self, inputs, kwargs, device_id)
annotator/uniformer/mmcv/parallel/distributed.py:21
Functiontrack_iter_progress
Track the progress of tasks iteration or enumeration with a progress bar. Tasks are yielded with a simple for-loop. Args: tasks
annotator/uniformer/mmcv/utils/progressbar.py:179
Functiontrack_parallel_progress
Track the progress of parallel task execution with a progress bar. The built-in :mod:`multiprocessing` module is used for process pools and t
annotator/uniformer/mmcv/utils/progressbar.py:109
Methodtrain
Convert the model into training mode while keep normalization layer freezed.
annotator/uniformer/mmseg/models/backbones/unet.py:389
Methodtrain
Convert the model into training mode will keeping the normalization layer freezed.
annotator/uniformer/mmseg/models/backbones/cgnet.py:359
Methodtrain
(self, mode=True)
annotator/uniformer/mmseg/models/backbones/vit.py:454
Methodtrain
(self, mode=True)
annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:249
Methodtrain
Convert the model into training mode will keeping the normalization layer freezed.
annotator/uniformer/mmseg/models/backbones/hrnet.py:547
Methodtrain
(self, mode=True)
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:174
Methodtrain
Convert the model into training mode while keep normalization layer freezed.
annotator/uniformer/mmseg/models/backbones/resnet.py:649
Methodtrain
(self)
annotator/uniformer/mmcv/runner/base_runner.py:185
Methodtrain
(self, data_loader, **kwargs)
annotator/uniformer/mmcv/runner/epoch_based_runner.py:40
Methodtrain
(self, data_loader, **kwargs)
annotator/uniformer/mmcv/runner/iter_based_runner.py:54
Methodtrain
(self, mode=True)
annotator/uniformer/mmcv/cnn/vgg.py:159
Methodtrain
(self, mode=True)
annotator/uniformer/mmcv/cnn/resnet.py:295
Functiontrain_segmentor
Launch segmentor training.
annotator/uniformer/mmseg/apis/train.py:33
Methodtrain_step
The iteration step during training. This method defines an iteration step during training, except for the back propagation and optimi
annotator/uniformer/mmseg/models/segmentors/base.py:126
Methodtrain_step
train_step() API for module wrapped by DistributedDataParallel. This method is basically the same as ``DistributedDataParallel.forwar
annotator/uniformer/mmcv/parallel/distributed.py:29
Methodtrain_step
(self, *inputs, **kwargs)
annotator/uniformer/mmcv/parallel/distributed_deprecated.py:60
Functiontransfer
(model, model_weights)
annotator/openpose/util.py:30
Functiontuple_cast
Cast elements of an iterable object into a tuple of some type. A partial method of :func:`iter_cast`.
annotator/uniformer/mmcv/utils/misc.py:120
Functionupfirdn2d
UpFRIDn for 2d features. UpFIRDn is short for upsample, apply FIR filter and downsample. More details can be found in: https://www.mathwo
annotator/uniformer/mmcv/ops/upfirdn2d.py:243
Functionupsample_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:404
Functionuse_backend
Select a backend for image decoding. Args: backend (str): The image decoding backend type. Options are `cv2`, `pillow`, `turbojpe
annotator/uniformer/mmcv/image/io.py:43
Methodval
(self)
annotator/uniformer/mmcv/runner/base_runner.py:189
Methodval
(self, data_loader, **kwargs)
annotator/uniformer/mmcv/runner/epoch_based_runner.py:58
Methodval
(self, data_loader, **kwargs)
annotator/uniformer/mmcv/runner/iter_based_runner.py:72
Methodval_step
The iteration step during validation. This method shares the same signature as :func:`train_step`, but used during val epochs. Note t
annotator/uniformer/mmseg/models/segmentors/base.py:162
Methodval_step
val_step() API for module wrapped by DistributedDataParallel. This method is basically the same as ``DistributedDataParallel.forward(
annotator/uniformer/mmcv/parallel/distributed.py:72
Methodval_step
(self, *inputs, **kwargs)
annotator/uniformer/mmcv/parallel/distributed_deprecated.py:66
Methodvcap
:obj:`cv2.VideoCapture`: The raw VideoCapture object.
annotator/uniformer/mmcv/video/io.py:80
Functionvoc_classes
Pascal VOC class names for external use.
annotator/uniformer/mmseg/core/evaluation/class_names.py:44
Functionvoc_palette
Pascal VOC palette for external use.
annotator/uniformer/mmseg/core/evaluation/class_names.py:105
Functionweighted_loss
Create a weighted version of a given loss function. To use this decorator, the loss function must have the signature like `loss_func(pred, ta
annotator/uniformer/mmseg/models/losses/utils.py:78
Methodwidth
int: Width of video frames.
annotator/uniformer/mmcv/video/io.py:90
Methodwith_auxiliary_head
bool: whether the segmentor has auxiliary head
annotator/uniformer/mmseg/models/segmentors/base.py:29
Methodwith_decode_head
bool: whether the segmentor has decode head
annotator/uniformer/mmseg/models/segmentors/base.py:35
Methodwith_neck
bool: whether the segmentor has neck
annotator/uniformer/mmseg/models/segmentors/base.py:24
Functionworker_init_fn
Worker init func for dataloader. The seed of each worker equals to num_worker * rank + worker_id + user_seed Args: worker_id (int):
annotator/uniformer/mmseg/datasets/builder.py:155
Methodworld_size
int: Number of processes participating in the job. (distributed training)
annotator/uniformer/mmcv/runner/base_runner.py:149
Functionwrap
(func)
annotator/uniformer/mmcv/utils/misc.py:223
Functionwrap
(cls)
annotator/uniformer/mmcv/fileio/io.py:147
Functionwrapped_func
(*args, **kwargs)
annotator/uniformer/mmcv/utils/misc.py:226
Functionwrapper
(pred, target, weight=None, reduction='mean',
annotator/uniformer/mmseg/models/losses/utils.py:110
Functionwrapper
(func)
annotator/uniformer/mmcv/utils/parrots_jit.py:19
Functionwrapper
(*args, **kwargs)
annotator/uniformer/mmcv/runner/dist_utils.py:91
Functionwrapper
(*args, **kwargs)
annotator/uniformer/mmcv/parallel/data_container.py:10
Functionwrapper_inner
(*args, **kargs)
annotator/uniformer/mmcv/utils/parrots_jit.py:21
Functionwrite_depth
Write depth map to pfm and png file. Args: path (str): filepath without extension depth (array): depth
annotator/midas/utils.py:165
Methodwrite_frame
(file_idx)
annotator/uniformer/mmcv/video/io.py:226
Functionycbcr2bgr
Convert a YCbCr image to BGR image. The bgr version of ycbcr2rgb. It implements the ITU-R BT.601 conversion for standard-definition telev
annotator/uniformer/mmcv/image/colorspace.py:243
Functionycbcr2rgb
Convert a YCbCr image to RGB image. This function produces the same results as Matlab's ycbcr2rgb function. It implements the ITU-R BT.601 co
annotator/uniformer/mmcv/image/colorspace.py:211
← previous1,701–1,788 of 1,788, ranked by callers