MCPcopy Create free account

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

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

↓ 3 callersMethodpredict
Predict results from features. Args: feats (Tuple[Tensor] | List[Tuple[Tensor]]): The multi-stage features (or mu
mmpose/mmpose/models/heads/coord_cls_heads/simcc_head.py:228
↓ 3 callersMethodpredict
Predict results from features. Args: feats (Tuple[Tensor] | List[Tuple[Tensor]]): The multi-stage features (or mu
mmpose/mmpose/models/heads/hybrid_heads/vis_head.py:120
↓ 3 callersMethodpredict_probs
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/fast_rcnn.py:549
↓ 3 callersFunctionpreprocess
Do preprocessing for RTMPose model inference. Args: img (np.ndarray): Input image in shape. input_size (tuple): Input image size
mmpose/projects/rtmpose/examples/onnxruntime/main.py:29
↓ 3 callersMethodpreprocess
Process the inputs into a model-feedable format. Args: inputs (InputsType): Inputs given by user. batch_size (int): b
mmpose/mmpose/apis/inferencers/mmpose_inferencer.py:94
↓ 3 callersFunctionpreprocessing_transforms
(mode, **kwargs)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/data_mono.py:64
↓ 3 callersMethodprocess
Process one batch of data samples and predictions. The processed results should be stored in ``self.results``, which will be used to c
mmpose/mmpose/evaluation/metrics/keypoint_3d_metrics.py:57
↓ 3 callersMethodprocess
Process one batch of data samples and predictions. The processed results should be stored in ``self.results``, which will be used to
mmpose/mmpose/evaluation/metrics/keypoint_2d_metrics.py:88
↓ 3 callersMethodput
(self, key, val)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/video/io.py:30
↓ 3 callersMethodput
(self, image)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/predictor.py:157
↓ 3 callersMethodput_image
Add an `img_tensor` associated with `img_name`, to be shown on tensorboard. Args: img_name (str): The name of th
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:323
↓ 3 callersMethodput_scalars
Put multiple scalars from keyword arguments. Examples: storage.put_scalars(loss=my_loss, accuracy=my_accuracy, smoothin
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:365
↓ 3 callersFunctionrefine_keypoints
Refine keypoint predictions by moving from the maximum towards the second maximum by 0.25 pixel. The operation is in-place. Note: -
mmpose/mmpose/codecs/utils/refinement.py:9
↓ 3 callersFunctionregister_coco_instances
Register a dataset in COCO's json annotation format for instance detection, instance segmentation and keypoint detection. (i.e., Type 1 a
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/coco.py:479
↓ 3 callersMethodrel_pos_bias
Add relative position bias.
mmpose/mmpose/models/utils/rtmcc_block.py:222
↓ 3 callersMethodremove_hooks
(self)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas.py:322
↓ 3 callersFunctionrename_op_output
Rename the op_id-th operator in predict_net, change it's output_id-th input's name to the new_name. It also does automatic re-route and c
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:734
↓ 3 callersMethodreset_image
Args: img: same as in __init__
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:305
↓ 3 callersFunctionresize
Resize a given input tensor using specified size or scale_factor. Args: input (torch.Tensor): The input tensor to be resized. siz
mmpose/mmpose/models/utils/ops.py:9
↓ 3 callersFunctionresolve_data_config
(model, args, default_cfg={}, verbose=True)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/data/transforms.py:17
↓ 3 callersFunctionresolve_se_args
(kwargs, in_chs, act_layer=None)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/efficientnet_builder.py:52
↓ 3 callersMethodresume
(self, checkpoint, resume_optimizer=True, map_location='default')
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_runner.py:345
↓ 3 callersFunctionrevert_sync_batchnorm
Helper function to convert all `SyncBatchNorm` (SyncBN) and `mmcv.ops.sync_bn.SyncBatchNorm`(MMSyncBN) layers in the model to `BatchNormXd` la
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/sync_bn.py:21
↓ 3 callersFunctionsample_points
(init_normal, gt_norm_mask, sampling_ratio, beta)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/submodules.py:75
↓ 3 callersFunctionsave_graph
(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:528
↓ 3 callersMethodscatter
(self, inputs, kwargs, device_ids)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/distributed_deprecated.py:52
↓ 3 callersFunctionselect_foreground_proposals
Given a list of N Instances (for N images), each containing a `gt_classes` field, return a list of Instances that contain only instances with
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/roi_heads.py:46
↓ 3 callersMethodsetAspectRatio
Sets the aspect ratio for this view. The size of the view will be measured based on the ratio calculated from the parameters. Note that the actual siz
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/app/src/main/java/org/tensorflow/lite/examples/classification/customview/AutoFitTextureView.java:48
↓ 3 callersMethodset_epoch
Compatible in `epoch-based runner.
mmpose/mmpose/datasets/samplers.py:112
↓ 3 callersFunctionsetup
(app)
mmpose/docs/en/conf.py:110
↓ 3 callersMethodshape
Get the shape of multi-level pixel data. Returns: Optional[tuple]: A tuple of data shape at each level, or ``None`` i
mmpose/mmpose/structures/multilevel_pixel_data.py:91
↓ 3 callersMethodshared_step
(self, batch)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:427
↓ 3 callersFunctionsimcc_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints from SimCC. Note: PCK
mmpose/mmpose/evaluation/functional/keypoint_eval.py:238
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:515
↓ 3 callersFunctionssim
(img1, img2)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:669
↓ 3 callersMethodsummarize
Compute and display summary metrics for evaluation results given a custom value for max_dets_per_image
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/evaluation/coco_evaluation.py:640
↓ 3 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:154
↓ 3 callersMethodto_rgb
(self, x)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:1303
↓ 3 callersFunctiontrunc_normal_init
(module: nn.Module, mean: float = 0, std: float = 1,
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:73
↓ 3 callersFunctionupdate_model_config
(config, mode, model_name, model_version=None, strict=False)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/config.py:334
↓ 3 callersMethodupdate_model_visualizer_settings
Update the settings of models and visualizer according to inference arguments. Args: draw_heatmaps (bool, optional): Flag
mmpose/mmpose/apis/inferencers/pose2d_inferencer.py:134
↓ 2 callersFunctionGetAffineTransform
mmpose/projects/rtmpose/examples/RTMPose-Deploy/Windows/OnnxRumtime-CPU/src/RTMPoseOnnxRuntime/rtmpose_utils.h:57
↓ 2 callersMethodIsValid
mmpose/projects/rtmpose/examples/RTMPose-Deploy/Windows/OnnxRumtime-CPU/src/RTMPoseOnnxRuntime/rtmpose_utils.h:28
↓ 2 callersFunctionNormalize
(in_channels)
ControlNet-v1-1-nightly/ldm/modules/attention.py:88
↓ 2 callersMethod__enter__
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:141
↓ 2 callersMethod__exit__
(self, type, value, traceback)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/timer.py:53
↓ 2 callersMethod__init__
(self, depth, in_channels=3, num_stages=4,
mmpose/mmpose/models/backbones/vipnas_resnet.py:408
↓ 2 callersMethod__init__
(self, depth, **kwargs)
mmpose/mmpose/models/backbones/scnet.py:249
↓ 2 callersMethod__init__
(self, dim, init_value=1., trainable=True)
mmpose/mmpose/models/utils/rtmcc_block.py:69
↓ 2 callersMethod__init__
( self, in_channels=3, embed_dims=768, conv_type='Conv2d', kernel_size
mmpose/mmpose/models/utils/transformer.py:146
↓ 2 callersMethod__init__
(self, out_channels: int, norm_cfg: ConfigType = dict(type='BN'))
mmpose/mmpose/models/heads/heatmap_heads/mspn_head.py:36
↓ 2 callersMethod__init__
(self, in_channels: Union[int, Sequence[int]], num_keypoints: int,
mmpose/mmpose/models/heads/hybrid_heads/dekr_head.py:200
↓ 2 callersMethod__init__
(self, ocr_channels, scale=1, **kwargs)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/ocr_head.py:97
↓ 2 callersMethod__init__
(self, in_channels, channels)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/da_head.py:20
↓ 2 callersMethod__init__
(self, kernel_size, group_size, scale_factor)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/carafe.py:194
↓ 2 callersMethod__init__
(self, output_size, spatial_scale=1.0, sampling_ratio=0,
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/deform_roi_pool.py:94
↓ 2 callersMethod__init__
(self, depth, num_stages=4, strides=(1, 2, 2, 2),
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/resnet.py:210
↓ 2 callersMethod__init__
(self, buffers)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/anchor_generator.py:26
↓ 2 callersMethod__init__
Args: img_size (int): Input image size. patch_kernel (tuple): kernel size for patch embedding. patch_stri
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/mvit.py:276
↓ 2 callersMethod__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/fpn.py:25
↓ 2 callersMethod__init__
NOTE: this interface is experimental. Args: num_classes (int): number of foreground classes (i.e. background is not incl
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/roi_heads.py:139
↓ 2 callersMethod__init__
Args: cfg (CfgNode): torch_model (nn.Module): the detectron2 model (meta_arch) to be converted.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/caffe2_modeling.py:142
↓ 2 callersMethod__init__
NOTE: this interface is experimental. Args: input_shape: shapes (channels and stride) of the input features c
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/pixel_decoder/fpn.py:40
↓ 2 callersMethod__init__
(self, args=None)
ControlNet-v1-1-nightly/annotator/normalbae/models/baseline.py:10
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bia
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/submodules.py:47
↓ 2 callersMethod__init__
(self)
ControlNet-v1-1-nightly/annotator/hed/__init__.py:57
↓ 2 callersMethod__init__
(self)
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/upscaling.py:58
↓ 2 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/dist_utils.py:145
↓ 2 callersFunction_any
Since built-in ``any`` works only when the element of iterable is not iterable, implement the function.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/testing.py:25
↓ 2 callersMethod_assert_outfiles
(self, prefix)
mmpose/tests/test_evaluation/test_metrics/test_keypoint_partition_metric.py:168
↓ 2 callersFunction_assert_strides_are_log2_contiguous
Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2".
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/fpn.py:178
↓ 2 callersMethod_assign_colors
Naive tracking heuristics to assign same color to the same instance, will update the internal state of tracked instances. Re
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/video_visualizer.py:211
↓ 2 callersFunction_assign_op_device_option
(net_proto, net_ssa, blob_device_types)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/caffe2_export.py:92
↓ 2 callersMethod_batch_inference
Execute inference on a list of inputs, using batch size = self.batch_size, instead of the length of the list. Inputs & outpu
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/test_time_augmentation.py:162
↓ 2 callersMethod_best_checking
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/hooks.py:258
↓ 2 callersMethod_build_input_conv
(self, channel, conv_cfg, norm_cfg)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/merge_cells.py:78
↓ 2 callersMethod_caffe2_preprocess_image
Caffe2 implementation of preprocess_image, which is called inside each MetaArch's forward. It normalizes the input images, and the fi
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/caffe2_modeling.py:199
↓ 2 callersMethod_cal_im2col_step
Calculate proper im2col step size, which should be divisible by input_size and not larger than prefer_size. Meanwhile the step size s
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/deform_conv.py:165
↓ 2 callersFunction_called_with_cfg
Returns: bool: whether the arguments contain CfgNode and should be considered forwarded to from_config.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/config/config.py:251
↓ 2 callersMethod_clear
Clear variable buffers.
mmpose/projects/yolox_pose/models/yolox_pose_head.py:103
↓ 2 callersMethod_convert_boxes
Convert different format of boxes to an NxB array, where B = 4 or 5 is the box dimension.
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:1289
↓ 2 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/oneformer/demo/visualizer.py:1255
↓ 2 callersFunction_create_grid_offsets
( size: List[int], stride: int, offset: float, target_device_tensor: torch.Tensor )
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/anchor_generator.py:39
↓ 2 callersFunction_create_model
(model_kwargs, variant, pretrained=False)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/mobilenetv3.py:112
↓ 2 callersFunction_create_zeros
( batch_target: Optional[torch.Tensor], channels: int, height: int, width: int, like_tenso
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/poolers.py:102
↓ 2 callersFunction_decode_and_center_crop
Crops to center of image with padding then scales image_size.
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/data/tf_preprocessing.py:115
↓ 2 callersMethod_decode_multi_level_predictions
Run `_decode_per_level_predictions` for all feature levels and concat the results.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/meta_arch/dense_detector.py:235
↓ 2 callersMethod_decode_proposals
Transform anchors into proposals by applying the predicted anchor deltas. Returns: proposals (list[Tensor]): A list of L
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/proposal_generator/rpn.py:514
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/evaluation/coco_evaluation.py:323
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/evaluation/coco_evaluator.py:283
↓ 2 callersMethod_dist_broadcast_coalesced
(self, tensors, buffer_size)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/distributed_deprecated.py:29
↓ 2 callersMethod_do_eval
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/hooks.py:528
↓ 2 callersMethod_do_evaluate
perform evaluation and save ckpt.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/evaluation.py:269
↓ 2 callersMethod_draw_instance_heatmap
Draw heatmaps of GT or prediction. Args: fields (:obj:`PixelData`): Data structure for pixel-level annotations or
mmpose/mmpose/visualization/local_visualizer.py:399
↓ 2 callersMethod_draw_instance_xy_heatmap
Draw heatmaps of GT or prediction. Args: fields (:obj:`PixelData`): Data structure for pixel-level annotations or pre
mmpose/mmpose/visualization/local_visualizer.py:425
↓ 2 callersMethod_draw_instances_kpts
Draw keypoints and skeletons (optional) of GT or prediction. Args: image (np.ndarray): The image to draw. instances (
mmpose/mmpose/visualization/local_visualizer.py:226
↓ 2 callersMethod_draw_text_in_mask
Find proper places to draw text given a binary mask.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:1237
↓ 2 callersMethod_dump_log
(self, log_dict, runner)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/logger/text.py:185
↓ 2 callersMethod_ema_update
Apply EMA update to `self.name` using `value`. This is mainly used for loss normalizer. In Detectron1, loss is normalized by number
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/meta_arch/dense_detector.py:160
↓ 2 callersFunction_evaluate_predictions_on_coco
Evaluate the coco results using COCOEval API.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/evaluation/coco_evaluation.py:567
← previousnext →801–900 of 7,103, ranked by callers