MCPcopy Create free account

hub / github.com/MotrixLab/AiOS / functions

Functions1,848 in github.com/MotrixLab/AiOS

↓ 3 callersMethodassign
Assign boxes to either a ground truth boxes or a negative boxes.
detrsmpl/core/post_processing/bbox/assigners/base_assigner.py:8
↓ 3 callersFunctionaugmentation_instance_sample
(img, bbox, data_split,data,dataname)
util/preprocessing.py:200
↓ 3 callersFunctionbuild_assigner
Builder of box assigner.
detrsmpl/core/post_processing/bbox/assigners/builder.py:7
↓ 3 callersFunctionbuild_sampler
Builder of box sampler.
detrsmpl/core/post_processing/bbox/samplers/builder.py:7
↓ 3 callersFunctionbuild_shader
Build shader.
detrsmpl/core/renderer/torch3d_renderer/shader/builder.py:49
↓ 3 callersFunctionconvert_ndc_to_screen
Convert intrinsic matrix from ndc to screen. Args: K (Union[torch.Tensor, np.ndarray]): Input 4x4 intrinsic matrix, left mm d
detrsmpl/core/conventions/cameras/convert_convention.py:479
↓ 3 callersFunctionconvert_screen_to_ndc
Convert intrinsic matrix from screen to ndc. Args: K (Union[torch.Tensor, np.ndarray]): input intrinsic matrix. resolution (Union
detrsmpl/core/conventions/cameras/convert_convention.py:547
↓ 3 callersMethoddecompress_keypoints
If a key contains 'keypoints', and f'{key}_mask' is in self.keys(), invalid zeros will be inserted to the right places and f'{key}_mask'
datasets/humandata.py:1245
↓ 3 callersMethoddetach
Modified from pytorch3d and add `model_type` in __class__.__init__.
detrsmpl/core/renderer/torch3d_renderer/meshes.py:211
↓ 3 callersFunctiondigit_version
(version_str)
detrsmpl/__init__.py:6
↓ 3 callersFunctionee_to_rotmat
Convert euler angle to rotation matrixs. Args: euler_angle (Union[torch.Tensor, numpy.ndarray]): input shape should be (.
detrsmpl/utils/transforms.py:110
↓ 3 callersFunctionenc_camera_convention
convert camera convention to axis direction and order.
detrsmpl/core/conventions/cameras/convert_convention.py:61
↓ 3 callersMethodencode
(self, src, src_mask, pos_embed)
detrsmpl/core/post_processing/speed_up/deciwatch.py:415
↓ 3 callersFunctionestimate_translation
Find camera translation that brings 3D joints S closest to 2D the corresponding joints_2d. Input: S: (B, 49, 3) 3D joint locations
detrsmpl/utils/geometry.py:329
↓ 3 callersMethodevaluate
Evaluate fitted parameters through loss computation. This function serves two purposes: 1) internally, for loss backpropagation 2) ext
detrsmpl/models/registrants/smplify.py:387
↓ 3 callersMethodextend
(self, N)
detrsmpl/core/renderer/torch3d_renderer/lights/lights.py:48
↓ 3 callersMethodflat_params_to_dict
Turn param tensors to dict.
detrsmpl/models/heads/expose_head.py:264
↓ 3 callersMethodforward_plugin
(self, x, plugin_names)
detrsmpl/models/backbones/resnet.py:237
↓ 3 callersMethodget_camera_param
Build camera param.
detrsmpl/models/heads/expose_head.py:242
↓ 3 callersFunctionget_crop_info
Get the transformation of points on the cropped image to the points on the original image.
detrsmpl/models/utils/SMPLX.py:137
↓ 3 callersMethodget_default_projection_matrix
Class method. Calculate the projective transformation matrix by default parameters. Args: **kwargs: parameters for the pr
detrsmpl/core/cameras/cameras.py:246
↓ 3 callersMethodget_iphone_color_resolution
Get color image resolution of an iPhone RGB camera by iPhone id. Args: iphone_id (int, optional): ID of an iPhone
detrsmpl/data/data_structures/smc_reader.py:307
↓ 3 callersMethodget_iphone_extrinsics
Get extrinsics(cam2world) of an iPhone RGB camera by iPhone id. Args: iphone_id (int, optional): ID of an iPhone,
detrsmpl/data/data_structures/smc_reader.py:253
↓ 3 callersMethodget_ndc_camera_transform
(self, **kwargs)
detrsmpl/core/cameras/cameras.py:758
↓ 3 callersFunctionimages_to_array
Read a folder of images as an array of (f * h * w * 3). Args: input_folder (str): folder of input images. resolution (Option
detrsmpl/utils/ffmpeg_utils.py:379
↓ 3 callersMethodinit_weights
Initialize model weights.
detrsmpl/models/discriminators/pose_discriminator.py:98
↓ 3 callersFunctioninterpolate
Args: feat (torch.Tensor): [B, C, H, W] image features uv (torch.Tensor): [B, 2, N] uv coordinates in the image plane
detrsmpl/models/heads/pare_head.py:137
↓ 3 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
detrsmpl/models/utils/transformer.py:40
↓ 3 callersMethodis_perspective
Boolean of whether is perspective.
detrsmpl/core/cameras/cameras.py:641
↓ 3 callersFunctionkeypoint_3d_auc
Calculate the Area Under the Curve (3DAUC) computed for a range of 3DPCK thresholds. Paper ref: `Monocular 3D Human Pose Estimation In The Wil
detrsmpl/core/evaluation/eval_utils.py:169
↓ 3 callersFunctionkeypoint_3d_pck
Calculate the Percentage of Correct Keypoints (3DPCK) w. or w/o rigid alignment. Paper ref: `Monocular 3D Human Pose Estimation In The Wild Us
detrsmpl/core/evaluation/eval_utils.py:119
↓ 3 callersMethodload
Load camera name and parameters from a file.
detrsmpl/core/cameras/camera_parameters.py:309
↓ 3 callersMethodload_param_decoder
Build decoders for each pose.
detrsmpl/models/heads/expose_head.py:212
↓ 3 callersMethodload_regressor
Build regressor for ExPose Head.
detrsmpl/models/heads/expose_head.py:201
↓ 3 callersMethodlog_every
(self, iterable, print_freq, header=None, logger=None)
util/misc.py:235
↓ 3 callersMethodloss
Loss function. Only outputs from the last feature level are used for computing losses by default. Args: all_cls_
detrsmpl/models/heads/detr_head.py:313
↓ 3 callersMethodloss_smpl_pose
(self, outputs, targets, indices, idx, num_boxes, data_batch, face_hand_kpt=False)
models/aios/criterion_smplx.py:304
↓ 3 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
detrsmpl/models/backbones/resnet.py:216
↓ 3 callersMethodmerge_from_dict
Merge list into cfg_dict. Merge the dict parsed by MultipleKVAction into this cfg. Examples: >>> options = {'model.backb
util/config.py:311
↓ 3 callersFunctionnested_tensor_from_tensor_list
(tensor_list: List[Tensor])
util/misc.py:445
↓ 3 callersFunctionnew_array_func
(shape, value, device_data, if_uint8)
detrsmpl/core/conventions/keypoints_mapping/__init__.py:123
↓ 3 callersFunctionproject_points
Perform orthographic projection of 3D points using the camera parameters, return projected 2D points in image plane. Notes: batch siz
detrsmpl/utils/geometry.py:360
↓ 3 callersFunctionround_float
(items)
engine.py:22
↓ 3 callersFunctiontensor2array
Convert image tensor to array.
detrsmpl/core/renderer/torch3d_renderer/utils.py:43
↓ 3 callersMethodtensor2dict
Convert full pose tensor to pose dict. Args: full_pose (torch.Tensor): shape should be (..., 165) or (..., 55, 3)
detrsmpl/models/body_models/smpl.py:144
↓ 3 callersMethodtensor2rgba
(self, tensor: torch.Tensor)
detrsmpl/core/renderer/torch3d_renderer/base_renderer.py:265
↓ 3 callersFunctiontransform_joint_to_other_db_batch
(src_joint, src_name, dst_name)
util/transforms.py:103
↓ 3 callersMethodupdate
(self, **kwargs)
util/misc.py:206
↓ 3 callersMethodupdate_face_uv_pixel
Move the pixels lie on the edges inside the mask, then refine the rest points by searching the nearest pixel in the faces it should be
detrsmpl/core/renderer/torch3d_renderer/uv_renderer.py:113
↓ 3 callersMethodupdate_fragments
Update pix_to_face, bary_coords.
detrsmpl/core/renderer/torch3d_renderer/uv_renderer.py:92
↓ 2 callersMethod__add_zero_pad__
Pad zeros to a compressed keypoints array. Args: compressed_array (np.ndarray): A compressed keypoints array.
detrsmpl/data/data_structures/human_data.py:1301
↓ 2 callersMethod__check_key__
Check whether the key matches definition in HumanData.SUPPORTED_KEYS. Args: key (Any): Key in HumanData.
detrsmpl/data/data_structures/human_data.py:753
↓ 2 callersMethod__check_value__
Check whether the value matches definition in HumanData.SUPPORTED_KEYS. Args: key (Any): Key in HumanData
detrsmpl/data/data_structures/human_data.py:793
↓ 2 callersMethod__concat_value__
Concat two values from two different HumanData. Args: key (Any): The common key of the two values. va
detrsmpl/data/data_structures/human_data.py:1268
↓ 2 callersMethod__get_sliced_result__
( cls, input_data: Union[np.ndarray, list, tuple], slice_dim: int,
detrsmpl/data/data_structures/multi_human_data.py:451
↓ 2 callersMethod__getitem__
(self, key)
detrsmpl/core/conventions/segmentation/__init__.py:34
↓ 2 callersMethod__getitem__
Get value defined by HumanData. This function will be called by self[key]. In keypoints_compressed mode, if the key contains 'keypoint
detrsmpl/data/data_structures/human_data.py:442
↓ 2 callersMethod__init__
(self, window_size: int, output_size: int, hidden_size: int
detrsmpl/core/post_processing/smooth/smoothnet.py:71
↓ 2 callersMethod__init__
(self, num_branches, blocks, num_blocks, i
detrsmpl/models/backbones/hrnet.py:20
↓ 2 callersMethod__init__
Args: *args: extra arguments for SMPL initialization. keypoint_src: source convention of keypoints. This convention
detrsmpl/models/body_models/smpl.py:33
↓ 2 callersMethod__init__
PARE parameters regressor head. This class is modified from. [PARE](hhttps://github.com/ mkocabas/PARE/blob/master/pare/models/head/p
detrsmpl/models/heads/pare_head.py:201
↓ 2 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
models/utils.py:91
↓ 2 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
models/aios/utils.py:156
↓ 2 callersMethod__init__
(self, num_pos_feats=64, temperature=10000, normalize=False
models/aios/position_encoding.py:13
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
detrsmpl/utils/util_mixins.py:75
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
util/utils.py:356
↓ 2 callersMethod__read_color_from_bytes__
Decode an RGB image from an encoded byte array.
detrsmpl/data/data_structures/smc_reader.py:417
↓ 2 callersMethod__remove_zero_pad__
Remove zero-padding from a full-size keypoints array. Args: zero_pad_array (np.ndarray): A keypoints array in ful
detrsmpl/data/data_structures/human_data.py:1325
↓ 2 callersMethod__set_default_values__
For older versions of HumanData, call this method to apply missing values (also attributes). Note: 1. Older HumanData doesn't
detrsmpl/data/data_structures/multi_human_data.py:408
↓ 2 callersMethod__str__
str: the string of the module
detrsmpl/utils/util_mixins.py:96
↓ 2 callersFunction__zero_mat_list__
Return a zero mat in list format. Args: n (int, optional): Length of the edge. Defaults to 3. Returns:
detrsmpl/core/cameras/camera_parameters.py:665
↓ 2 callersMethod_compute_limb_length
(self, keypoints3d)
detrsmpl/models/losses/prior_loss.py:169
↓ 2 callersMethod_compute_loss
Loss computation. Notes: B: batch size K: number of keypoints D: shape dimension Args:
detrsmpl/models/registrants/smplify.py:492
↓ 2 callersMethod_compute_relative_change
Compute relative loss change. If relative change is small enough, we can apply early stop to accelerate the optimization. (1) When one of
detrsmpl/models/registrants/smplify.py:784
↓ 2 callersFunction_construct_rotation_matrix
Construct the in-plane rotation matrix. Args: rot (float): Rotation angle (degree). size (int): The size of the rotation matrix.
detrsmpl/data/datasets/pipelines/transforms.py:179
↓ 2 callersMethod_expand_betas
A helper function to expand the betas's first dim to match batch size such that the same beta parameters can be used for all frames in a
detrsmpl/models/registrants/smplify.py:755
↓ 2 callersMethod_file2dict
(filename)
util/config.py:54
↓ 2 callersFunction_flip_axis_angle
Flip axis_angle horizontally. Args: r (np.ndarray([3])) Returns: f_flipped
detrsmpl/data/datasets/pipelines/transforms.py:241
↓ 2 callersMethod_freeze_stages
(self)
detrsmpl/models/backbones/resnet.py:584
↓ 2 callersMethod_freeze_stages
(self)
models/aios/backbones/swin_transformer.py:628
↓ 2 callersFunction_get_3rd_point
To calculate the affine matrix, three pairs of points are required. This function is used to get the 3rd point, given 2D points a & b. The 3r
detrsmpl/data/datasets/pipelines/transforms.py:94
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string.
detrsmpl/core/post_processing/speed_up/deciwatch.py:706
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string.
models/aios/utils.py:169
↓ 2 callersMethod_get_bboxes_single
Transform outputs from the last decoder layer into bbox predictions for each image. Args: cls_score (Tensor): Box score l
detrsmpl/models/heads/detr_head.py:679
↓ 2 callersMethod_get_deconv_cfg
get deconv padding, output padding according to kernel size.
detrsmpl/models/heads/pare_head.py:441
↓ 2 callersMethod_get_shape_mlp
mlp layers for shape regression.
detrsmpl/models/heads/pare_head.py:378
↓ 2 callersMethod_integral_xyz_target_generator
(self, joints_3d, joints_3d_vis, num_joints, depth_factor)
detrsmpl/data/datasets/pipelines/hybrik_transforms.py:690
↓ 2 callersMethod_keypoint_conf_to_limb_conf
(self, keypoint_conf)
detrsmpl/models/losses/prior_loss.py:176
↓ 2 callersMethod_make_conv_layer
make convolution layers.
detrsmpl/models/heads/pare_head.py:455
↓ 2 callersMethod_make_subsample_layer
(self, in_channels=96, num_layers=3, stride=2)
detrsmpl/models/backbones/hrnet.py:699
↓ 2 callersMethod_merge_a_into_b
merge dict `a` into dict `b` (non-inplace). values in `a` will overwrite `b`. copy first to avoid inplace modification. Args:
util/config.py:112
↓ 2 callersMethod_parse_result
(self, res, mode='keypoint', body_part='')
detrsmpl/data/datasets/human_image_smplx_dataset.py:124
↓ 2 callersMethod_report_3d_auc
Cauculate the Area Under the Curve (AUC) computed for a range of 3DPCK thresholds. Args: keypoint_results (list): Keypoint
detrsmpl/data/datasets/human_hybrik_dataset.py:417
↓ 2 callersMethod_report_3d_auc
Cauculate the Area Under the Curve (AUC) computed for a range of 3DPCK thresholds. Args: keypoint_results (list): Keypoint
detrsmpl/data/datasets/multi_human_image_dataset.py:629
↓ 2 callersMethod_report_3d_pck
Cauculate Percentage of Correct Keypoints (3DPCK) w. or w/o Procrustes alignment. Args: keypoint_results (list): Keypoint
detrsmpl/data/datasets/human_hybrik_dataset.py:386
↓ 2 callersMethod_report_3d_pck
Cauculate Percentage of Correct Keypoints (3DPCK) w. or w/o Procrustes alignment. Args: keypoint_results (list): Keypoint
detrsmpl/data/datasets/multi_human_image_dataset.py:598
↓ 2 callersMethod_report_mpjpe
Cauculate mean per joint position error (MPJPE) or its variants PA- MPJPE. Report mean per joint position error (MPJPE) and mean per
detrsmpl/data/datasets/human_hybrik_dataset.py:362
↓ 2 callersMethod_report_mpjpe
Cauculate mean per joint position error (MPJPE) or its variants PA- MPJPE. Report mean per joint position error (MPJPE) and mean per
detrsmpl/data/datasets/multi_human_image_dataset.py:571
↓ 2 callersMethod_reset_parameters
(self)
models/aios/transformer.py:230
↓ 2 callersMethod_set_output_path
(self, output_path)
detrsmpl/core/renderer/torch3d_renderer/base_renderer.py:184
← previousnext →201–300 of 1,848, ranked by callers