MCPcopy Create free account

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

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

Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:266
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:314
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:368
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:485
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:614
Functionget_model_complexity_info
Get complexity information of a model. This method can calculate FLOPs and parameter counts of a model with corresponding input shape. It can
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:36
Functionget_model_from_db_selection
(db_selection)
gradio_utils.py:65
Methodget_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:181
Methodget_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:210
Methodget_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:286
Methodget_regular_momentum
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:479
Methodget_text
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:43
Methodget_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:81
Methodget_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:164
Methodget_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:447
Methodget_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:499
Methodget_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:521
Methodget_text
(self, filepath, encoding='utf-8')
annotator/uniformer/mmcv/fileio/file_client.py:698
Functionget_video_from_canny_selection
(canny_selection)
gradio_utils.py:46
Functiongray2rgb
Convert a grayscale image to RGB image. Args: img (ndarray): The input image. Returns: ndarray: The converted RGB image.
annotator/uniformer/mmcv/image/colorspace.py:70
FunctionhandDetect
(candidate, subset, oriImg)
annotator/openpose/util.py:94
Methodheight
int: Height of video frames.
annotator/uniformer/mmcv/video/io.py:95
Methodhooks
list[:obj:`Hook`]: A list of registered hooks.
annotator/uniformer/mmcv/runner/base_runner.py:155
Functionimconvert
Convert an image from the src colorspace to dst colorspace. Args: img (ndarray): The input image. src (str): The source colorspac
annotator/uniformer/mmcv/image/colorspace.py:6
Functionimcrop
Crop image patches. 3 steps: scale the bboxes -> clip bboxes -> crop and pad. Args: img (ndarray): Image to be cropped. bbox
annotator/uniformer/mmcv/image/geometric.py:386
Functionimdenormalize
(img, mean, std, to_bgr=True)
annotator/uniformer/mmcv/image/photometric.py:48
Functionimequalize
Equalize the image histogram. This function applies a non-linear mapping to the input image, in order to create a uniform distribution of gra
annotator/uniformer/mmcv/image/photometric.py:131
Functionimflip
Flip an image horizontally or vertically. Args: img (ndarray): Image to be flipped. direction (str): The flip direction, either "
annotator/uniformer/mmcv/image/geometric.py:252
Functionimflip_
Inplace flip an image horizontally or vertically. Args: img (ndarray): Image to be flipped. direction (str): The flip direction,
annotator/uniformer/mmcv/image/geometric.py:272
Functionimfrombytes
Read an image from bytes. Args: content (bytes): Image bytes got from files or other streams. flag (str): Same as :func:`imread`.
annotator/uniformer/mmcv/image/io.py:203
Functioniminvert
Invert (negate) an image. Args: img (ndarray): Image to be inverted. Returns: ndarray: The inverted image.
annotator/uniformer/mmcv/image/photometric.py:59
Functionimnormalize
Normalize an image with mean and std. Args: img (ndarray): Image to be normalized. mean (ndarray): The mean to be used for normal
annotator/uniformer/mmcv/image/photometric.py:9
Functionimpad_to_multiple
Pad an image to ensure each edge to be multiple to some number. Args: img (ndarray): Image to be padded. divisor (int): Padded im
annotator/uniformer/mmcv/image/geometric.py:522
Functionimrescale
Resize image while keeping the aspect ratio. Args: img (ndarray): The input image. scale (float | tuple[int]): The scaling factor
annotator/uniformer/mmcv/image/geometric.py:221
Functionimresize_like
Resize image to the same size of a given image. Args: img (ndarray): The input image. dst_img (ndarray): The target image.
annotator/uniformer/mmcv/image/geometric.py:162
Functionimresize_to_multiple
Resize image according to a given size or scale factor and then rounds up the the resized or rescaled image size to the nearest value that can be
annotator/uniformer/mmcv/image/geometric.py:98
Functionimrotate
Rotate an image. Args: img (ndarray): Image to be rotated. angle (float): Rotation angle in degrees, positive values mean
annotator/uniformer/mmcv/image/geometric.py:292
Functionimshear
Shear an image. Args: img (ndarray): Image to be sheared with format (h, w) or (h, w, c). magnitude (int | float): Th
annotator/uniformer/mmcv/image/geometric.py:611
Functionimshow_bboxes
Draw bboxes on an image. Args: img (str or ndarray): The image to be displayed. bboxes (list or ndarray): A list of ndarray of sh
annotator/uniformer/mmcv/visualization/image.py:30
Functionimshow_det_bboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray):
annotator/uniformer/mmcv/visualization/image.py:84
Functionimtranslate
Translate an image. Args: img (ndarray): Image to be translated with format (h, w) or (h, w, c). offset (int | float)
annotator/uniformer/mmcv/image/geometric.py:680
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:181
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:267
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:320
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:365
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:425
Functioninit_dist
(launcher, backend='nccl', **kwargs)
annotator/uniformer/mmcv/runner/dist_utils.py:14
Methodinit_weights
Initialize the weights in segmentor. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to N
annotator/uniformer/mmseg/models/segmentors/base.py:65
Methodinit_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:48
Methodinit_weights
(self)
annotator/uniformer/mmseg/models/necks/fpn.py:157
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/unet.py:412
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/cgnet.py:338
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/vit.py:314
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:220
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/hrnet.py:484
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:360
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:136
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/resnet.py:600
Methodinit_weights
Initialize weights of classification layer.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:133
Methodinit_weights
Initialize weights of classification layer.
annotator/uniformer/mmseg/models/decode_heads/point_head.py:104
Methodinit_weights
Initialize the weights.
annotator/uniformer/mmcv/runner/base_module.py:56
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/alexnet.py:43
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/vgg.py:125
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/resnet.py:265
Methodinner_iter
int: Iteration in an epoch.
annotator/uniformer/mmcv/runner/base_runner.py:170
Methodis_init
(self)
annotator/uniformer/mmcv/runner/base_module.py:53
Functionis_jit_tracing
()
annotator/uniformer/mmcv/utils/trace.py:8
Functionis_norm
Check if a layer is a normalization layer. Args: layer (nn.Module): The layer to be checked. exclude (type | tuple[type]): Types
annotator/uniformer/mmcv/cnn/bricks/norm.py:122
Methodis_running
bool: indicate whether the timer is running
annotator/uniformer/mmcv/utils/timer.py:45
Methodisdir
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:240
Methodisdir
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:592
Methodisfile
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:605
Methoditer
int: Current iteration.
annotator/uniformer/mmcv/runner/base_runner.py:165
Functionjit
(func=None, check_input=None, full_shape=True, derivate=False,
annotator/uniformer/mmcv/utils/parrots_jit.py:12
Methodjoin_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:617
Functionlinear_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:418
Functionlist_cast
Cast elements of an iterable object into a list of some type. A partial method of :func:`iter_cast`.
annotator/uniformer/mmcv/utils/misc.py:112
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: Petrel has no concept of directori
annotator/uniformer/mmcv/fileio/file_client.py:331
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
annotator/uniformer/mmcv/fileio/file_client.py:638
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
annotator/uniformer/mmcv/fileio/file_client.py:1123
Functionlist_from_file
Load a text file and parse the content as a list of strings. Note: In v1.3.16 and later, ``list_from_file`` supports loading a text file
annotator/uniformer/mmcv/fileio/parse.py:8
Functionload
Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. Note: In v1.3.16 a
annotator/uniformer/mmcv/fileio/io.py:18
Functionload_db_model
(evt: gr.SelectData)
app_canny_db.py:17
Functionload_ext
(name, funcs)
annotator/uniformer/mmcv/utils/ext_loader.py:12
Functionload_from_ceph
load checkpoint through the file path prefixed with s3. In distributed setting, this function download ckpt at all ranks to different temporary
annotator/uniformer/mmcv/runner/checkpoint.py:327
Methodload_from_fileobj
(self, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:11
Methodload_from_fileobj
(self, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:14
Methodload_from_fileobj
(self, file)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:27
Functionload_from_local
load checkpoint by local file path. Args: filename (str): local checkpoint file path map_location (str, optional): Same as :func:
annotator/uniformer/mmcv/runner/checkpoint.py:249
Functionload_from_mmcls
load checkpoint through the file path prefixed with mmcls. Args: filename (str): checkpoint file path with mmcls prefix map_locat
annotator/uniformer/mmcv/runner/checkpoint.py:431
Functionload_from_openmmlab
load checkpoint through the file path prefixed with open-mmlab or openmmlab. Args: filename (str): checkpoint file path with open-mml
annotator/uniformer/mmcv/runner/checkpoint.py:391
Methodload_from_path
(self, filepath, mode='r', **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:24
Methodload_from_path
(self, filepath, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:14
Functionload_from_pavi
load checkpoint through the file path prefixed with pavi. In distributed setting, this function download ckpt at all ranks to different temporary
annotator/uniformer/mmcv/runner/checkpoint.py:295
Functionload_from_torchvision
load checkpoint through the file path prefixed with modelzoo or torchvision. Args: filename (str): checkpoint file path with modelzoo
annotator/uniformer/mmcv/runner/checkpoint.py:368
Functionload_midas_transform
(model_type)
annotator/midas/api.py:32
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py:47
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:204
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:69
Methodlog
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:44
← previousnext →1,501–1,600 of 1,788, ranked by callers