MCPcopy Create free account

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

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

Methodforward
Args: points_dist (Tensor): (B, N, N) Distance between each point pair. num_points (int): Number of points in the sam
annotator/uniformer/mmcv/ops/furthest_point_sample.py:55
Methodforward
(ctx, features, rois, out_size, spatial_scale,
annotator/uniformer/mmcv/ops/roi_align_rotated.py:39
Methodforward
(self, features, rois)
annotator/uniformer/mmcv/ops/roi_align_rotated.py:173
Methodforward
forward function of Criss-Cross Attention. Args: x (Tensor): Input feature. \ shape (batch_size, in_channels, hei
annotator/uniformer/mmcv/ops/cc_attention.py:52
Methodforward
(ctx, input, rois, output_size, spatial_scale=1.0)
annotator/uniformer/mmcv/ops/roi_pool.py:26
Methodforward
(self, input, rois)
annotator/uniformer/mmcv/ops/roi_pool.py:79
Methodforward
(ctx, input, target, gamma=2.0, alpha=0.25,
annotator/uniformer/mmcv/ops/focal_loss.py:29
Methodforward
(self, input, target)
annotator/uniformer/mmcv/ops/focal_loss.py:97
Methodforward
(ctx, input, target, gamma=2.0, alpha=0.25,
annotator/uniformer/mmcv/ops/focal_loss.py:123
Methodforward
(self, input, target)
annotator/uniformer/mmcv/ops/focal_loss.py:203
Methodforward
Args: features (Tensor): (B, C, N) features to gather. indices (Tensor): (B, M) where M is the number of points.
annotator/uniformer/mmcv/ops/gather_points.py:14
Methodforward
GPU version of multi-scale deformable attention. Args: value (Tensor): The value has shape (bs, num_keys, mum_hea
annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:23
Methodforward
Forward Function of MultiScaleDeformAttention. Args: query (Tensor): Query of Transformer with shape (num_query,
annotator/uniformer/mmcv/ops/multi_scale_deform_attn.py:252
Methodforward
Args: points_xyz (Tensor): (B, N, 3) xyz coordinates of the features. center_xyz (Tensor): (B, npoint, 3) coordinates
annotator/uniformer/mmcv/ops/group_points.py:67
Methodforward
Args: xyz (Tensor): (B, N, 3) xyz coordinates of the features. new_xyz (Tensor): new xyz coordinates of the features.
annotator/uniformer/mmcv/ops/group_points.py:145
Methodforward
Args: features (Tensor): (B, C, N) tensor of features to group. indices (Tensor): (B, npoint, nsample) the indices of
annotator/uniformer/mmcv/ops/group_points.py:177
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/alexnet.py:54
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/vgg.py:141
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/resnet.py:45
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/resnet.py:110
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/resnet.py:279
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/drop.py:43
Methodforward
(self, x_input)
annotator/uniformer/mmcv/cnn/bricks/generalized_attention.py:216
Methodforward
(self, x, activate=True, norm=True)
annotator/uniformer/mmcv/cnn/bricks/conv_module.py:196
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:49
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:109
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/context_block.py:111
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/upsample.py:44
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/depthwise_separable_conv_module.py:93
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/hsigmoid.py:31
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/swish.py:24
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/scale.py:20
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:160
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/conv2d_adaptive_padding.py:45
Methodforward
Forward function for `MultiheadAttention`. **kwargs allow passing a more general data flow when combining with other operations in `t
annotator/uniformer/mmcv/cnn/bricks/transformer.py:112
Methodforward
Forward function for `FFN`. The function would add x to the output tensor if residue is None.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:269
Methodforward
Forward function for `TransformerDecoderLayer`. **kwargs contains some specific arguments of attentions. Args: query (Te
annotator/uniformer/mmcv/cnn/bricks/transformer.py:412
Methodforward
Forward function for `TransformerCoder`. Args: query (Tensor): Input query with shape `(num_queries, bs, embed_di
annotator/uniformer/mmcv/cnn/bricks/transformer.py:549
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/hswish.py:28
Methodforward
Forward function. Args: x (torch.Tensor): The input tensor. Returns: torch.Tensor: Clamped tensor.
annotator/uniformer/mmcv/cnn/bricks/activation.py:36
Methodforward
(self, input)
annotator/uniformer/mmcv/cnn/bricks/activation.py:70
Methodforward
(ctx, x, new_shape)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:31
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:65
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:88
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:111
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:131
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:149
Methodforward
(self, x)
annotator/uniformer/mmcv/cnn/bricks/wrappers.py:168
Methodforward
(self, *inputs, **kwargs)
annotator/uniformer/mmcv/parallel/distributed_deprecated.py:55
Methodforward
Override the original forward function. The main difference lies in the CPU inference where the data in :class:`DataContainers` will
annotator/uniformer/mmcv/parallel/data_parallel.py:30
Methodforward
(self, x)
annotator/openpose/model.py:114
Methodforward
(self, x)
annotator/openpose/model.py:204
Methodforward
(self, x)
annotator/midas/api.py:165
Methodforward
(self, x)
annotator/midas/midas/vit.py:14
Methodforward
(self, x)
annotator/midas/midas/vit.py:23
Methodforward
(self, x)
annotator/midas/midas/vit.py:38
Methodforward
(self, x)
annotator/midas/midas/vit.py:51
Methodforward
Forward pass. Args: x (tensor): input data (image) Returns: tensor: depth
annotator/midas/midas/midas_net_custom.py:73
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: interpolated data
annotator/midas/midas/blocks.py:138
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
annotator/midas/midas/blocks.py:177
Methodforward
Forward pass. Returns: tensor: output
annotator/midas/midas/blocks.py:209
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
annotator/midas/midas/blocks.py:263
Methodforward
Forward pass. Returns: tensor: output
annotator/midas/midas/blocks.py:320
Methodforward
Forward pass. Args: x (tensor): input data (image) Returns: tensor: depth
annotator/midas/midas/midas_net.py:49
Methodforward
(self, x)
annotator/midas/midas/dpt_depth.py:107
Methodforward_dummy
Dummy forward function.
annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:130
Functionforward_flex
(self, x)
annotator/midas/midas/vit.py:117
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:190
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
annotator/uniformer/mmseg/models/decode_heads/point_head.py:203
Methodforward_test
Forward function for testing, ignore se_loss.
annotator/uniformer/mmseg/models/decode_heads/enc_head.py:151
Methodforward_test
Forward function for testing. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
annotator/uniformer/mmseg/models/decode_heads/cascade_decode_head.py:41
Methodforward_test
Forward function for testing, only ``pam_cam`` is used.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:160
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:170
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
annotator/uniformer/mmseg/models/decode_heads/point_head.py:165
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. prev_output (Tensor): Th
annotator/uniformer/mmseg/models/decode_heads/cascade_decode_head.py:18
Methodfourcc
str: "Four character code" of the video.
annotator/uniformer/mmcv/video/io.py:115
Methodfps
float: FPS of the video.
annotator/uniformer/mmcv/video/io.py:105
Methodframe_cnt
int: Total frames of the video.
annotator/uniformer/mmcv/video/io.py:110
Functionframes2video
Read the frame images from a directory and join them as a video. Args: frame_dir (str): The directory containing video frames. vi
annotator/uniformer/mmcv/video/io.py:276
Functionfuse_conv_bn
Recursively fuse conv and bn in a module. During inference, the functionary of batch norm layers is turned off but only the mean and var alon
annotator/uniformer/mmcv/cnn/utils/fuse_conv_bn.py:27
Functionfuse_model
(m)
annotator/midas/midas/midas_net_custom.py:109
Methodgaussian
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:116
Methodget
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:39
Methodget
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:72
Methodget
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:440
Methodget
Get values according to the filepath. Args: filepath (str | obj:`Path`): Here, filepath is the lmdb key.
annotator/uniformer/mmcv/fileio/file_client.py:488
Methodget
Read data from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:508
Functionget_canny_name_from_id
(id)
gradio_utils.py:85
Functionget_classes
Get class names of a dataset.
annotator/uniformer/mmseg/core/evaluation/class_names.py:121
Methodget_classifier
(self)
annotator/uniformer/mmseg/models/backbones/uniformer.py:376
Functionget_db_name_from_id
(id)
gradio_utils.py:80
Methodget_local_path
Download a file from ``filepath`` and return a temporary path. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It
annotator/uniformer/mmcv/fileio/file_client.py:300
Methodget_local_path
Only for unified API and do nothing.
annotator/uniformer/mmcv/fileio/file_client.py:633
Methodget_local_path
Download a file from ``filepath``. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It can be called with ``with`
annotator/uniformer/mmcv/fileio/file_client.py:703
Methodget_local_path
Download data from ``filepath`` and write the data to local path. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It
annotator/uniformer/mmcv/fileio/file_client.py:1095
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:162
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:193
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:220
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:233
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:252
← previousnext →1,401–1,500 of 1,788, ranked by callers