MCPcopy Create free account

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

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

↓ 5 callersMethodcheck_data_info_keys
(self, data_info: dict, data_mode: str = 'topdown')
mmpose/tests/test_datasets/test_datasets/test_body_datasets/test_posetrack18_dataset.py:24
↓ 5 callersMethodcheck_data_info_keys
(self, data_info: dict, data_mode: str = 'topdown')
mmpose/tests/test_datasets/test_datasets/test_wholebody_datasets/test_coco_wholebody_dataset.py:24
↓ 5 callersMethodcheck_data_info_keys
(self, data_info: dict, data_mode: str = 'topdown')
mmpose/tests/test_datasets/test_datasets/test_wholebody_datasets/test_halpe_dataset.py:23
↓ 5 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:102
↓ 5 callersMethoddecode
(self, x_latent, cond, t_start, unconditional_guidance_scale=1.0, unconditional_conditioning=None,
ControlNet-v1-1-nightly/ldm/models/diffusion/ddim.py:317
↓ 5 callersFunctiondefault
(val, d)
ControlNet-v1-1-nightly/ldm/util.py:51
↓ 5 callersMethoddevice
(self)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/oneformer_model.py:205
↓ 5 callersMethodencode
(self, *args, **kwargs)
ControlNet-v1-1-nightly/ldm/modules/encoders/modules.py:15
↓ 5 callersMethodencode_first_stage
(self, x)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:831
↓ 5 callersMethodextract_feat
(self, inputs: Tensor)
mmpose/mmpose/models/pose_estimators/distiller.py:189
↓ 5 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is the coordinates. Args: feats (Tuple[Tensor])
mmpose/mmpose/models/heads/regression_heads/rle_head.py:67
↓ 5 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is the heatmaps and tags. Args: feats (Tuple[Te
mmpose/mmpose/models/heads/heatmap_heads/ae_head.py:229
↓ 5 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is a tuple of heatmap and displacement. Args: f
mmpose/mmpose/models/heads/hybrid_heads/dekr_head.py:311
↓ 5 callersMethodforward_test
Args: imgs (List[Tensor]): the outer list indicates test-time augmentations and inner Tensor should have a shape
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/base.py:76
↓ 5 callersMethodforward_train
Placeholder for Forward function for training.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/base.py:51
↓ 5 callersMethodget
Read data from a given ``filepath`` with 'rb' mode. Note: There are two types of return values for ``get``, one is ``bytes``
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:976
↓ 5 callersMethodget_first_stage_encoding
(self, encoder_posterior)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:655
↓ 5 callersMethodget_time_steps
Compute the intermediate time steps for sampling. Args: skip_type: A `str`. The type for the spacing of the time steps. We support
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:376
↓ 5 callersMethodhas
Returns: bool: whether the field called `name` exists.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/instances.py:83
↓ 5 callersFunctionimresize
Resize image to a given size. Args: img (ndarray): The input image. size (tuple[int]): Target size (w, h). return_scale (
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:51
↓ 5 callersMethodinverse_lambda
Compute the continuous-time label t in [0, T] of a given half-logSNR lambda_t.
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:140
↓ 5 callersFunctionlinear
Create a linear module.
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:234
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv_custom/checkpoint.py:109
↓ 5 callersMethodlog_images
(self, rgb: Dict[str, list] = {}, depth: Dict[str, list] = {}, scalar_field: Dict[str, list] = {}, prefix="",
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/base_trainer.py:289
↓ 5 callersMethodloss
Calculate losses from a batch of inputs and data samples. Note: - batch_size: B - num_output_heatmap_levels: L
mmpose/mmpose/models/heads/heatmap_heads/mspn_head.py:367
↓ 5 callersFunctionmake_divisible
(v: int, divisor: int = 8, min_value: int = None)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/efficientnet_builder.py:74
↓ 5 callersMethodmake_stage
Create a list of blocks of the same type that forms one ResNet stage. Args: block_class (type): a subclass of CNNBlockBa
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/resnet.py:493
↓ 5 callersMethodmerge_from_dict
Merge list into cfg_dict. Merge the dict parsed by MultipleKVAction into this cfg. Examples: >>> options = {'model.backb
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/config.py:550
↓ 5 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
mmpose/mmpose/models/backbones/hrformer.py:16
↓ 5 callersFunctionnoise_like
(shape, device, repeat=False)
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:267
↓ 5 callersMethodnorm3
nn.Module: the normalization layer named "norm3"
mmpose/mmpose/models/backbones/resnet.py:243
↓ 5 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:202
↓ 5 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
mmpose/setup.py:37
↓ 5 callersFunctionpose_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints from heatmaps. Note: P
mmpose/mmpose/evaluation/functional/keypoint_eval.py:191
↓ 5 callersFunctionrandom_color
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a vec
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/colormap.py:112
↓ 5 callersMethodreset_image
Args: img: same as in __init__
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:294
↓ 5 callersFunctionrope
Applies Rotary Position Embedding to input tensor. Args: x (torch.Tensor): Input tensor. dim (int | list[int]): The spatial dimen
mmpose/mmpose/models/utils/rtmcc_block.py:12
↓ 5 callersMethodrun
()
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/app/src/main/java/org/tensorflow/lite/examples/classification/CameraActivity.java:249
↓ 5 callersMethodsample
(self, batch_size=16, return_intermediates=False)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:350
↓ 5 callersMethodset_image
Set the image to draw. Args: image (np.ndarray): The image to draw. backend (str): The backend to save the image.
mmpose/mmpose/visualization/opencv_backend_visualizer.py:44
↓ 5 callersMethodsize
(self, *args, **kwargs)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/data_container.py:84
↓ 5 callersMethodstate_dict
Hooks are stateless by default, but can be made checkpointable by implementing `state_dict` and `load_state_dict`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/train_loop.py:86
↓ 5 callersMethodvis_forward
Forward the vis_head. The input is multi scale feature maps and the output is coordinates visibility. Args: feats (Tuple[
mmpose/mmpose/models/heads/hybrid_heads/vis_head.py:69
↓ 5 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/losses/utils.py:46
↓ 5 callersFunctionzero_module
Zero out the parameters of a module and return it.
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:177
↓ 4 callersMethod__init__
(self, prob: Union[float, List[float]] = 0.5, direction: Union[str, List[str
mmpose/mmpose/datasets/transforms/common_transforms.py:136
↓ 4 callersMethod__init__
(self, embed_dims, num_heads, window_size,
mmpose/mmpose/models/backbones/swin.py:42
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
mmpose/mmpose/models/backbones/resnet.py:501
↓ 4 callersMethod__init__
(self, use_target_weight: bool = False, skip_empty_channel: bool = False,
mmpose/mmpose/models/losses/heatmap_loss.py:27
↓ 4 callersMethod__init__
(self, norm_factor: float = 30, num_thrs: int = 20, collect
mmpose/mmpose/evaluation/metrics/keypoint_2d_metrics.py:561
↓ 4 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/vit.py:36
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/resnet.py:373
↓ 4 callersMethod__init__
(self, low_in_channels, high_in_channels, channels, out_channels, query_scales, key_pool_scal
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/ann_head.py:99
↓ 4 callersMethod__init__
Initialize BaseModule, inherited from `torch.nn.Module`
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_module.py:33
↓ 4 callersMethod__init__
(self, by_epoch=True, warmup=None, warmup_iters=0,
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:9
↓ 4 callersMethod__init__
Args: img_size (int): Input image size. patch_size (int): Patch size. in_chans (int): Number of input ima
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/vit.py:239
↓ 4 callersMethod__init__
Args: stem (nn.Module): a stem module stages (list[list[CNNBlockBase]]): several (typically 4) stages,
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/resnet.py:367
↓ 4 callersMethod__init__
Args: op (Callable): operation to be applied to the image, which takes in an ndarray and returns an ndarray.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/transforms/transform.py:258
↓ 4 callersMethod__init__
( self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/transformer_decoder/transformer.py:23
↓ 4 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/transformer_decoder/oneformer_transformer_decoder.py:214
↓ 4 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:212
↓ 4 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
ControlNet-v1-1-nightly/annotator/midas/midas/blocks.py:124
↓ 4 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
ControlNet-v1-1-nightly/ldm/modules/midas/midas/blocks.py:124
↓ 4 callersFunction_calc_same_pad
(i: int, k: int, s: int, d: int)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/conv2d_layers.py:46
↓ 4 callersFunction_cast_to_config
(obj)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/config/lazy.py:83
↓ 4 callersMethod_convert
Multiple with alpha and add beta with clip. Args: img (np.ndarray): The image array. alpha (float): The random multip
mmpose/mmpose/datasets/transforms/common_transforms.py:784
↓ 4 callersFunction_convert_input_type_range
Convert the type and range of the input image. It converts the input image to np.float32 type and range of [0, 1]. It is mainly used for pre-
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/colorspace.py:84
↓ 4 callersFunction_convert_output_type_range
Convert the type and range of the image according to dst_type. It converts the image to desired type and range. If `dst_type` is np.uint8, im
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/colorspace.py:112
↓ 4 callersFunction_convert_target_to_string
Inverse of ``locate()``. Args: t: any object with ``__module__`` and ``__qualname__``
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/registry.py:15
↓ 4 callersMethod_create_grayscale_image
Create a grayscale version of the original image. The colors in masked area, if given, will be kept.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:1169
↓ 4 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): is_crowd (list[
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:230
↓ 4 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): is_crowd (list[
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:243
↓ 4 callersFunction_dense_box_regression_loss
Compute loss for dense multi-level box regression. Loss is accumulated over ``fg_mask``. Args: anchors: #lvl anchor boxes, each
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/box_regression.py:310
↓ 4 callersMethod_equal
(x, y)
mmpose/tests/test_structures/test_pose_data_sample.py:58
↓ 4 callersFunction_gen_mnasnet_a1
Creates a mnasnet-a1 model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet Paper: https://arxiv.org/pdf/1807
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/gen_efficientnet.py:296
↓ 4 callersFunction_gen_mnasnet_b1
Creates a mnasnet-b1 model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet Paper: https://arxiv.org/pdf/1807
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/gen_efficientnet.py:334
↓ 4 callersFunction_gen_mobilenet_v2
Generate MobileNet-V2 network Ref impl: https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet/mobilenet_v2.py Paper:
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/gen_efficientnet.py:403
↓ 4 callersMethod_get_feats
( self, batch_size: int = 2, feat_shapes: List[Tuple[int, int, int]] = [(32, 6, 8)],
mmpose/tests/test_models/test_heads/test_regression_heads/test_integral_regression_head.py:15
↓ 4 callersMethod_get_feats
( self, batch_size: int = 2, feat_shapes: List[Tuple[int, int, int]] = [(32, 6, 8)],
mmpose/tests/test_models/test_heads/test_regression_heads/test_dsnt_head.py:15
↓ 4 callersMethod_get_feats
(self, batch_size: int = 2, feat_shapes: List[Tuple[int, int, int]] = [(
mmpose/tests/test_models/test_heads/test_heatmap_heads/test_simcc_head.py:15
↓ 4 callersMethod_get_feats
(self, batch_size: int = 2, feat_shapes: List[Tuple[int, int, int]] = [(
mmpose/tests/test_models/test_heads/test_heatmap_heads/test_vipnas_head.py:15
↓ 4 callersMethod_get_pose_stats
Get statistic information `mean` and `std` of pose data. Args: kps (ndarray): keypoints in shape [..., K, D] where K and C is
mmpose/tools/dataset_converters/preprocess_h36m.py:205
↓ 4 callersMethod_get_subset_index
Given a data sample's global index, return the index of the sub- dataset the data sample belongs to, and the local index within that s
mmpose/mmpose/datasets/dataset_wrappers.py:48
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/dpt_depth.py:18
↓ 4 callersFunction_make_fusion_block
(features, use_bn)
ControlNet-v1-1-nightly/annotator/midas/midas/dpt_depth.py:15
↓ 4 callersFunction_make_fusion_block
(features, use_bn)
ControlNet-v1-1-nightly/ldm/modules/midas/midas/dpt_depth.py:15
↓ 4 callersFunction_make_swin_backbone
( model, hooks=[1, 1, 17, 1], patch_grid=[96, 96] )
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/swin_common.py:13
↓ 4 callersFunction_make_vit_b16_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11], vit_features=
ControlNet-v1-1-nightly/annotator/midas/midas/vit.py:183
↓ 4 callersFunction_make_vit_b16_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11], vit_features=
ControlNet-v1-1-nightly/ldm/modules/midas/midas/vit.py:183
↓ 4 callersFunction_ntuple
(n)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/misc.py:14
↓ 4 callersFunction_ntuple
(n)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/conv2d_layers.py:23
↓ 4 callersFunction_rand_bboxes
(rng, num_instances, img_w, img_h)
mmpose/mmpose/testing/_utils.py:203
↓ 4 callersMethod_set_real_position
(self, frame_id)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/video/io.py:127
↓ 4 callersMethod_transpose_dense_predictions
Transpose the dense per-level predictions. Args: predictions: a list of outputs, each is a list of per-level
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/meta_arch/dense_detector.py:136
↓ 4 callersFunctionadd
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:195
↓ 4 callersFunctionadd_Gaussian_noise
(img, noise_level1=2, noise_level2=25)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan.py:369
↓ 4 callersFunctionadd_JPEG_noise
(img)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan_light.py:421
↓ 4 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/comm.py:138
↓ 4 callersMethodall_zeros
Check if the weight(and bias) is all zero.
mmpose/tests/test_models/test_backbones/test_resnet.py:24
↓ 4 callersMethodapply_image
(self, img)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/transforms/transform.py:269
← previousnext →401–500 of 7,103, ranked by callers