MCPcopy Create free account

hub / github.com/b-arac/rtmpose3d / functions

Functions45 in github.com/b-arac/rtmpose3d

↓ 5 callersFunctionget_checkpoint_path
Download checkpoint if not cached, return local path Args: url: URL to checkpoint file cache_dir: Optional cache directo
rtmpose3d/weights/downloader.py:37
↓ 3 callersMethodfrom_pretrained
Load pretrained model (Transformers-style). Args: pretrained_model_name_or_path: Model name or path to saved mod
rtmpose3d/modeling.py:55
↓ 3 callersFunctionget_simcc_maximum
Get maximum response location and value from simcc representations. Note: instance number: N num_keypoints: K heatmap hei
rtmpose3d/models/utils.py:6
↓ 2 callersMethod_generate_gaussian
Encoding keypoints into SimCC labels with Gaussian Label Smoothing strategy.
rtmpose3d/models/simcc_3d_label.py:209
↓ 2 callersMethodforward
Forward the network. The input is the feature map extracted by backbone and the output is the simcc representation. Args:
rtmpose3d/models/rtmw3d_head.py:169
↓ 2 callersFunctionget_3d_coord
(simcc_x, simcc_y, simcc_z, with_z_labels)
rtmpose3d/models/rtmw3d_head.py:428
↓ 1 callersMethod_map_coordinates
Mapping keypoint coordinates into SimCC space.
rtmpose3d/models/simcc_3d_label.py:195
↓ 1 callersFunction_patch_mmdet_version_check
Automatically patch MMDetection to accept mmcv 2.2.0
rtmpose3d/inference.py:17
↓ 1 callersMethoddecode
Decode keypoints from outputs. Args: batch_outputs (Tensor | Tuple[Tensor]): The network outputs of a data batch
rtmpose3d/models/rtmw3d_head.py:209
↓ 1 callersFunctiondraw_keypoints
Draw keypoints on image. Args: image: Input image (BGR) keypoints_2d: 2D keypoints array [N, 2] scores: Confiden
tests/test_visualize.py:28
↓ 1 callersFunctionmain
()
examples/basic_usage.py:17
↓ 1 callersFunctionsimcc_mpjpe
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints from 3D SimCC. Note: -
rtmpose3d/models/rtmw3d_head.py:378
↓ 1 callersFunctiontest_inference
Test RTMPose3D inference on a single image. Args: image_path: Path to input image device: Device to run inference on ('c
tests/test_inference.py:23
↓ 1 callersFunctiontest_single_vs_multi
Compare detection with and without single_person mode. Args: image_path: Path to input image device: Device to run infer
tests/test_single_person.py:22
↓ 1 callersMethodto
Move model to device (PyTorch-style). Args: device: Device name (e.g., 'cuda:0', 'cpu') Ret
rtmpose3d/modeling.py:169
↓ 1 callersMethodto_dict
Convert config to dictionary.
rtmpose3d/configuration.py:59
↓ 1 callersFunctionvisualize
Visualize keypoints on image. Args: image_path: Path to input image output_path: Path to save annotated image (optional)
tests/test_visualize.py:93
Method__call__
Run inference on image (Transformers-style). Args: image: Input image as numpy array (H, W, 3) in BGR format
rtmpose3d/modeling.py:103
Method__call__
Run 3D pose estimation on a numpy array image Args: image: Numpy array (HWC, BGR format) bbox_thr: B
rtmpose3d/inference.py:155
Method__call__
(self, block_num, block_size, total_size)
rtmpose3d/weights/downloader.py:22
Method__init__
( self, model_size: str = "l", num_keypoints: int = 133, bbox_thr: float = 0.3
rtmpose3d/configuration.py:32
Method__init__
Initialize RTMPose3D model with configuration. Args: config: RTMPose3DConfig instance
rtmpose3d/modeling.py:34
Method__init__
Initialize RTMPose3D inference pipeline Args: model_size: Model size ('l' for large, 'x' for extra large)
rtmpose3d/inference.py:83
Method__init__
(self)
rtmpose3d/weights/downloader.py:19
Method__init__
(self, **kwargs)
rtmpose3d/models/loss.py:8
Method__init__
(self, input_size: Tuple[int, int, int], sigma: Union[float, int, Tuple[floa
rtmpose3d/models/simcc_3d_label.py:74
Method__init__
(self, **kwargs)
rtmpose3d/models/pose_estimator.py:14
Method__init__
( self, in_channels: Union[int, Sequence[int]], out_channels: int, input_size:
rtmpose3d/models/rtmw3d_head.py:55
Method__repr__
(self)
rtmpose3d/configuration.py:122
Method__repr__
(self)
rtmpose3d/modeling.py:188
Method_pack_and_call
(args, func)
rtmpose3d/models/rtmw3d_head.py:222
Methodadd_pred_to_datasample
Add predictions into data samples. Args: batch_pred_instances (List[InstanceData]): The predicted instances of th
rtmpose3d/models/pose_estimator.py:23
Functionclear_cache
Remove all cached checkpoints
rtmpose3d/weights/downloader.py:78
Methoddecode
Decode SimCC labels into 3D keypoints. Args: encoded (Tuple[np.ndarray, np.ndarray]): SimCC labels for x-axis, y-axis
rtmpose3d/models/simcc_3d_label.py:152
Methoddefault_init_cfg
(self)
rtmpose3d/models/rtmw3d_head.py:369
Methoddevice
Get the device model is running on.
rtmpose3d/modeling.py:165
Methodencode
(self, keypoints: np.ndarray, keypoints_3d: Optional[np.ndarray] = None,
rtmpose3d/models/simcc_3d_label.py:102
Methodforward
Alias for __call__ (Transformers-style). Args: image: Input image **kwargs: Additional arguments pas
rtmpose3d/modeling.py:151
Methodforward
(self, pred_simcc, gt_simcc, target_weight)
rtmpose3d/models/loss.py:12
Methodfrom_pretrained
Load configuration from directory or model name. Args: pretrained_model_name_or_path: Path to directory or model
rtmpose3d/configuration.py:91
Methodloss
Calculate losses from a batch of inputs and data samples.
rtmpose3d/models/rtmw3d_head.py:294
Methodloss_name
Loss Name. Returns: str: The name of this loss item.
rtmpose3d/models/loss.py:32
Methodpredict
Predict results from features. Args: feats (Tuple[Tensor] | List[Tuple[Tensor]]): The multi-stage features (or mu
rtmpose3d/models/rtmw3d_head.py:256
Methodsave_pretrained
Save configuration to directory. Args: save_directory: Directory to save config.json
rtmpose3d/configuration.py:74
Methodsave_pretrained
Save model configuration to directory (Transformers-style). Note: Checkpoints are not saved, only configuration. Use
rtmpose3d/modeling.py:86