MCPcopy Create free account

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

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

↓ 2 callersMethodinit_weights
Initialize the weights in backbone.
mmpose/mmpose/models/backbones/hrnet.py:551
↓ 2 callersMethodinit_weights
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/modulated_deform_conv.py:192
↓ 2 callersFunctioninitialize_weight_default
(m, n='')
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/efficientnet_builder.py:672
↓ 2 callersFunctioninitialize_weight_goog
(m, n='', fix_group_fanout=True)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/efficientnet_builder.py:640
↓ 2 callersMethodinstance_masks
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:220
↓ 2 callersFunctioninstances_to_coco_json
Dump an "Instances" object to a COCO-format json that's used for evaluation. Args: instances (Instances): img_id (int): the
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/evaluation/coco_evaluation.py:392
↓ 2 callersFunctioninstantiate
Recursively instantiate objects defined in dictionaries by "_target_" and arguments. Args: cfg: a dict-like object with "_target
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/config/instantiate.py:37
↓ 2 callersFunctioninterpolate_fn
A piecewise linear function y = f(x), using xp and yp as keypoints. We implement f(x) in a differentiable way (i.e. applicable for autograd).
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:1104
↓ 2 callersFunctionis_fx_tracing
Returns whether execution is currently in Torch FX tracing mode
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/tracing.py:31
↓ 2 callersMethodis_norm
Check if is one of the norms.
mmpose/tests/test_models/test_backbones/test_mobilenet_v2.py:22
↓ 2 callersMethodis_rotated
(box_list)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/evaluation/rotated_coco_evaluation.py:17
↓ 2 callersFunctioniter_cast
Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/misc.py:87
↓ 2 callersMethodjoin_path
Concatenate all file paths. Args: filepath (str or Path): Path to be concatenated. Returns: str: The result
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:281
↓ 2 callersMethodjs
Jensen-Shannon Divergence.
mmpose/mmpose/models/losses/classification_loss.py:86
↓ 2 callersFunctionkeypoint_auc
Calculate the Area under curve (AUC) of keypoint PCK accuracy. Note: - instance number: N - keypoint number: K Args:
mmpose/mmpose/evaluation/functional/keypoint_eval.py:106
↓ 2 callersFunctionkeypoint_epe
Calculate the end-point error. Note: - instance number: N - keypoint number: K Args: pred (np.ndarray[N, K, 2]): Pre
mmpose/mmpose/evaluation/functional/keypoint_eval.py:166
↓ 2 callersMethodkl
Kullback-Leibler Divergence.
mmpose/mmpose/models/losses/classification_loss.py:79
↓ 2 callersFunctionlast_zero_init
(m)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/bricks/context_block.py:9
↓ 2 callersMethodlatest_with_smoothing_hint
Similar to :meth:`latest`, but the returned values are either the un-smoothed original latest value, or a median of the given
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:431
↓ 2 callersFunctionlist_all_files
List all files in the root directory and all its sub directories. :param root_dir: root directory :param ext: filename extension :return:
mmpose/tools/dataset_converters/parse_animalpose_dataset.py:16
↓ 2 callersFunctionload_cityscapes_instances
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/cityscapes.py:53
↓ 2 callersFunctionload_cityscapes_semantic
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/cityscapes.py:95
↓ 2 callersFunctionload_coco_panoptic_json
Args: image_dir (str): path to the raw dataset. e.g., "~/coco/train2017". gt_dir (str): path to the raw annotations. e.g., "~/coc
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/coco_panoptic.py:14
↓ 2 callersFunctionload_lvis_json
Load a json file in LVIS's annotation format. Args: json_file (str): full path to the LVIS json annotation file. image_root
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/lvis.py:41
↓ 2 callersMethodload_model
(self, name)
ControlNet-v1-1-nightly/annotator/lineart/__init__.py:99
↓ 2 callersFunctionload_pretrained
(model, url, filter_fn=None, strict=True)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/helpers.py:34
↓ 2 callersFunctionload_state_dict
Load state_dict into model, handling DataParallel and DistributedDataParallel. Also checks for "model" key in state_dict. DataParallel prefixes s
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/model_io.py:27
↓ 2 callersFunctionload_state_dict_from_url
(model, url, **kwargs)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/model_io.py:59
↓ 2 callersFunctionload_state_from_resource
Loads weights to the model from a given resource. A resource can be of following types: 1. URL. Prefixed with "url::" e.g. url
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/model_io.py:64
↓ 2 callersFunctionload_wts
(model, checkpoint_path)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/model_io.py:54
↓ 2 callersFunctionlog_every_n_seconds
Log no more than once per n seconds. Args: lvl (int): the logging level msg (str): n (int): name (str): name
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/logger.py:191
↓ 2 callersMethodloss
Calculate losses from a batch of inputs and data samples. Args: feats (Tuple[Tensor]): The multi-stage features batch
mmpose/mmpose/models/heads/hybrid_heads/vis_head.py:189
↓ 2 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors. See Alg. 1 in paper.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:14
↓ 2 callersFunctionlovasz_hinge_flat
Binary Lovasz hinge loss. Args: logits (torch.Tensor): [P], logits at each prediction (between -infty and +infty). la
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:59
↓ 2 callersFunctionlovasz_softmax_flat
Multi-class Lovasz-Softmax loss. Args: probs (torch.Tensor): [P, C], class probabilities at each prediction (between 0 and 1)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/losses/lovasz_loss.py:128
↓ 2 callersFunctionmake_backbone_default
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11],
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:144
↓ 2 callersFunctionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
ControlNet-v1-1-nightly/ldm/modules/diffusionmodules/util.py:21
↓ 2 callersFunctionmake_detectron2_model
(config_path, ckpt_path)
ControlNet-v1-1-nightly/annotator/oneformer/api.py:21
↓ 2 callersMethodmake_res_layer
Make a ResLayer.
mmpose/mmpose/models/backbones/resnet.py:586
↓ 2 callersFunctionmask_rcnn_inference
Convert pred_mask_logits to estimated foreground probability masks while also extracting only the masks for the predicted classes in pred_ins
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/mask_head.py:115
↓ 2 callersMethodmask_to_polygons
(self, mask)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:119
↓ 2 callersMethodmask_to_polygons
(self, mask)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/visualizer.py:132
↓ 2 callersFunctionmaybe_to_cpu
(x)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/memory.py:57
↓ 2 callersMethodmerge_from_file
Load content from the given config file and merge it into self. Args: cfg_filename: config filename allow_un
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/config/config.py:37
↓ 2 callersFunctionmkdir
(path)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:153
↓ 2 callersMethodmode
(self)
ControlNet-v1-1-nightly/ldm/modules/distributions/distributions.py:20
↓ 2 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/apis/test.py:106
↓ 2 callersMethodmultistep_dpm_solver_update
Multistep DPM-Solver with the order `order` from time `t_prev_list[-1]` to time `t`. Args: x: A pytorch tensor. The initi
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:855
↓ 2 callersMethodname_scope
Yields: A context within which all the events added to this storage will be prefixed by the name scope.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:511
↓ 2 callersMethodnewInstance
( final ConnectionCallback callback, final OnImageAvailableListener imageListener, final int
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:256
↓ 2 callersMethodnoise_prediction_fn
Return the noise prediction model.
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:346
↓ 2 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:196
↓ 2 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmpose/mmpose/models/backbones/resnet.py:233
↓ 2 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/resnet.py:250
↓ 2 callersFunctionnorm_cdf
(x)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/utils/weight_init.py:14
↓ 2 callersFunctionnorm_cdf
(x)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:628
↓ 2 callersFunctionnorm_cdf
(x)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/misc.py:27
↓ 2 callersMethodonPreviewSizeChosen
(Size size, int cameraRotation)
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:534
↓ 2 callersMethodopenCamera
Opens the camera specified by {@link CameraConnectionFragment#cameraId}.
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:367
↓ 2 callersMethodp_sample
(self, x, c, t, clip_denoised=False, repeat_noise=False, return_codebook_ids=False, quantize_
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:954
↓ 2 callersMethodp_sample_ddim
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
ControlNet-v1-1-nightly/ldm/models/diffusion/ddim.py:181
↓ 2 callersMethodp_sample_ddim
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
ControlNet-v1-1-nightly/cldm/ddim_hacked.py:181
↓ 2 callersFunctionpairwise_intersection
Given two lists of boxes of size N and M, compute the intersection area between __all__ N x M pairs of boxes. The box order must be (xmin
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/boxes.py:312
↓ 2 callersFunctionparams_to_string
Convert parameter number into a string. Args: num_params (float): Parameter number to be converted. units (str | None): Converted
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:161
↓ 2 callersFunctionparse
(x)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/misc.py:16
↓ 2 callersFunctionparse_require_file
(fpath)
mmpose/setup.py:99
↓ 2 callersFunctionpatch
recursively (post-order) update all modules with the target type and its subclasses, make a initialization/composition/inheritance/... via th
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/caffe2_patch.py:57
↓ 2 callersFunctionpidinet
()
ControlNet-v1-1-nightly/annotator/pidinet/model.py:636
↓ 2 callersMethodpre_pipeline
Prepare results dict for pipeline.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/custom.py:170
↓ 2 callersMethodpredict
Predict results from outputs.
mmpose/mmpose/models/heads/regression_heads/regression_head.py:81
↓ 2 callersMethodpredict
Predict results from outputs.
mmpose/mmpose/models/heads/regression_heads/rle_head.py:84
↓ 2 callersMethodpredict
* @brief Predict function * @param image Input image * @return Predict results */
mmpose/projects/rtmpose/examples/RTMPose-Deploy/Windows/TensorRT/src/RTMPoseTensorRT/rtmdet.cpp:170
↓ 2 callersMethodpredict_eps_from_z_and_v
(self, x_t, t, v)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:298
↓ 2 callersMethodpredict_start_from_noise
(self, x_t, t, noise)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:284
↓ 2 callersMethodpredict_start_from_z_and_v
(self, x_t, t, v)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:290
↓ 2 callersMethodpreprocess_single
Process a single input into a model-feedable format. Args: input (InputType): The input provided by the user. index (
mmpose/mmpose/apis/inferencers/pose3d_inferencer.py:126
↓ 2 callersFunctionprocess
Run the inference and interpolate. Args: device (torch.device): the torch device used model: the model used for inference
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/run.py:17
↓ 2 callersMethodprocess
Process the pair of inputs and outputs. If they contain batches, the pairs can be consumed one-by-one using `zip`: .. code-b
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/evaluation/evaluator.py:37
↓ 2 callersMethodprocessImage
()
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:675
↓ 2 callersFunctionprocess_one_image
Visualize predicted keypoints (and heatmaps) of one image.
mmpose/demo/topdown_demo_with_mmdet.py:27
↓ 2 callersFunctionprocess_one_image
Visualize predicted keypoints (and heatmaps) of one image.
mmpose/demo/bottomup_demo.py:18
↓ 2 callersMethodprogressive_denoising
(self, cond, shape, verbose=True, callback=None, quantize_denoised=False, img_ca
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:985
↓ 2 callersMethodput
Write data to a given ``filepath`` with 'wb' mode. Note: ``put`` should create a directory if the directory of ``filepath``
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:1007
↓ 2 callersMethodput_text
Write data to a given ``filepath`` with 'w' mode. Note: ``put_text`` should create a directory if the directory of ``
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:1020
↓ 2 callersMethodq_posterior
(self, x_start, x_t, t)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:304
↓ 2 callersMethodquantize_depth
(self, depth)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/loss.py:198
↓ 2 callersFunctionrandom_color
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a vect
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/demo/colormap.py:126
↓ 2 callersFunctionrandom_crop
(lq, hq, sf=4, lq_patchsize=64)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan.py:427
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:86
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:113
↓ 2 callersFunctionread_image
Read an image into the given format. Will apply rotation and flipping if the image has such exif information. Args: file_name (s
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/detection_utils.py:166
↓ 2 callersMethodrecognizeImage
(final Bitmap bitmap, int sensorOrientation)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/lib_support/src/main/java/org/tensorflow/lite/examples/classification/tflite/Classifier.java:252
↓ 2 callersMethodrecreateClassifier
(Model model, Device device, int numThreads)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/app/src/main/java/org/tensorflow/lite/examples/classification/ClassifierActivity.java:206
↓ 2 callersFunctionrefine_keypoints_dark_udp
Refine keypoint predictions using distribution aware coordinate decoding for UDP. See `UDP`_ for details. The operation is in-place. Note:
mmpose/mmpose/codecs/utils/refinement.py:105
↓ 2 callersFunctionrefine_simcc_dark
SimCC version. Refine keypoint predictions using distribution aware coordinate decoding for UDP. See `UDP`_ for details. The operation is in-
mmpose/mmpose/codecs/utils/refinement.py:168
↓ 2 callersMethodregister_schedule
(self, given_betas=None, beta_schedule="linear", timesteps=1000, linear_start=1e-4,
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:138
↓ 2 callersFunctionrel_roi_point_to_rel_img_point
Convert roi based relative point coordinates to image based absolute point coordinates. Args: rois (Tensor): RoIs or BBoxes, shape (N
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/point_sample.py:216
↓ 2 callersMethodrequestPermission
()
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:410
↓ 2 callersFunctionrescale_size
Calculate the new size to be rescaled to. Args: old_size (tuple[int]): The old size (w, h) of image. scale (float | tuple[int]):
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:184
↓ 2 callersMethodreset_num_updates
(self)
ControlNet-v1-1-nightly/ldm/modules/ema.py:25
← previousnext →1,201–1,300 of 7,103, ranked by callers