MCPcopy Create free account

hub / github.com/IDEA-Research/DWPose / functions

Functions7,103 in github.com/IDEA-Research/DWPose

↓ 2 callersFunctionallreduce_grads
Allreduce gradients. Args: params (list[torch.Parameters]): List of parameters of a model coalesce (bool, optional): Whether allr
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/dist_utils.py:121
↓ 2 callersFunctionanchor
(name)
mmpose/docs/zh_cn/stats.py:12
↓ 2 callersFunctionanchor
(name)
mmpose/docs/en/stats.py:12
↓ 2 callersMethodarea
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:143
↓ 2 callersMethodarea
(self)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:156
↓ 2 callersFunctionassert_fx_safe
An FX-tracing safe version of assert. Avoids erroneous type assertion triggering when types are masked inside an fx.proxy.Proxy object during
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/tracing.py:45
↓ 2 callersMethodaverage
Get the average value of current window.
mmpose/mmpose/utils/timer.py:26
↓ 2 callersFunctionbatch_heatmap_nms
Apply NMS on a batch of heatmaps. Args: batch_heatmaps (Tensor): batch heatmaps in shape (B, K, H, W) kernel_size (int): The kern
mmpose/mmpose/codecs/utils/post_processing.py:205
↓ 2 callersFunctionbatched_nms_rotated
Performs non-maximum suppression in a batched fashion. Each index value correspond to a category, and NMS will not be applied between el
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/nms.py:94
↓ 2 callersFunctionbbox_clip
Clip bboxes to fit the image shape. Args: bboxes (ndarray): Shape (..., 4*k) img_shape (tuple[int]): (height, width) of the image
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:342
↓ 2 callersMethodbefore_epoch
(self, runner)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/hook.py:19
↓ 2 callersMethodbefore_iter
(self, runner)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/hook.py:25
↓ 2 callersFunctionbgr2gray
Convert a BGR image to grayscale image. Args: img (ndarray): The input image. keepdim (bool): If False (by default), then return
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/colorspace.py:22
↓ 2 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to a given probability value.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:122
↓ 2 callersFunctionbicubic_degradation
Args: x: HxWxC image, [0, 1] sf: down-scale factor Return: bicubicly downsampled LR image
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan_light.py:227
↓ 2 callersFunctionbicubic_degradation
Args: x: HxWxC image, [0, 1] sf: down-scale factor Return: bicubicly downsampled LR image
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan.py:228
↓ 2 callersFunctionbox_iou
(boxes1, boxes2)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/box_ops.py:24
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/evaluation/rotated_coco_evaluation.py:34
↓ 2 callersMethodbuild_combined_dataset
(self, **kwargs)
mmpose/tests/test_datasets/test_datasets/test_dataset_wrappers/test_combined_dataset.py:11
↓ 2 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/builder.py:78
↓ 2 callersFunctionbuild_dataset
Build datasets.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/builder.py:61
↓ 2 callersMethodbuild_from_config
(config)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas.py:352
↓ 2 callersFunctionbuild_head_info
Build the head information string. Args: head_dict (Dict): Dictionary of fields in the head configuration. Returns: str: Head
mmpose/mmpose/models/utils/check_and_update_config.py:198
↓ 2 callersFunctionbuild_loss
Build loss.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/builder.py:30
↓ 2 callersFunctionbuild_mask_head
Build a mask head defined by `cfg.MODEL.ROI_MASK_HEAD.NAME`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/mask_head.py:293
↓ 2 callersFunctionbuild_proposal_generator
Build a proposal generator from `cfg.MODEL.PROPOSAL_GENERATOR.NAME`. The name can be "PrecomputedProposals" to use no proposal generator.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/proposal_generator/build.py:15
↓ 2 callersFunctionbuild_resnet_backbone
Create a ResNet instance from config. Returns: ResNet: a :class:`ResNet` instance.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/resnet.py:614
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/defaults.py:539
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you need a l
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/data/tokenizer.py:42
↓ 2 callersMethodcapacity
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/video/io.py:23
↓ 2 callersFunctionchange_dataset
(config, new_dataset)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/config.py:435
↓ 2 callersMethodcheck_data_info_keys
(self, data_info: dict, data_mode: str = 'topdown')
mmpose/tests/test_datasets/test_datasets/test_face_datasets/test_lapa_dataset.py:24
↓ 2 callersMethodcheck_norm_state
Check if norm layer is in correct train state.
mmpose/tests/test_models/test_backbones/test_mobilenet_v2.py:29
↓ 2 callersMethodcheck_norm_state
Check if norm layer is in correct train state.
mmpose/tests/test_models/test_backbones/test_shufflenet_v2.py:29
↓ 2 callersMethodcheck_norm_state
Check if norm layer is in correct train state.
mmpose/tests/test_models/test_backbones/test_shufflenet_v1.py:29
↓ 2 callersMethodcheck_norm_state
Check if norm layer is in correct train state.
mmpose/tests/test_models/test_backbones/test_seresnet.py:29
↓ 2 callersFunctioncheck_outside_inside
(segments_info, connect_idx)
ControlNet-v1-1-nightly/annotator/mlsd/utils.py:406
↓ 2 callersFunctioncheck_prerequisites
A decorator factory to check if prerequisites are satisfied. Args: prerequisites (str of list[str]): Prerequisites to be checked.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/misc.py:206
↓ 2 callersMethodchooseOptimalSize
Given {@code choices} of {@code Size}s supported by a camera, chooses the smallest one whose width and height are at least as large as the minimum of
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/app/src/main/java/org/tensorflow/lite/examples/classification/CameraConnectionFragment.java:215
↓ 2 callersMethodclear_histograms
Delete all the stored histograms for visualization. This should be called after histograms are written to tensorboard.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:529
↓ 2 callersMethodclear_images
Delete all the stored images for visualization. This should be called after images are written to tensorboard.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:522
↓ 2 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. For
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/rotated_boxes.py:255
↓ 2 callersFunctioncollate_pose_sequence
Reorganize multi-frame pose detection results into individual pose sequences. Note: - The temporal length of the pose detection resul
mmpose/mmpose/apis/inference_3d.py:132
↓ 2 callersFunctioncollect_env_info
()
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/collect_env.py:55
↓ 2 callersFunctioncolorize
Converts a depth map to a color image. Args: value (torch.Tensor, numpy.ndarry): Input depth map. Shape: (H, W) or (1, H, W) or (1, 1, H,
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/misc.py:97
↓ 2 callersFunctioncompute_metrics
Compute metrics of predicted depth maps. Applies cropping and masking as necessary or specified via arguments. Refer to compute_errors for more detail
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/misc.py:202
↓ 2 callersMethodcompute_oks
Calculates the OKS loss. Args: output (Tensor): Predicted keypoints in shape N x k x 2, where N is batch size, k
mmpose/projects/yolox_pose/models/oks_loss.py:54
↓ 2 callersMethodconfigureTransform
Configures the necessary {@link Matrix} transformation to `mTextureView`. This method should be called after the camera preview size is determined in
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/app/src/main/java/org/tensorflow/lite/examples/classification/CameraConnectionFragment.java:503
↓ 2 callersMethodcontrast
Contrast distortion.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:819
↓ 2 callersFunctionconv2d_same
( x, weight: torch.Tensor, bias: Optional[torch.Tensor] = None, stride: Tuple[int, int] = (1, 1),
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/conv2d_layers.py:64
↓ 2 callersFunctionconv3x3
3x3 convolution with padding.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/resnet.py:10
↓ 2 callersFunctionconvert_image_to_rgb
Convert an image from given format to RGB. Args: image (np.ndarray or Tensor): an HWC image format (str): the format of inpu
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/detection_utils.py:93
↓ 2 callersFunctionconvert_scripted_instances
Convert a scripted Instances object to a regular :class:`Instances` object
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/testing.py:80
↓ 2 callersMethodcopy_grads_to_fp32
Copy gradients from fp16 model to fp32 weight copy.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/optimizer.py:193
↓ 2 callersMethodcopy_params_to_fp16
Copy updated params from fp32 weight copy to fp16 model.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/optimizer.py:203
↓ 2 callersMethodcopy_to
(self, model)
ControlNet-v1-1-nightly/ldm/modules/ema.py:50
↓ 2 callersFunctioncount_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = thop.pr
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/openaimodel.py:326
↓ 2 callersFunctioncreate_conv2d_pad
(in_chs, out_chs, kernel_size, **kwargs)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/conv2d_layers.py:139
↓ 2 callersFunctioncreate_dummy_class
When a dependency of a class is not available, create a dummy class which throws ImportError when used. Args: klass (str): name
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/develop.py:8
↓ 2 callersFunctioncreate_dummy_func
When a dependency of a function is not available, create a dummy function which throws ImportError when used. Args: func (str):
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/develop.py:37
↓ 2 callersMethodcreate_rotation_matrix
(self, offset=0)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/transforms/transform.py:223
↓ 2 callersFunctioncreate_side_by_side
Take an RGB image and depth map and place them side by side. This includes a proper normalization of the depth map for better visibility.
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/run.py:77
↓ 2 callersMethodcriterion
Criterion of wingloss. Note: batch_size: N num_keypoints: K dimension of keypoints: D (D=2 or D=3)
mmpose/mmpose/models/losses/regression_loss.py:326
↓ 2 callersFunctioncrop_images
Crops the images according to the crop parameters. Args: images: RGB or depth images, shape (H, W, 3) or (H, W). crop_params: Cro
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/preprocess.py:124
↓ 2 callersFunctioncubic
(x)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:700
↓ 2 callersMethodcurrent_lr
Get current learning rates. Returns: list[float] | dict[str, list[float]]: Current learning rates of all param gr
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_runner.py:205
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with thresholding).
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:352
↓ 2 callersFunctiondeccode_output_score_and_ptss
tpMap: center: tpMap[1, 0, :, :] displacement: tpMap[1, 1:5, :, :]
ControlNet-v1-1-nightly/annotator/mlsd/utils.py:19
↓ 2 callersMethoddecode
Decode keypoint coordinates from decoupled heatmaps. The decoded keypoint coordinates are in the input image space. Args:
mmpose/mmpose/codecs/decoupled_heatmap.py:233
↓ 2 callersMethoddecode_pose
Decode regression offsets to keypoints. Args: grids (torch.Tensor): The coordinates of the feature map grids. offsets
mmpose/projects/yolox_pose/models/yolox_pose_head.py:333
↓ 2 callersMethoddelta_border
:param h: height :param w: width :return: normalized distance to image border, wtith min distance = 0 at border and
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:684
↓ 2 callersFunctiondenormalize
Denormalize input grid from range [0, 1] to [-1, 1] Args: grid (Tensor): The grid to be denormalize, range [0, 1]. Returns: Te
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/point_sample.py:105
↓ 2 callersFunctiondisable_verbosity
()
ControlNet-v1-1-nightly/cldm/hack.py:11
↓ 2 callersMethoddraw_1d_heatmaps
Draw one-dimensional heatmap.
mmpose/mmpose/visualization/simcc_vis.py:68
↓ 2 callersMethoddraw_binary_mask
Args: binary_mask (ndarray): numpy array of shape (H, W), where H is the image height and W is the image width. E
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:1125
↓ 2 callersMethoddraw_box
Args: box_coord (tuple): a tuple containing x0, y0, x1, y1 coordinates, where x0 and y0 are the coordinates of th
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:992
↓ 2 callersMethoddraw_circles
Draw single or multiple circles. Args: center (Union[np.ndarray, torch.Tensor]): The x coordinate of each line' s
mmpose/mmpose/visualization/opencv_backend_visualizer.py:86
↓ 2 callersMethoddraw_lines
Draw single or multiple line segments. Args: x_datas (Union[np.ndarray, torch.Tensor]): The x coordinate of each
mmpose/mmpose/visualization/opencv_backend_visualizer.py:319
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:1114
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:1203
↓ 2 callersMethoddraw_polygons
Draw single or multiple bboxes. Args: polygons (Union[Union[np.ndarray, torch.Tensor],\ List[Union[np.ndarray, to
mmpose/mmpose/visualization/opencv_backend_visualizer.py:371
↓ 2 callersMethoddraw_pose
Draw pose estimations on the given image. This method draws keypoints and skeleton links on the input image using the provided instan
mmpose/mmpose/visualization/fast_visualizer.py:32
↓ 2 callersMethoddraw_sem_seg
Draw semantic segmentation predictions/labels. Args: sem_seg (Tensor or ndarray): the segmentation of shape (H, W).
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:436
↓ 2 callersMethoddump_to_str
(self, obj, **kwargs)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/handlers/base.py:21
↓ 2 callersMethodema_scope
(self, context=None)
ControlNet-v1-1-nightly/ldm/models/autoencoder.py:64
↓ 2 callersMethodema_scope
(self, context=None)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:195
↓ 2 callersMethodencode
(self, x0, c, t_enc, use_original_steps=False, return_intermediates=None, unconditional_guidanc
ControlNet-v1-1-nightly/ldm/models/diffusion/ddim.py:254
↓ 2 callersMethodend_of_epoch
(self, runner)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/hook.py:64
↓ 2 callersMethodevaluate
Evaluate the dataset. Args: results (list): Testing results of the dataset. metric (str | list[str]): Metrics to be e
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/custom.py:306
↓ 2 callersMethodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/evaluation/evaluator.py:50
↓ 2 callersMethodextract_feat
Extract features from images.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:77
↓ 2 callersMethodf
(batched_inputs, c2_inputs, c2_results)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/caffe2_modeling.py:384
↓ 2 callersFunctionfast_rcnn_inference
Call `fast_rcnn_inference_single_image` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-specific or
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/fast_rcnn.py:46
↓ 2 callersFunctionfast_rcnn_inference_single_image
Single-image inference. Return bounding-box detection results by thresholding on scores and applying non-maximum suppression (NMS). Args
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/fast_rcnn.py:118
↓ 2 callersFunctionfile2id
(folder_path, file_path)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/coco.py:258
↓ 2 callersMethodfind_spec
(self, name, path, target=None)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/projects/__init__.py:20
↓ 2 callersFunctionflatten_binary_logits
Flattens predictions in the batch (binary case) Remove labels equal to 'ignore_index'.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:29
↓ 2 callersFunctionflatten_probs
Flattens predictions in the batch.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:42
↓ 2 callersFunctionflip_bbox
Flip the bbox in the given direction. Args: bbox (np.ndarray): The bounding boxes. The shape should be (..., 4) if ``bbox_for
mmpose/mmpose/structures/bbox/transforms.py:175
↓ 2 callersFunctionflip_keypoints_custom_center
Flip human joints horizontally. Note: - num_keypoint: K - dimension: D Args: keypoints (np.ndarray([..., K, D])): Co
mmpose/mmpose/structures/keypoint/transforms.py:67
← previousnext →1,001–1,100 of 7,103, ranked by callers