MCPcopy Create free account

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

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

Functionhook
(model, input, output)
ControlNet-v1-1-nightly/ldm/modules/midas/midas/vit.py:160
Methodhook
(model, input, output)
mmpose/mmpose/utils/hooks.py:17
Methodhook
Hook function.
mmpose/mmpose/models/utils/regularizations.py:21
Methodhook
(self, module, _input)
mmpose/mmpose/models/utils/regularizations.py:77
Methodhook_type
Hook type Subclasses should overwrite this function to return a string value in. {`forward`, `forward_pre`, `backward`}
mmpose/mmpose/models/utils/regularizations.py:25
Methodhook_type
(self)
mmpose/mmpose/models/utils/regularizations.py:74
Methodhook_wrapper
(name)
mmpose/mmpose/utils/hooks.py:15
Methodhooked
The hooked function that logs the return value of the original function.
mmpose/projects/yolox_pose/models/utils.py:28
Methodhooks
list[:obj:`Hook`]: A list of registered hooks.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_runner.py:155
MethodimageCb
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/ros/midas_cpp/src/main.cpp:170
Methodimage_size
Returns: tuple: height, width
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/instances.py:51
Functionimconvert
Convert an image from the src colorspace to dst colorspace. Args: img (ndarray): The input image. src (str): The source colorspac
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/colorspace.py:6
Functionimcrop
Crop image patches. 3 steps: scale the bboxes -> clip bboxes -> crop and pad. Args: img (ndarray): Image to be cropped. bbox
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:386
Functionimdenormalize
(img, mean, std, to_bgr=True)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/photometric.py:48
Functionimequalize
Equalize the image histogram. This function applies a non-linear mapping to the input image, in order to create a uniform distribution of gra
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/photometric.py:131
Functionimfrombytes
Read an image from bytes. Args: content (bytes): Image bytes got from files or other streams. flag (str): Same as :func:`imread`.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/io.py:203
Functioniminvert
Invert (negate) an image. Args: img (ndarray): Image to be inverted. Returns: ndarray: The inverted image.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/photometric.py:59
Functionimnormalize
Normalize an image with mean and std. Args: img (ndarray): Image to be normalized. mean (ndarray): The mean to be used for normal
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/photometric.py:9
Functionimpad_to_multiple
Pad an image to ensure each edge to be multiple to some number. Args: img (ndarray): Image to be padded. divisor (int): Padded im
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:522
Functionimrescale
Resize image while keeping the aspect ratio. Args: img (ndarray): The input image. scale (float | tuple[int]): The scaling factor
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:221
Functionimresize
(img, scale, antialiasing=True)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:766
Functionimresize_like
Resize image to the same size of a given image. Args: img (ndarray): The input image. dst_img (ndarray): The target image.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:162
Functionimresize_np
(img, scale, antialiasing=True)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:839
Functionimresize_to_multiple
Resize image according to a given size or scale factor and then rounds up the the resized or rescaled image size to the nearest value that can be
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:98
Functionimrotate
Rotate an image. Args: img (ndarray): Image to be rotated. angle (float): Rotation angle in degrees, positive values mean
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:292
Functionimsave
(img, img_path)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:203
Functionimshear
Shear an image. Args: img (ndarray): Image to be sheared with format (h, w) or (h, w, c). magnitude (int | float): Th
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:611
Functionimshow_bboxes
Draw bboxes on an image. Args: img (str or ndarray): The image to be displayed. bboxes (list or ndarray): A list of ndarray of sh
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/visualization/image.py:30
Functionimshow_det_bboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray):
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/visualization/image.py:84
Functionimtranslate
Translate an image. Args: img (ndarray): Image to be translated with format (h, w) or (h, w, c). offset (int | float)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/image/geometric.py:680
Functionimwrite
(img, img_path)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:209
Methodinfer_pil
Inference interface for the model for PIL image Args: pil_img (PIL.Image.Image): input PIL image pad_input (b
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/depth_model.py:131
Methodinference
(self, data, *args, **kwargs)
mmpose/tools/torchserve/mmpose_handler.py:48
Methodinference
Returns: list[Instances]: same as `fast_rcnn_inference_rotated`. list[Tensor]: same as `fast_rcnn_inference_rotated`.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/rotated_fast_rcnn.py:148
Functioninference_on_dataset
Run model on the data_loader and evaluate the metrics with evaluator. Also benchmark the inference speed of `model.__call__` accurately.
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/evaluation/evaluator.py:107
Methodinit
(m)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:181
Methodinit
(m)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:267
Methodinit
(m)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:320
Methodinit
(m)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:365
Methodinit
(m)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/weight_init.py:425
Functioninit_
(tensor)
ControlNet-v1-1-nightly/ldm/modules/attention.py:41
Functioninit_dist
(launcher, backend='nccl', **kwargs)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/dist_utils.py:14
Methodinit_net
caffe2.core.Net: the underlying caffe2 init net
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/api.py:143
Functioninit_weights
Performs ResNet-style weight initialization.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/regnet.py:46
Methodinit_weights
(self)
mmpose/mmpose/models/necks/posewarper_neck.py:212
Methodinit_weights
(self)
mmpose/mmpose/models/necks/gap_neck.py:21
Methodinit_weights
(self)
mmpose/mmpose/models/backbones/pvt.py:320
Methodinit_weights
(self)
mmpose/mmpose/models/backbones/hrformer.py:111
Methodinit_weights
(self)
mmpose/mmpose/models/pose_estimators/distiller.py:68
Methodinit_weights
Initialize weights of the head.
mmpose/projects/yolox_pose/models/yolox_pose_head.py:52
Methodinit_weights
Initialize the weights in segmentor. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to N
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/base.py:65
Methodinit_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:48
Methodinit_weights
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/necks/fpn.py:157
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/unet.py:412
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/cgnet.py:338
Methodinit_weights
(self, pretrained=None)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/vit.py:314
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/hrnet.py:484
Methodinit_weights
(self, pretrained=None)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/fast_scnn.py:360
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/resnet.py:600
Methodinit_weights
Initialize weights of classification layer.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:133
Methodinit_weights
Initialize weights of classification layer.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/point_head.py:104
Methodinit_weights
Initialize the weights.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_module.py:56
Methodinit_weights
(self, pretrained=None)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/alexnet.py:43
Methodinit_weights
(self, pretrained=None)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/resnet.py:265
Methodinitialize
(self, context)
mmpose/tools/torchserve/mmpose_handler.py:20
Methodinner_iter
int: Iteration in an epoch.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_runner.py:170
Methodinside_box
Args: box_size (height, width): Size of the reference box covering [0, width] x [0, height] boundary_
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/rotated_boxes.py:349
Methodinstance_inference
(self, mask_cls, mask_pred)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/oneformer_model.py:420
Functioninterpolate_pos_embed
(model, checkpoint_model, pos_embed_key)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/pos_embed.py:72
Functioninterpolate_pos_embed_online
( pos_embed, orig_size: Tuple[int], new_size: Tuple[int], num_extra_tokens: int )
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/pos_embed.py:108
Functioninv_attractor
Inverse attractor: dc = dx / (1 + alpha*dx^gamma), where dx = a - c, a = attractor point, c = bin center, dc = shift in bin center This is the def
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/layers/attractor.py:45
Methodinverse
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/transforms/transform.py:158
Methodinverse
The inverse is to rotate it back with expand, and crop to get the original shape.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/transforms/transform.py:235
Functioninverse_sigmoid
(x, eps=1e-3)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/misc.py:18
Methodis_block
Check if is HRModule building block.
mmpose/tests/test_models/test_backbones/test_hrnet.py:15
Methodis_center_of_bboxes_in_patch
(boxes, patch)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/transforms/augmentation_impl.py:723
Functionis_dist_avail_and_initialized
()
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/misc.py:192
Methodis_init
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_module.py:53
Functionis_jit_tracing
()
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/trace.py:8
Functionis_no_jit
()
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/config.py:25
Functionis_norm
Check if a layer is a normalization layer. Args: layer (nn.Module): The layer to be checked. exclude (type | tuple[type]): Types
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/bricks/norm.py:122
Methodis_norm
Check if is one of the norms.
mmpose/tests/test_models/test_backbones/test_hrnet.py:22
Methodis_norm
Check if is one of the norms.
mmpose/tests/test_models/test_backbones/test_litehrnet.py:15
Methodis_running
bool: indicate whether the timer is running
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/timer.py:45
Methodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:240
Methodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:592
Methodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:605
Methoditer
int: Current iteration.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_runner.py:165
Methoditer
Returns: int: The current iteration number. When used together with a trainer, this is ensured to be the same as
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:485
Methoditeration
(self)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:498
Methoditers_per_epoch
(self)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/base_trainer.py:131
Functionjit
(func=None, check_input=None, full_shape=True, derivate=False,
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/parrots_jit.py:12
Methodjoin_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:617
Methodkl
(self, other=None)
ControlNet-v1-1-nightly/ldm/modules/distributions/distributions.py:39
Methodlabel_and_sample_anchors
Args: anchors (list[RotatedBoxes]): anchors for each feature map. gt_instances: the ground-truth instances for each i
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/proposal_generator/rrpn.py:151
Methodlabel_and_sample_proposals
Prepare some proposals to be used to train the RROI heads. It performs box matching between `proposals` and `targets`, and assigns
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/rotated_fast_rcnn.py:218
Functionlaunch
Launch multi-process or distributed training. This function must be called on all machines involved in the training. It will spawn child
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/engine/launch.py:27
Methodlayers
(self, x)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/keypoint_head.py:268
Methodlayers
(self, x)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/mask_head.py:287
Methodlegacy_forward
multi head attention forward in mmcv version < 1.3.17.
mmpose/mmpose/models/backbones/pvt.py:199
← previousnext →5,801–5,900 of 7,103, ranked by callers