MCPcopy Create free account

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

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

↓ 2 callersFunctionflip_vectors
Flip instance-level labels in specific axis for test-time augmentation. Args: x_labels (Tensor): The vector labels in x-axis to flip. Sho
mmpose/mmpose/models/utils/tta.py:71
↓ 2 callersFunctionflops_to_string
Convert FLOPs number into a string. Note that Here we take a multiply-add counts as one FLOP. Args: flops (float): FLOPs number to b
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:118
↓ 2 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is the coordinates. Args: feats (Tuple[Tensor])
mmpose/mmpose/models/heads/regression_heads/temporal_regression_head.py:61
↓ 2 callersMethodforward
Forward the network. The input is multi scale feature maps and the output is the coordinates. Args: feats (Tuple[Tensor])
mmpose/mmpose/models/heads/regression_heads/trajectory_regression_head.py:61
↓ 2 callersMethodforward
(self, feats: Tensor)
mmpose/mmpose/models/heads/heatmap_heads/cid_head.py:89
↓ 2 callersMethodforward
Placeholder of forward function.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:166
↓ 2 callersMethodforward
(self, fine_grained_point_feats, coarse_point_feats)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/point_head.py:115
↓ 2 callersMethodforward
Forward function.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/enc_head.py:129
↓ 2 callersMethodforward
Placeholder of forward function.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/decode_heads/cascade_decode_head.py:14
↓ 2 callersMethodforward
(target_gpus, input)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/parallel/_functions.py:67
↓ 2 callersFunctionforward_adapted_unflatten
(pretrained, x, function_name="forward_features")
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:83
↓ 2 callersFunctionforward_default
(pretrained, x, function_name="forward_features")
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:63
↓ 2 callersMethodforward_features
(self, x)
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/models/backbones/uniformer.py:383
↓ 2 callersMethodforward_features
(self, features)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/pixel_decoder/fpn.py:136
↓ 2 callersMethodforward_inference
( self, images: ImageList, features: List[torch.Tensor], predictions: List[Lis
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/meta_arch/fcos.py:253
↓ 2 callersMethodforward_prediction_heads
(self, output, mask_features, attn_mask_target_size, i)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/modeling/transformer_decoder/oneformer_transformer_decoder.py:495
↓ 2 callersMethodforward_single
Scatters points into voxels. Args: points (torch.Tensor): Points to be reduced into voxels. coors (torch.Tensor): Cor
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/ops/scatter_points.py:82
↓ 2 callersMethodforward_test
Forward pass during testing. Args: feats (Tensor): Input feature tensor. test_cfg (Dict): Testing configuration, incl
mmpose/mmpose/models/heads/heatmap_heads/cid_head.py:160
↓ 2 callersMethodfreeze_layers
(self)
mmpose/mmpose/models/necks/posewarper_neck.py:205
↓ 2 callersMethodfrom_config
(cls, cfg)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/roi_heads/roi_heads.py:167
↓ 2 callersFunctiongenerate_udp_gaussian_heatmaps
Generate gaussian heatmaps of keypoints using `UDP`_. Args: heatmap_size (Tuple[int, int]): Heatmap size in [W, H] keypoints (np.
mmpose/mmpose/codecs/utils/gaussian_heatmap.py:151
↓ 2 callersFunctiongenerate_unbiased_gaussian_heatmaps
Generate gaussian heatmaps of keypoints using `Dark Pose`_. Args: heatmap_size (Tuple[int, int]): Heatmap size in [W, H] keypoint
mmpose/mmpose/codecs/utils/gaussian_heatmap.py:93
↓ 2 callersMethodget
Read data from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns:
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/fileio/file_client.py:147
↓ 2 callersMethodgetDesiredPreviewFrameSize
()
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:681
↓ 2 callersMethodgetDevice
()
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:647
↓ 2 callersMethodgetId
()
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:158
↓ 2 callersMethodgetLayoutId
()
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:679
↓ 2 callersMethodgetModel
()
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:635
↓ 2 callersMethodgetModelPath
Gets the name of the model file stored in Assets.
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/lib_task_api/src/main/java/org/tensorflow/lite/examples/classification/tflite/Classifier.java:277
↓ 2 callersMethodgetNumThreads
()
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:663
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/pos_embed.py:46
↓ 2 callersFunctionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/utils.py:128
↓ 2 callersFunctionget_act_fn
Activation Function Factory Fetching activation fns by name with this function allows export or torch script friendly functions to be returne
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/activations/__init__.py:96
↓ 2 callersFunctionget_annotations
Get annotations, including centers, scales, joints_2d and joints_3d. Args: joints_2d: 2D joint coordinates in shape [N, K, 2], where N is
mmpose/tools/dataset_converters/preprocess_mpi_inf_3dhp.py:59
↓ 2 callersFunctionget_bbox
(args, detector, frame)
mmpose/demo/body3d_pose_lifter_demo.py:282
↓ 2 callersFunctionget_black_border
Crops the black border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/preprocess.py:100
↓ 2 callersFunctionget_border_params
(rgb_image, tolerance=0.1, cut_off=20, value=0, level_diff_threshold=5, channel_axis=-1, min_border=5)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/preprocess.py:39
↓ 2 callersMethodget_centers
Returns: The box centers in a Nx2 array of (x, y).
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/boxes.py:264
↓ 2 callersFunctionget_cfg
Get a copy of the default config. Returns: a detectron2 CfgNode instance.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/config/config.py:99
↓ 2 callersFunctionget_checkpoint_url
Returns the URL to the model trained using the given config Args: config_path (str): config file name relative to detectron2's "conf
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/model_zoo/model_zoo.py:111
↓ 2 callersFunctionget_code
(mod)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/torchscript.py:83
↓ 2 callersMethodget_conf_parameters
Returns parameters of all the ModuleDicts children that are exclusively used for the given bin configuration
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:285
↓ 2 callersMethodget_crop_bbox
Randomly get a crop bounding box.
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:512
↓ 2 callersMethodget_crop_size
Args: image_size (tuple): height, width Returns: crop_size (tuple): height, width in absolute pixels
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/transforms/augmentation_impl.py:408
↓ 2 callersMethodget_data_info
Get annotation by index. Args: idx (int): Global index of ``CombinedDataset``. Returns: dict: The idx-th anno
mmpose/mmpose/datasets/dataset_wrappers.py:91
↓ 2 callersMethodget_deltas
Get box regression transformation deltas (dx, dy, dw, dh) that can be used to transform the `src_boxes` into the `target_boxes`. That
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/box_regression.py:43
↓ 2 callersFunctionget_diagonal_lengths
Calculate the diagonal length of instance bounding box from visible keypoints. Args: keypoints (np.ndarray): Keypoint coordinates in
mmpose/mmpose/codecs/utils/instance_property.py:92
↓ 2 callersMethodget_epoch
(self, runner)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/logger/base.py:72
↓ 2 callersFunctionget_fed_loss_cls_weights
Get frequency weight for each class sorted by class id. We now calcualte freqency weight using image_count to the power freq_weight_power.
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/detection_utils.py:547
↓ 2 callersMethodget_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/structures/instances.py:102
↓ 2 callersMethodget_frame
Get frame by index. Args: frame_id (int): Index of the expected frame, 0-based. Returns: ndarray or None: Re
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/video/io.py:160
↓ 2 callersFunctionget_git_hash
Get the git hash of the current repo. Args: fallback (str, optional): The fallback string when git hash is unavailable. Defau
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/utils/version_utils.py:66
↓ 2 callersMethodget_hook_info
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/base_runner.py:309
↓ 2 callersFunctionget_host_info
Get hostname and username. Return empty string if exception raised, e.g. ``getpass.getuser()`` will lead to error in docker container
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/utils.py:16
↓ 2 callersMethodget_input
(self, batch, k, return_first_stage_outputs=False, force_c_encode=False, cond_key=None, retu
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:767
↓ 2 callersFunctionget_instance_bbox
Calculate the pseudo instance bounding box from visible keypoints. The bounding boxes are in the xyxy format. Args: keypoints (np.nda
mmpose/mmpose/codecs/utils/instance_property.py:64
↓ 2 callersFunctionget_instance_root
Calculate the coordinates and visibility of instance roots. Args: keypoints (np.ndarray): Keypoint coordinates in shape (N, K, D)
mmpose/mmpose/codecs/utils/instance_property.py:7
↓ 2 callersMethodget_lr
(self, runner, base_lr)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:68
↓ 2 callersFunctionget_lvis_instances_meta
Load LVIS metadata. Args: dataset_name (str): LVIS dataset name without the split name (e.g., "lvis_v0.5"). Returns: di
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/data/datasets/lvis.py:168
↓ 2 callersFunctionget_model_complexity_info
Get complexity information of a model. This method can calculate FLOPs and parameter counts of a model with corresponding input shape. It can
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:36
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
ControlNet-v1-1-nightly/ldm/models/diffusion/dpm_solver/dpm_solver.py:246
↓ 2 callersFunctionget_model_parameters_number
Calculate parameter number of a model. Args: model (nn.module): The model for parameter number calculation. Returns: float:
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:307
↓ 2 callersFunctionget_modules_mapping
()
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:553
↓ 2 callersMethodget_momentum
(self, runner, base_momentum)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:52
↓ 2 callersMethodget_momentum
(self, runner, param_group)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:465
↓ 2 callersMethodget_pad_shape
Get horizontal and vertical padding shapes.
mmpose/mmpose/models/utils/transformer.py:89
↓ 2 callersFunctionget_padding_value
(padding, kernel_size, **kwargs)
ControlNet-v1-1-nightly/annotator/normalbae/models/submodules/efficientnet_repo/geffnet/conv2d_layers.py:116
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/data/tokenizer.py:62
↓ 2 callersFunctionget_pb_arg_valf
(pb, arg_name, default_val)
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:179
↓ 2 callersFunctionget_pose_est_results
(args, pose_estimator, frame, bboxes, pose_est_results_last, next_id, pose_lift_datas
mmpose/demo/body3d_pose_lifter_demo.py:154
↓ 2 callersFunctionget_pose_lift_results
(args, visualizer, pose_lifter, pose_est_results_list, frame, frame_idx, pose_est_re
mmpose/demo/body3d_pose_lifter_demo.py:212
↓ 2 callersFunctionget_rank
()
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/comm.py:29
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:127
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
ControlNet-v1-1-nightly/annotator/midas/midas/vit.py:166
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
ControlNet-v1-1-nightly/ldm/modules/midas/midas/vit.py:166
↓ 2 callersMethodget_regular_lr
(self, runner)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:71
↓ 2 callersMethodget_regular_momentum
(self, runner)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:55
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of qu
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/modeling/backbone/utils.py:63
↓ 2 callersFunctionget_repo_dir
Return the path of the MMPose repo directory.
mmpose/mmpose/testing/_utils.py:216
↓ 2 callersFunctionget_state_dict
(d)
ControlNet-v1-1-nightly/cldm/model.py:8
↓ 2 callersFunctionget_sub_graph_external_input_output
Return the list of external input/output of sub-graph, each element is tuple of the name and corresponding version in predict_net. exter
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/export/shared.py:755
↓ 2 callersFunctionget_torchvision_models
()
ControlNet-v1-1-nightly/annotator/uniformer/mmcv_custom/checkpoint.py:172
↓ 2 callersMethodget_v
(self, x, noise, t)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:361
↓ 2 callersMethodget_value
(self)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/misc.py:91
↓ 2 callersFunctionget_vkitti2_loader
(data_dir_root, batch_size=1, **kwargs)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/vkitti2.py:172
↓ 2 callersFunctionget_vkitti_loader
(data_dir_root, batch_size=1, **kwargs)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/vkitti.py:136
↓ 2 callersMethodget_warmup_lr
(self, cur_iters)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:85
↓ 2 callersMethodget_warmup_momentum
(self, cur_iters)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:71
↓ 2 callersFunctionget_white_border
Crops the white border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/data/preprocess.py:82
↓ 2 callersFunctiongrad
(x)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/trainers/loss.py:96
↓ 2 callersMethodhas_overflow
Check if params contain overflow.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/fp16_utils.py:349
↓ 2 callersMethodhead_loss
Calculate losses from a batch of inputs and data samples.
mmpose/mmpose/models/pose_estimators/distiller.py:196
↓ 2 callersMethodhistories
Returns: dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars
ControlNet-v1-1-nightly/annotator/oneformer/detectron2/utils/events.py:416
↓ 2 callersFunctionhook
(model, input, output)
ControlNet-v1-1-nightly/annotator/midas/midas/vit.py:160
↓ 2 callersMethodimport_wandb
(self)
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:25
↓ 2 callersFunctionimshow
(x, title=None, cbar=False, figsize=None)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:37
↓ 2 callersMethodinfer
Inference interface for the model Args: x (torch.Tensor): input tensor of shape (b, c, h, w) pad_input (bool,
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/depth_model.py:115
↓ 2 callersFunctioninfer_type
(x)
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/utils/arg_utils.py:3
↓ 2 callersMethodinference
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:465
↓ 2 callersMethodinit_from_ckpt
(self, path, ignore_keys=list(), only_model=False)
ControlNet-v1-1-nightly/ldm/models/diffusion/ddpm.py:210
← previousnext →1,101–1,200 of 7,103, ranked by callers