MCPcopy Create free account

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

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

↓ 2 callersFunctionresize
* @brief Resize image * @param img Input image * @param w Resized width * @param h Resized height * @return Resized image and offset */
mmpose/projects/rtmpose/examples/RTMPose-Deploy/Windows/TensorRT/src/RTMPoseTensorRT/utils.cpp:47
↓ 2 callersMethodresize_pos_embed
Resize pos_embed weights. Resize pos_embed using bicubic interpolate method. Args: pos_embed (torch.Tensor): pos_embed we
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/vit.py:392
↓ 2 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
ControlNet-v1-1-nightly/ldm/modules/ema.py:68
↓ 2 callersFunctionrevert_heatmap
Revert predicted heatmap on the original image. Args: heatmap (np.ndarray or torch.tensor): predicted heatmap. bbox_center (np.nd
mmpose/mmpose/structures/utils.py:82
↓ 2 callersMethodrotate_image
(self, image, angle, flag=Image.BILINEAR)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/data_mono.py:440
↓ 2 callersMethodrunInBackground
(final Runnable r)
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:374
↓ 2 callersMethodrun_iter
(self, data_batch, train_mode, **kwargs)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/epoch_based_runner.py:24
↓ 2 callersFunctionsafe_step
(x, step=2)
ControlNet-v1-1-nightly/annotator/util.py:78
↓ 2 callersMethodsample_log
(self, cond, batch_size, ddim, ddim_steps, **kwargs)
ControlNet-v1-1-nightly/cldm/cldm.py:412
↓ 2 callersMethodsave
Args: filepath (str): a string that contains the absolute path, including the file name, where the visualized ima
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:302
↓ 2 callersFunctionsave_checkpoint
Save checkpoint to file. The checkpoint will have 3 fields: ``meta``, ``state_dict`` and ``optimizer``. By default ``meta`` will contain vers
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/checkpoint.py:634
↓ 2 callersMethodsave_checkpoint
(self, out_dir, filename_tmpl, save_op
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_runner.py:197
↓ 2 callersFunctionsave_coco_anno
Save annotations in coco-format. :param keypoints_all: keypoint annotations. :param annotated_all: images annotated or not. :param imgs_a
mmpose/tools/dataset_converters/parse_deepposekit_dataset.py:13
↓ 2 callersFunctionsave_coco_anno
Save annotations in coco-format. :param data_annotation: list of data annotation. :param img_root: the root dir to load images. :param sa
mmpose/tools/dataset_converters/parse_macaquepose_dataset.py:31
↓ 2 callersFunctionscandir
Scan a directory to find the interested files. Args: dir_path (str | obj:`Path`): Path of the directory. suffix (str | tuple(str)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/path.py:39
↓ 2 callersFunctionscatter
Scatter inputs to target gpus. The only difference from original :func:`scatter` is to add support for :type:`~mmcv.parallel.DataContainer`.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/scatter_gather.py:9
↓ 2 callersFunctionscatter
Scatters tensor across multiple GPUs.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/_functions.py:6
↓ 2 callersMethodscatter
(self, inputs, kwargs, device_ids)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/distributed.py:26
↓ 2 callersFunctionseed_all_rng
Set the random seed for the RNG in torch, numpy and python. Args: seed (int): if None, will use a strong random seed.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/env.py:27
↓ 2 callersFunctionsem_seg_postprocess
Return semantic segmentation predictions in the original resolution. The input images are often resized when entering semantic segmentor. Mo
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/postprocessing.py:77
↓ 2 callersMethodsemantic_masks
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/visualizer.py:212
↓ 2 callersFunctionsemantic_run
(img, predictor, metadata)
ControlNet-v1-1-nightly/annotator/oneformer/api.py:39
↓ 2 callersMethodset
(self, name, value)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/c10.py:76
↓ 2 callersMethodsetFragment
()
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:470
↓ 2 callersFunctionshapes_to_tensor
Turn a list of integer scalars or integer Tensor scalars into a vector, in a way that's both traceable and scriptable. In tracing, `x` s
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/wrappers.py:19
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan_light.py:98
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ControlNet-v1-1-nightly/ldm/modules/image_degradation/bsrgan.py:99
↓ 2 callersMethodshould_early_stop
(self)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/base_trainer.py:138
↓ 2 callersMethodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor): The semantic segment
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/base.py:208
↓ 2 callersMethodsimple_test
Placeholder for single image test.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/base.py:56
↓ 2 callersMethodsince_last_check
Time since the last checking. Either :func:`since_start` or :func:`since_last_check` is a checking operation. Returns (float
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/timer.py:74
↓ 2 callersMethodsince_start
Total time since the timer is started. Returns (float): Time in seconds.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/timer.py:64
↓ 2 callersFunctionsingle_gpu_test
Test with single GPU. Args: model (nn.Module): Model to be tested. data_loader (utils.data.Dataloader): Pytorch data loader.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/apis/test.py:34
↓ 2 callersMethodsinglestep_dpm_solver_third_update
Singlestep solver DPM-Solver-3 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:599
↓ 2 callersFunctionsmooth_heatmaps
Smooth the heatmaps by blurring and averaging. Args: heatmaps (Tensor): The heatmaps to smooth. blur_kernel_size (int): The kerne
mmpose/mmpose/models/heads/heatmap_heads/cid_head.py:20
↓ 2 callersMethodsmooth_l1_loss
Re-implement torch.nn.functional.smooth_l1_loss with beta to support pytorch <= 1.6.
mmpose/mmpose/models/losses/regression_loss.py:169
↓ 2 callersFunctionsplit
(x)
ControlNet-v1-1-nightly/cldm/hack.py:47
↓ 2 callersMethodstart
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/progressbar.py:26
↓ 2 callersMethodstate_dict
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/hooks.py:365
↓ 2 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
ControlNet-v1-1-nightly/ldm/modules/ema.py:59
↓ 2 callersFunctionsubsample_labels
Return `num_samples` (or fewer, if not enough found) random samples from `labels` which is a mixture of positives & negatives. It will tr
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/sampling.py:9
↓ 2 callersMethodsummarize
Compute and display summary metrics for evaluation results given a custom value for max_dets_per_image
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/evaluation/detection_coco_evaluator.py:641
↓ 2 callersMethodtest
Evaluate the given model. The given model is expected to already contain weights to evaluate. Args: cfg (CfgNode
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/defaults.py:577
↓ 2 callersMethodto_bitmasks
Args: see documentation of :func:`paste_masks_in_image`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/masks.py:520
↓ 2 callersMethodto_d2_instances_list
Convert InstancesList to List[Instances]. The input `instances_list` can also be a List[Instances], in this case this method is a non
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/c10.py:110
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/vkitti.py:52
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/vkitti2.py:53
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/diode.py:51
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/data_mono.py:543
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/diml_outdoor_test.py:48
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/sun_rgbd_loader.py:48
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/hypersim.py:68
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/ddad.py:51
↓ 2 callersMethodto_tensor
(self, pic)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/diml_indoor_test.py:51
↓ 2 callersFunctiontrack_progress
Track the progress of tasks execution with a progress bar. Tasks are done with a simple for-loop. Args: func (callable): The functio
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/progressbar.py:64
↓ 2 callersMethodtrain
Convert the model into training mode.
mmpose/mmpose/models/backbones/hrnet.py:603
↓ 2 callersMethodtrain
Convert the model into training mode.
mmpose/mmpose/models/backbones/litehrnet.py:993
↓ 2 callersMethodtrain_step
(self, *inputs, **kwargs)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/data_parallel.py:47
↓ 2 callersMethodtransform
The transform function of :class:`BottomupResize` to perform photometric distortion on images. See ``transform()`` method of :class:`
mmpose/mmpose/datasets/transforms/bottomup_transforms.py:448
↓ 2 callersFunctiontraverse_graph
(graph, prefix='')
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/onnx_optimize.py:23
↓ 2 callersMethodunfreeze
(self)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas.py:247
↓ 2 callersFunctionuniform_init
(module, a=0, b=1, bias=0)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:85
↓ 2 callersMethodupdate_scale
update the current loss scale value when overflow happens.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/fp16_utils.py:372
↓ 2 callersMethodval_step
(self, *inputs, **kwargs)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/data_parallel.py:69
↓ 2 callersMethodvalidate
(self)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/base_trainer.py:259
↓ 2 callersMethodvisualize
Visualize predictions. Args: inputs (list): Inputs preprocessed by :meth:`_inputs_to_list`. preds (Any): Predictions
mmpose/mmpose/apis/inferencers/pose3d_inferencer.py:403
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/backbone/swin.py:45
↓ 2 callersMethodwindow_partition
Args: x: (B, H, W, C) Returns: windows: (num_windows*B, window_size, window_size, C)
mmpose/mmpose/models/backbones/swin.py:271
↓ 2 callersFunctionwindow_unpartition
Window unpartition into original sequences and removing padding. Args: x (tensor): input tokens with [B * num_windows, window_size, w
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/utils.py:40
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/transformer_decoder/transformer.py:186
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/transformer_decoder/oneformer_transformer_decoder.py:56
↓ 2 callersFunctionwrap_fp16_model
Wrap the FP32 model to FP16. If you are using PyTorch >= 1.6, torch.cuda.amp is used as the backend, otherwise, original mmcv implementation
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/fp16_utils.py:234
↓ 2 callersFunctionwrite_frame
(file_idx)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/video/io.py:308
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
ControlNet-v1-1-nightly/ldm/modules/attention.py:79
↓ 1 callersFunctionBilinearInterpolation
(tensor_in, up_scale)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:47
↓ 1 callersFunctionBuildSortedDetectionList
Helper function to Accumulate() Considers the evaluation results applicable to a particular category, area range, and max_detections parameter setting
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/cocoeval/cocoeval.cpp:223
↓ 1 callersFunctionComputePrecisionRecallCurve
Helper function to Accumulate() Compute a precision recall curve given a sorted list of detected instances encoded in evaluations, evaluation_indices,
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/cocoeval/cocoeval.cpp:284
↓ 1 callersMethodInference
mmpose/projects/rtmpose/examples/RTMPose-Deploy/Windows/OnnxRumtime-CPU/src/RTMPoseOnnxRuntime/rtmdet_onnxruntime.cpp:35
↓ 1 callersMethodInstanceAnnotation
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/cocoeval/cocoeval.h:18
↓ 1 callersFunctionMatchDetectionsToGroundTruth
For each IOU threshold, greedily match each detected instance to a ground truth instance (if possible) and store the results
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/cocoeval/cocoeval.cpp:61
↓ 1 callersFunctionMixImage
* @brief Mix two images * @param srcImage Original image * @param mixImage Past image * @param startPoint Start point * @return Success or not */
mmpose/projects/rtmpose/examples/RTMPose-Deploy/Windows/TensorRT/src/RTMPoseTensorRT/utils.cpp:18
↓ 1 callersFunctionNEG_INF_DIAG
Returns a diagonal matrix of size [n, n]. The diagonal are all "-inf". This is for avoiding calculating the overlapped element in the Criss-C
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/cc_attention.py:9
↓ 1 callersFunctionROIAlignRotated_backward_cpu
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:466
↓ 1 callersFunctionROIAlignRotated_forward_cpu
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:418
↓ 1 callersFunctionSortInstancesByDetectionScore
Sort detections from highest score to lowest, such that detection_instances[detection_sorted_indices[t]] >= detection_instances[detection_sorted_indic
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/cocoeval/cocoeval.cpp:18
↓ 1 callersFunctionSortInstancesByIgnore
Partition the ground truth objects based on whether or not to ignore them based on area
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/layers/csrc/cocoeval/cocoeval.cpp:34
↓ 1 callersMethod__call__
(self, module)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:222
↓ 1 callersMethod__enter__
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/timer.py:49
↓ 1 callersMethod__exit__
(self, *args)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:150
↓ 1 callersMethod__getattr__
(self, name)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/config.py:506
↓ 1 callersMethod__init__
(self, input_size: Tuple[int, int], aug_scales: Optional[List[float]] = None
mmpose/mmpose/datasets/transforms/bottomup_transforms.py:378
↓ 1 callersMethod__init__
(self, depth, groups=32, width_per_group=4, **kwargs)
mmpose/mmpose/models/backbones/resnext.py:161
↓ 1 callersMethod__init__
( self, downsample_times=4, num_stacks=1, out_channels=34, stage_chann
mmpose/mmpose/models/backbones/hourglass_ae.py:112
↓ 1 callersMethod__init__
(self, in_channels, stem_channels=1024, num_blocks=2,
mmpose/mmpose/models/backbones/tcn.py:195
↓ 1 callersMethod__init__
( self, extra, in_channels=3, conv_cfg=None, norm_cfg=dict(type='BN'),
mmpose/mmpose/models/backbones/hrnet.py:284
↓ 1 callersMethod__init__
(self, depth, se_ratio=16, **kwargs)
mmpose/mmpose/models/backbones/seresnet.py:127
↓ 1 callersMethod__init__
(self, widen_factor=1.0, out_indices=(3, ), frozen_stages=-
mmpose/mmpose/models/backbones/shufflenet_v2.py:170
↓ 1 callersMethod__init__
(self, in_channels, out_channels, groups=3,
mmpose/mmpose/models/backbones/shufflenet_v1.py:48
↓ 1 callersMethod__init__
(self, depth, groups=32, width_per_group=4, **kwargs)
mmpose/mmpose/models/backbones/seresnext.py:169
↓ 1 callersMethod__init__
( self, in_channels, out_channels, feat_channels=128, middle_channels=
mmpose/mmpose/models/backbones/cpm.py:96
← previousnext →1,301–1,400 of 7,103, ranked by callers