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
Method
get_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:266
Method
get_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:314
Method
get_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:368
Method
get_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:485
Method
get_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:614
Function
get_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
Function
get_model_from_db_selection
(db_selection)
gradio_utils.py:65
Method
get_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:181
Method
get_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:210
Method
get_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:286
Method
get_regular_momentum
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:479
Method
get_text
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:43
Method
get_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:81
Method
get_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
Method
get_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:447
Method
get_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:499
Method
get_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
Method
get_text
(self, filepath, encoding='utf-8')
annotator/uniformer/mmcv/fileio/file_client.py:698
Function
get_video_from_canny_selection
(canny_selection)
gradio_utils.py:46
Function
gray2rgb
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
Function
handDetect
(candidate, subset, oriImg)
annotator/openpose/util.py:94
Method
height
int: Height of video frames.
annotator/uniformer/mmcv/video/io.py:95
Method
hooks
list[:obj:`Hook`]: A list of registered hooks.
annotator/uniformer/mmcv/runner/base_runner.py:155
Function
imconvert
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
Function
imcrop
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
Function
imdenormalize
(img, mean, std, to_bgr=True)
annotator/uniformer/mmcv/image/photometric.py:48
Function
imequalize
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
Function
imflip
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
Function
imflip_
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
Function
imfrombytes
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
Function
iminvert
Invert (negate) an image. Args: img (ndarray): Image to be inverted. Returns: ndarray: The inverted image.
annotator/uniformer/mmcv/image/photometric.py:59
Function
imnormalize
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
Function
impad_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
Function
imrescale
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
Function
imresize_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
Function
imresize_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
Function
imrotate
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
Function
imshear
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
Function
imshow_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
Function
imshow_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
Function
imtranslate
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
Method
init
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:181
Method
init
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:267
Method
init
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:320
Method
init
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:365
Method
init
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:425
Function
init_dist
(launcher, backend='nccl', **kwargs)
annotator/uniformer/mmcv/runner/dist_utils.py:14
Method
init_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
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/cascade_encoder_decoder.py:48
Method
init_weights
(self)
annotator/uniformer/mmseg/models/necks/fpn.py:157
Method
init_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
Method
init_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
Method
init_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/vit.py:314
Method
init_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:220
Method
init_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
Method
init_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:360
Method
init_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:136
Method
init_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
Method
init_weights
Initialize weights of classification layer.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:133
Method
init_weights
Initialize weights of classification layer.
annotator/uniformer/mmseg/models/decode_heads/point_head.py:104
Method
init_weights
Initialize the weights.
annotator/uniformer/mmcv/runner/base_module.py:56
Method
init_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/alexnet.py:43
Method
init_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/vgg.py:125
Method
init_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/resnet.py:265
Method
inner_iter
int: Iteration in an epoch.
annotator/uniformer/mmcv/runner/base_runner.py:170
Method
is_init
(self)
annotator/uniformer/mmcv/runner/base_module.py:53
Function
is_jit_tracing
()
annotator/uniformer/mmcv/utils/trace.py:8
Function
is_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
Method
is_running
bool: indicate whether the timer is running
annotator/uniformer/mmcv/utils/timer.py:45
Method
isdir
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
Method
isdir
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
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:605
Method
iter
int: Current iteration.
annotator/uniformer/mmcv/runner/base_runner.py:165
Function
jit
(func=None, check_input=None, full_shape=True, derivate=False,
annotator/uniformer/mmcv/utils/parrots_jit.py:12
Method
join_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
Function
linear_flops_counter_hook
(module, input, output)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:418
Function
list_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
Method
list_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
Method
list_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
Method
list_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
Function
list_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
Function
load
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
Function
load_db_model
(evt: gr.SelectData)
app_canny_db.py:17
Function
load_ext
(name, funcs)
annotator/uniformer/mmcv/utils/ext_loader.py:12
Function
load_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
Method
load_from_fileobj
(self, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:11
Method
load_from_fileobj
(self, file, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:14
Method
load_from_fileobj
(self, file)
annotator/uniformer/mmcv/fileio/handlers/json_handler.py:27
Function
load_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
Function
load_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
Function
load_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
Method
load_from_path
(self, filepath, mode='r', **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:24
Method
load_from_path
(self, filepath, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:14
Function
load_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
Function
load_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
Function
load_midas_transform
(model_type)
annotator/midas/api.py:32
Method
log
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py:47
Method
log
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:204
Method
log
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:69
Method
log
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:44
← previous
next →
1,501–1,600 of 1,788, ranked by callers