MCPcopy Create free account

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

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

↓ 3 callersMethodafter_test_iter
Run after every testing iterations. Args: runner (:obj:`Runner`): The runner of the testing process. batch_idx (int):
mmpose/mmpose/engine/hooks/visualization_hook.py:118
↓ 3 callersFunctionaggregate_heatmaps
Aggregate multiple heatmaps. Args: heatmaps (List[Tensor]): Multiple heatmaps to aggregate. Each should be in shape (B, C, H,
mmpose/mmpose/models/utils/tta.py:132
↓ 3 callersFunctionallreduce_params
Allreduce parameters. Args: params (list[torch.Parameters]): List of parameters or buffers of a model. coalesce (bool
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/dist_utils.py:99
↓ 3 callersMethodbackward
(ctx, grad_output)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/deform_conv.py:85
↓ 3 callersMethodbatch_decode
Decode the keypoint coordinates from a batch of heatmaps and tagging heatmaps. The decoded keypoint coordinates are in the input image
mmpose/mmpose/codecs/associative_embedding.py:440
↓ 3 callersFunctionbbox_xyxy2cs
Transform the bbox format from (x,y,w,h) into (center, scale) Args: bbox (ndarray): Bounding box(es) in shape (4,) or (n, 4), formatted
mmpose/mmpose/structures/bbox/transforms.py:44
↓ 3 callersFunctionbuild_box_head
Build a box head defined by `cfg.MODEL.ROI_BOX_HEAD.NAME`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/box_head.py:113
↓ 3 callersMethodbuild_lapa_dataset
(self, **kwargs)
mmpose/tests/test_datasets/test_datasets/test_face_datasets/test_lapa_dataset.py:11
↓ 3 callersFunctionbuild_sem_seg_head
Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/meta_arch/semantic_seg.py:134
↓ 3 callersFunctioncheck_choices
(name, value, choices)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/config.py:344
↓ 3 callersMethodcheck_metainfo_keys
(self, metainfo: dict)
mmpose/tests/test_datasets/test_datasets/test_fashion_datasets/test_deepfashion_dataset.py:53
↓ 3 callersMethodcheck_norm_state
Check if norm layer is in correct train state.
mmpose/tests/test_models/test_backbones/test_resnet.py:37
↓ 3 callersFunctioncolor_val
Convert various input to color tuples. Args: color (:obj:`Color`/str/tuple/int/ndarray): Color inputs Returns: tuple[int]: A
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/visualization/color.py:24
↓ 3 callersFunctionconvert_batched_inputs_to_c2_format
See get_caffe2_inputs() below.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/caffe2_modeling.py:107
↓ 3 callersFunctionconvert_to_coco_json
Converts dataset into COCO format and saves it to a json file. dataset_name must be registered in DatasetCatalog and in detectron2's standard
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/coco.py:445
↓ 3 callersFunctionconvert_video
Convert a video with ffmpeg. This provides a general api to ffmpeg, the executed command is:: `ffmpeg -y <pre_options> -i <in_file> <opt
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/video/processing.py:11
↓ 3 callersFunctioncount_params
(model, verbose=False)
ControlNet-v1-1-nightly/ldm/util.py:65
↓ 3 callersFunctioncreate_loader
( dataset, input_size, batch_size, is_training=False, use_prefetcher=T
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/data/loader.py:62
↓ 3 callersMethodcriterion
Criterion function.
mmpose/mmpose/models/losses/classification_loss.py:145
↓ 3 callersFunctiondataset_meta_from_config
Get dataset metainfo from the model config. Args: config (str, :obj:`Path`, or :obj:`mmengine.Config`): Config file path, :ob
mmpose/mmpose/apis/inference.py:22
↓ 3 callersMethoddecode
Decode keypoints from outputs. Args: heatmaps (Tuple[Tensor]): The output heatmaps inferred from one image or mul
mmpose/projects/skps/models/skps_head.py:307
↓ 3 callersMethoddecode
(self, z)
ControlNet-v1-1-nightly/ldm/models/autoencoder.py:88
↓ 3 callersFunctiondetect_compute_compatibility
(CUDA_HOME, so_file)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/collect_env.py:34
↓ 3 callersMethoddevice
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/masks.py:115
↓ 3 callersMethoddpm_solver_first_update
DPM-Solver-1 (equivalent to DDIM) 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:469
↓ 3 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/detectron2/utils/visualizer.py:1035
↓ 3 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/oneformer/demo/visualizer.py:536
↓ 3 callersMethoddraw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:850
↓ 3 callersMethoddraw_texts
Draw single or multiple text boxes. Args: texts (Union[str, List[str]]): Texts to draw. positions (Union[np.ndarray,
mmpose/mmpose/visualization/opencv_backend_visualizer.py:148
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:84
↓ 3 callersMethodeval_infer
(self, x)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/zoedepth_trainer.py:107
↓ 3 callersMethodevery_n_epochs
(self, runner, n)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/hook.py:55
↓ 3 callersMethodextract_feat
Extract features. Args: inputs (Tensor): Image tensor with shape (N, K, C, T). Returns: tuple[Tensor]: Multi
mmpose/mmpose/models/pose_estimators/pose_lifter.py:123
↓ 3 callersFunctionextract_key
(prediction, key)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/loss.py:35
↓ 3 callersMethodfeatures
(self, x)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/mobilenetv3.py:94
↓ 3 callersFunctionflatten
(config, except_keys=('bin_conf'))
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/config.py:257
↓ 3 callersMethodforward
(self, x)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/dpt_depth.py:110
↓ 3 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:136
↓ 3 callersMethodforward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. Args: features: same as in `forward()`
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/roi_heads.py:502
↓ 3 callersMethodfreeze
Make this block not trainable. This method sets all parameters to `requires_grad=False`, and convert all BatchNorm layers to
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/blocks.py:43
↓ 3 callersFunctionfspecial
python code from: https://github.com/ronaldosena/imagens-medicas-2/blob/40171a6c259edec7827a6693a93955de2bd39e76/Aulas/aula_2_-_uniform_filte
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan_light.py:209
↓ 3 callersFunctionfspecial
python code from: https://github.com/ronaldosena/imagens-medicas-2/blob/40171a6c259edec7827a6693a93955de2bd39e76/Aulas/aula_2_-_uniform_filte
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan.py:210
↓ 3 callersFunctiongaussian_blur
Modulate heatmap distribution with Gaussian. Note: - num_keypoints: K - heatmap height: H - heatmap width: W Args:
mmpose/mmpose/codecs/utils/post_processing.py:142
↓ 3 callersMethodget
Returns the field called `name`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/instances.py:96
↓ 3 callersFunctionget_anno_info
()
mmpose/tools/dataset_converters/parse_animalpose_dataset.py:35
↓ 3 callersMethodget_bounding_boxes
Returns: Boxes: tight bounding boxes around bitmasks. If a mask is empty, it's bounding box will be all zero.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/masks.py:224
↓ 3 callersFunctionget_class_weight
Get class weight for loss function. Args: class_weight (list[float] | str | None): If class_weight is a str, take it as a fil
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/losses/utils.py:8
↓ 3 callersFunctionget_config_file
Return full path of a config file from the given relative path.
mmpose/mmpose/testing/_utils.py:229
↓ 3 callersFunctionget_consumer_map
Return dict from versioned blob to list of (i, j), where i is index of consumer op, j is the index of input of that op.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:332
↓ 3 callersFunctionget_detection_dataset_dicts
Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. Args: names (str or list[str]): a data
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/build.py:216
↓ 3 callersMethodget_input
(self, batch, k)
ControlNet-v1-1-nightly/ldm/models/autoencoder.py:102
↓ 3 callersMethodget_loss
(self, pred, target, mean=True)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:367
↓ 3 callersFunctionget_producer_map
Return dict from versioned blob to (i, j), where i is index of producer op, j is the index of output of that op.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:319
↓ 3 callersFunctionget_root_logger
Use `MMLogger` class in mmengine to get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHa
mmpose/mmpose/utils/logger.py:7
↓ 3 callersFunctionget_simcc_maximum
Get maximum response location and value from simcc representations. Note: instance number: N num_keypoints: K heatmap hei
mmpose/mmpose/codecs/utils/post_processing.py:41
↓ 3 callersFunctionget_state_dict
Get state_dict from a file or URI. Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``, ``open-mmlab://xx
mmpose/mmpose/models/backbones/utils/utils.py:55
↓ 3 callersMethodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:994
↓ 3 callersFunctionget_udp_warp_matrix
Calculate the affine transformation matrix under the unbiased constraint. See `UDP (CVPR 2020)`_ for details. Note: - The bbox numbe
mmpose/mmpose/structures/bbox/transforms.py:227
↓ 3 callersMethodget_unconditional_conditioning
(self, batch_size, null_label=None)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:1124
↓ 3 callersMethodget_weighting
(self, h, w, Ly, Lx, device)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:698
↓ 3 callersMethodimage_cover
Paste the foreground on the background.
mmpose/mmpose/visualization/simcc_vis.py:101
↓ 3 callersFunctionimflip
Flip an image horizontally or vertically. Args: img (ndarray): Image to be flipped. direction (str): The flip direction, either "
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:252
↓ 3 callersFunctionimshow
Show an image. Args: img (str or ndarray): The image to be displayed. win_name (str): The window name. wait_time (int): V
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/visualization/image.py:9
↓ 3 callersFunctioninfer_device_type
Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:453
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:233
↓ 3 callersMethodinference
Run inference on the given inputs. Args: batched_inputs (list[dict]): same as in :meth:`forward` detected_in
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/meta_arch/rcnn.py:178
↓ 3 callersFunctioninference_bottomup
Inference image with a bottom-up pose estimator. Args: model (nn.Module): The bottom-up pose estimator img (np.ndarray | str): Th
mmpose/mmpose/apis/inference.py:202
↓ 3 callersFunctionis_main_process
()
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/comm.py:102
↓ 3 callersFunctionis_method_overridden
Check if a method of base class is overridden in derived class. Args: method (str): the method name to check. base_class (type):
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/misc.py:348
↓ 3 callersFunctionisimage
(x)
ControlNet-v1-1-nightly/ldm/util.py:41
↓ 3 callersFunctionismap
(x)
ControlNet-v1-1-nightly/ldm/util.py:35
↓ 3 callersFunctionkeypoint_nme
Calculate the normalized mean error (NME). Note: - instance number: N - keypoint number: K Args: pred (np.ndarray[N,
mmpose/mmpose/evaluation/functional/keypoint_eval.py:142
↓ 3 callersMethodlabel_and_sample_proposals
Prepare some proposals to be used to train the ROI heads. It performs box matching between `proposals` and `targets`, and assigns
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/roi_heads.py:220
↓ 3 callersFunctionload_coco_json
Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segmentation, and person keypoi
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/coco.py:30
↓ 3 callersFunctionload_from_http
load checkpoint through HTTP or HTTPS scheme path. In distributed setting, this function only download checkpoint at local rank 0. Args:
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/checkpoint.py:267
↓ 3 callersFunctionload_sem_seg
Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground truth annotations and all files
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/coco.py:230
↓ 3 callersMethodload_state_dict
(self, state_dict)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/hooks.py:370
↓ 3 callersMethodload_state_dict
(self, state_dict)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/train_loop.py:467
↓ 3 callersFunctionlocate
Locate and return an object ``x`` using an input string ``{x.__module__}.{x.__qualname__}``, such as "module.submodule.class_name". Rais
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/registry.py:40
↓ 3 callersMethodlog_images
(self, batch, N=8, n_row=2, sample=True, return_keys=None, **kwargs)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:477
↓ 3 callersMethodloss
Calculate losses from a batch of inputs and data samples. Args: feats (Sequence[Tensor]): Multi-stage feature maps. b
mmpose/mmpose/models/heads/heatmap_heads/cpm_head.py:254
↓ 3 callersMethodloss
Calculate losses from a batch of inputs and data samples.
mmpose/mmpose/models/heads/coord_cls_heads/rtmcc_head.py:248
↓ 3 callersMethodlosses
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:307
↓ 3 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/resnet.py:219
↓ 3 callersFunctionmake_ddim_sampling_parameters
(alphacums, ddim_timesteps, eta, verbose=True)
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:63
↓ 3 callersFunctionmake_ddim_timesteps
(ddim_discr_method, num_ddim_timesteps, num_ddpm_timesteps, verbose=True)
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:46
↓ 3 callersFunctionmake_layers
(block, no_relu_layers)
ControlNet-v1-1-nightly/annotator/openpose/model.py:7
↓ 3 callersMethodmake_schedule
(self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0., verbose=True)
ControlNet-v1-1-nightly/cldm/ddim_hacked.py:23
↓ 3 callersMethodmarginal_alpha
Compute alpha_t of a given continuous-time label t in [0, T].
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:120
↓ 3 callersFunctionmin_torch_version
Returns True when torch's version is at least `min_version`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/testing.py:165
↓ 3 callersFunctionoks_iou
Calculate oks ious. Note: - number of keypoints: K - number of instances: N Args: g (np.ndarray): The instance to c
mmpose/mmpose/evaluation/functional/nms.py:54
↓ 3 callersMethodonInferenceConfigurationChanged
()
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:683
↓ 3 callersMethodoverlay_instances
Args: boxes (Boxes, RotatedBoxes or ndarray): either a :class:`Boxes`, or an Nx4 numpy array of XYXY_ABS format f
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:703
↓ 3 callersFunctionpad
(x, p, i)
ControlNet-v1-1-nightly/cldm/hack.py:50
↓ 3 callersFunctionpairwise_iou_rotated
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x_center, y_center, width, height, an
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/rotated_boxes.py:6
↓ 3 callersFunctionpolygons_to_bitmask
Args: polygons (list[ndarray]): each array has shape (Nx2,) height, width (int) Returns: ndarray: a bool mask of sha
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/masks.py:22
↓ 3 callersFunctionpostprocess
Postprocess for RTMPose model output. Args: outputs (np.ndarray): Output of RTMPose model. model_input_size (tuple): RTMPose mode
mmpose/projects/rtmpose/examples/onnxruntime/main.py:104
↓ 3 callersMethodpostprocess
Process the predictions and visualization results from ``forward`` and ``visualize``. This method should be responsible for the follo
mmpose/mmpose/apis/inferencers/base_mmpose_inferencer.py:376
↓ 3 callersMethodpredict
Predict results from features. Args: feats (Tuple[Tensor] | List[Tuple[Tensor]]): The multi-stage features (or mu
mmpose/mmpose/models/heads/regression_heads/integral_regression_head.py:202
↓ 3 callersMethodpredict
Predict results from features. Args: feats (Tuple[Tensor] | List[Tuple[Tensor]]): The multi-stage features (or mu
mmpose/mmpose/models/heads/heatmap_heads/cid_head.py:510
← previousnext →701–800 of 7,103, ranked by callers