MCPcopy Create free account

hub / github.com/MotrixLab/AiOS / functions

Functions1,848 in github.com/MotrixLab/AiOS

↓ 2 callersMethod_update
(self, model, update_fn)
util/utils.py:470
↓ 2 callersFunctionaa_to_rot6d
Convert axis angles to rotation 6d representations. Args: axis_angle (Union[torch.Tensor, numpy.ndarray]): input shape sh
detrsmpl/utils/transforms.py:264
↓ 2 callersFunctionaccuracy
Computes the precision@k for the specified values of k.
util/misc.py:592
↓ 2 callersMethodadd_camera
Add an camera to the scene. Args: camera_parameter (CameraParameter): An instance of class CameraParameter which
detrsmpl/core/renderer/vedo_render.py:53
↓ 2 callersFunctionbatch_rigid_transform
Applies a batch of rigid transformations to the joints. Parameters ---------- rot_mats : torch.tensor BxNx3x3 Tensor of rotation
util/smplx/smplx/lbs.py:336
↓ 2 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
util/smplx/smplx/lbs.py:285
↓ 2 callersFunctionbbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (tuple): Image shape. direction
detrsmpl/core/post_processing/bbox/transforms.py:22
↓ 2 callersFunctionbbox_xyxy_to_cxcywh
Convert bbox coordinates from (x1, y1, x2, y2) to (cx, cy, w, h). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
detrsmpl/core/post_processing/bbox/transforms.py:259
↓ 2 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes. Parameters ---------- betas : torch.tensor Bx(num_betas) Blend sh
util/smplx/smplx/lbs.py:262
↓ 2 callersFunctionbox_iou
(boxes1, boxes2)
util/box_ops.py:17
↓ 2 callersFunctionbuild_backbone
Useful args: - backbone: backbone name - lr_backbone: - dilation - return_interm_indices: available: [0,1,2,3], [1,2,3], [3] - ba
models/aios/backbones/backbone.py:134
↓ 2 callersFunctionbuild_lights
Build lights.
detrsmpl/core/renderer/torch3d_renderer/lights/builder.py:15
↓ 2 callersFunctionbuild_match_cost
Builder of IoU calculator.
detrsmpl/core/post_processing/bbox/match_costs/builder.py:7
↓ 2 callersFunctionbuild_matcher
(args)
models/aios/matcher.py:135
↓ 2 callersFunctionbuild_post_processing
Build post processing function.
detrsmpl/core/post_processing/builder.py:6
↓ 2 callersFunctionbuild_swin_transformer
(modelname, pretrain_img_size, **kw)
models/aios/backbones/swin_transformer.py:760
↓ 2 callersFunctionbuild_transformer
(args)
models/aios/transformer.py:1554
↓ 2 callersMethodclear
(self)
util/misc.py:302
↓ 2 callersFunctioncollect_results_cpu
Collect results in cpu.
detrsmpl/apis/test.py:93
↓ 2 callersMethodcompute_smplx_hand_pose_loss
Compute loss for smplx left/right hand pose.
detrsmpl/models/architectures/expressive_mesh_estimator.py:405
↓ 2 callersFunctionconcat_images
Concat images of different size.
detrsmpl/models/utils/SMPLX.py:186
↓ 2 callersFunctionconvert_K_3x3_to_4x4
Convert opencv 3x3 intrinsic matrix to 4x4. Args: K (Union[torch.Tensor, np.ndarray]): Input 3x3 intrinsic matrix, left mm de
detrsmpl/core/conventions/cameras/convert_convention.py:341
↓ 2 callersFunctionconvert_bbox_to_intrinsic
Convert bbox to intrinsic parameters. Args: bbox (np.ndarray): (frame, num_person, 4), (frame, 4), or (4,) img_width (int): image
detrsmpl/utils/demo_utils.py:157
↓ 2 callersMethodconvert_frozen_batchnorm
Convert BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns: If
detrsmpl/models/architectures/expressive_mesh_estimator.py:808
↓ 2 callersMethodconvert_orig_cam_to_matrix
Compute intrinsic camera matrix from orig_cam parameter of smpl. .. code-block:: python r > 1:: K = [[sx*r, 0
detrsmpl/core/cameras/cameras.py:429
↓ 2 callersMethoddecompose
(self)
util/misc.py:431
↓ 2 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'
detrsmpl/data/data_structures/human_data.py:1046
↓ 2 callersMethoddict2tensor
Convert smpl pose dict to full pose tensor. Args: smpl_dict (dict): smpl pose dict. Returns: torch: full pos
detrsmpl/models/body_models/smpl.py:184
↓ 2 callersFunctionensure_rng
Coerces input into a random number generator. If the input is None, then a global random state is returned. If the input is a numeric value,
util/utils.py:388
↓ 2 callersFunctionexponential_smoothing
(a, x, x_prev)
detrsmpl/core/post_processing/smooth/oneeuro_filter.py:15
↓ 2 callersMethodextend
(self, N_batch: int, N_scene: int = 1)
detrsmpl/core/renderer/torch3d_renderer/meshes.py:178
↓ 2 callersFunctionflip_joints_3d
Flip 3d joints. Args: joints_3d (np.ndarray): joints in shape (N, 3, 2) width (int): Image width joint_pairs (list): flip
detrsmpl/data/datasets/pipelines/hybrik_transforms.py:263
↓ 2 callersMethodflip_pose
flip SMPL pose parameters.
detrsmpl/models/utils/fits_dict.py:102
↓ 2 callersFunctionflip_xyz_joints_3d
Flip 3d xyz joints. Args: joints_3d (np.ndarray): Joints in shape (N, 3) joint_pairs (list): flip pairs for joints Returns:
detrsmpl/data/datasets/pipelines/hybrik_transforms.py:294
↓ 2 callersMethodforward
Interpolate the vertex attributes to a map. Args: verts_attr (Optional[torch.Tensor]): shape should be (N, V, C),
detrsmpl/core/renderer/torch3d_renderer/uv_renderer.py:212
↓ 2 callersMethodforward
Forward function for `Transformer`. Args: x (Tensor): Input query with shape [bs, c, h, w] where c = embed_dims.
detrsmpl/models/utils/transformer.py:308
↓ 2 callersMethodforward_raw
Forward function.
models/aios/backbones/swin_transformer.py:670
↓ 2 callersFunctiongen_trans_from_patch_cv
(c_x, c_y, src_width, src_
util/preprocessing.py:352
↓ 2 callersFunctiongeneralized_box_iou
Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where N = l
util/box_ops.py:34
↓ 2 callersFunctiongenerate_patch_image
(cvimg, bbox, scale, rot, do_flip, out_shape)
util/preprocessing.py:310
↓ 2 callersFunctionget_aug_config
(data_name)
util/preprocessing.py:112
↓ 2 callersMethodget_camera_plane_normals
Get the identity normal vector which stretchs out of the camera plane. Could pass `R` to override the camera extrinsic rotation matri
detrsmpl/core/cameras/cameras.py:131
↓ 2 callersFunctionget_default_hmr_intrinsic
Get default hmr intrinsic, defined by how you trained. Args: num_frame (int, optional): num of frames. Defaults to 1. focal_lengt
detrsmpl/utils/demo_utils.py:208
↓ 2 callersMethodget_faces_padded
(self, N_batch, N_individual)
detrsmpl/core/renderer/torch3d_renderer/meshes.py:167
↓ 2 callersFunctionget_gaussian_mean
Args: x (float): Input images(BxCxHxW) axis (int): The index for weighted mean other_axis (int): The other index Re
util/utils.py:156
↓ 2 callersMethodget_item
(self, index, required_keys: List[str] = [])
detrsmpl/data/data_structures/human_data_cache.py:27
↓ 2 callersMethodget_keypoints2d
Get keypoints2d projected from keypoints3d. Args: device (str): Device name, should be Kinect or iPhone.
detrsmpl/data/data_structures/smc_reader.py:669
↓ 2 callersMethodget_kinect_color
Get several frames captured by a kinect RGB camera. Args: kinect_id (int): ID of a kinect, starts from 0.
detrsmpl/data/data_structures/smc_reader.py:332
↓ 2 callersMethodget_kinect_color_intrinsics
Get intrinsics of a kinect RGB camera by kinect id. Args: kinect_id (int): ID of a kinect, starts from 0.
detrsmpl/data/data_structures/smc_reader.py:149
↓ 2 callersMethodget_kinect_color_resolution
Get resolution of a kinect RGB camera by kinect id. Args: kinect_id (int): ID of a kinect, starts from 0.
detrsmpl/data/data_structures/smc_reader.py:167
↓ 2 callersMethodget_kinect_depth
Get several frames captured by a kinect depth camera. Args: kinect_id (int): ID of a kinect, starts from 0.
detrsmpl/data/data_structures/smc_reader.py:383
↓ 2 callersMethodget_kinect_depth_extrinsics
Get extrinsics(cam2world) of a kinect depth camera by kinect id. Args: kinect_id (int): ID of a kinect, starts fr
detrsmpl/data/data_structures/smc_reader.py:119
↓ 2 callersMethodget_mat_np
Get a a matrix-type parameter by key. Args: key (str): Name of the parameter. Raises: KeyErro
detrsmpl/core/cameras/camera_parameters.py:254
↓ 2 callersFunctionget_rank
()
util/distribute_utils.py:97
↓ 2 callersFunctionget_root_logger
(log_file=None, log_level=logging.INFO)
detrsmpl/utils/logger.py:6
↓ 2 callersFunctionimages_to_sorted_images
Copy and rename a folder of images into a new folder following the `img_format`. Args: input_folder (str): input folder. outp
detrsmpl/utils/ffmpeg_utils.py:347
↓ 2 callersFunctionis_dist_avail_and_initialized
()
util/distribute_utils.py:83
↓ 2 callersFunctionjoin_meshes_as_scene
Join the meshes along the scene dim. Args: meshes (Union[ParametricMeshes, List[ParametricMeshes]]): ParametricMeshes object
detrsmpl/core/renderer/torch3d_renderer/meshes.py:438
↓ 2 callersMethodload_from_dict
Load name and parameters from a dict. Args: json_dict (dict): A dict comes from self.to_dict().
detrsmpl/core/cameras/camera_parameters.py:315
↓ 2 callersMethodmake_fake_data
(self, predictions, requires_grad)
detrsmpl/models/architectures/mesh_estimator.py:707
↓ 2 callersFunctionmake_homegeneous_rotmat_batch
Appends a row of [0,0,0,1] to a batch size x 3 x 4 Tensor. Parameters ---------- :param input: A tensor of dimensions batch size x 3 x 4
detrsmpl/utils/transforms.py:563
↓ 2 callersFunctionms_deform_attn_core_pytorch
(value, value_spatial_shapes, sampling_locations, attention_weights)
models/aios/ops/functions/ms_deform_attn_func.py:47
↓ 2 callersMethodname
(self)
models/registry.py:19
↓ 2 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
detrsmpl/models/backbones/hrnet.py:375
↓ 2 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
detrsmpl/models/backbones/hrnet.py:380
↓ 2 callersFunctionperspective_projection
This function computes the perspective projection of a set of points. Input: points (bs, N, 3): 3D points rotation (bs, 3, 3): Ca
detrsmpl/utils/geometry.py:247
↓ 2 callersMethodprepare_raw_data
Get item from self.human_data.
detrsmpl/data/datasets/human_image_dataset.py:163
↓ 2 callersFunctionprocess_human_model_output_batch_ubody
(human_model_param, do_flip, rot,
util/preprocessing.py:484
↓ 2 callersMethodproject_ndc
vertices: torch.Tensor of shape (N, 3), 3 stands for xyz
detrsmpl/core/renderer/mpr_renderer/camera.py:28
↓ 2 callersFunctionreduce_mean
Obtain the mean of tensor on different GPUs.
detrsmpl/utils/dist_utils.py:61
↓ 2 callersFunctionrender_smpl
Render SMPL or SMPL-X mesh or silhouette into differentiable tensors, and export video or images. Args: # smpl parameters: po
detrsmpl/core/visualization/visualize_smpl.py:433
↓ 2 callersFunctionresize
(ori_shape, size, max_size=None)
util/preprocessing.py:59
↓ 2 callersMethodrm_self_attn_modules
(self)
models/aios/transformer_deformable.py:116
↓ 2 callersFunctionrotate_2d
(pt_2d, rot_rad)
util/preprocessing.py:343
↓ 2 callersMethodrotate_pose
Rotate SMPL pose parameters by rot degrees.
detrsmpl/models/utils/fits_dict.py:113
↓ 2 callersFunctionrotation_matrix_to_angle_axis
This function is borrowed from https://github.com/kornia/kornia Convert 3x4 rotation matrix to Rodrigues vector Args: rotation_ma
detrsmpl/utils/geometry.py:90
↓ 2 callersMethodsave
(cls, save_path, data_list, data_strategy)
datasets/humandata.py:50
↓ 2 callersFunctionsave_obj
(v, f, file_name='output.obj')
util/vis.py:161
↓ 2 callersFunctionsearch_limbs
Search the corresponding limbs following the basis human_data limbs. The mask could mask out the incorrect keypoints. Args: data_sour
detrsmpl/utils/keypoint_utils.py:12
↓ 2 callersFunctionset_requires_grad
Set requies_grad for all the networks. Args: nets (nn.Module | list[nn.Module]): A list of networks or a single network.
detrsmpl/models/architectures/expressive_mesh_estimator.py:30
↓ 2 callersMethodset_y_reverse
Set y reverse before add_camera if it is needed. Vedo defines y+ as up direction. When visualizing kinect cameras, y- is up, call set
detrsmpl/core/renderer/vedo_render.py:42
↓ 2 callersFunctionsetup_for_distributed
This function disables printing when not in master process.
util/misc.py:501
↓ 2 callersFunctionsmoothing_factor
(t_e, cutoff)
detrsmpl/core/post_processing/smooth/oneeuro_filter.py:10
↓ 2 callersMethodto
(self, device)
detrsmpl/core/renderer/torch3d_renderer/pointcloud_renderer.py:51
↓ 2 callersMethodto_img_list_single
(self, tensor, mask)
util/misc.py:404
↓ 2 callersMethodtrain
Convert the model into training mode while keep normalization layer freezed.
detrsmpl/models/backbones/resnet.py:619
↓ 2 callersMethodupdate
(self, value, n=1)
util/misc.py:62
↓ 2 callersMethodvertex_resample
Resample the vertex attributes from a map. Args: maps_padded (torch.Tensor): shape should be (N, H, W, C). Required.
detrsmpl/core/renderer/torch3d_renderer/uv_renderer.py:330
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
models/aios/backbones/swin_transformer.py:35
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
detrsmpl/core/post_processing/speed_up/deciwatch.py:523
↓ 2 callersMethodwith_pos_embed
(tensor, pos)
models/aios/transformer_deformable.py:122
↓ 1 callersMethod__check_key__
Check whether the key matches definition in CameraParameter.SUPPORTED_KEYS. Args: key (Any): Key in Camer
detrsmpl/core/cameras/camera_parameters.py:540
↓ 1 callersMethod__check_value_len__
Check whether the temporal length of val matches other values. Args: key (Any): Key in HumanData. val
detrsmpl/data/data_structures/human_data.py:917
↓ 1 callersMethod__check_value_shape__
Check whether the shape of val matches definition in HumanData.SUPPORTED_KEYS. Args: key (Any): Key in Hu
detrsmpl/data/data_structures/human_data.py:851
↓ 1 callersMethod__check_value_type__
Check whether the type of val matches definition in HumanData.SUPPORTED_KEYS. Args: key (Any): Key in Hum
detrsmpl/data/data_structures/human_data.py:818
↓ 1 callersMethod__del__
(self)
detrsmpl/utils/ffmpeg_utils.py:83
↓ 1 callersMethod__get_key_error_msg__
Get the error message when a key fails the check. Args: key (Any): The key with wrong. Returns:
detrsmpl/data/data_structures/human_data.py:1368
↓ 1 callersMethod__get_key_warn_msg__
Get the warning message when a key fails the check. Args: key (Any): The key with wrong. Returns:
detrsmpl/data/data_structures/human_data.py:1345
↓ 1 callersMethod__get_slice_dim__
For each key in this HumanData, get the dimension for slicing. 0 for default, if no other value specified. Returns: dict:
detrsmpl/data/data_structures/multi_human_data.py:269
↓ 1 callersMethod__get_value_error_msg__
Get the error message when a value fails the check. Returns: str: The error message.
detrsmpl/data/data_structures/human_data.py:1389
← previousnext →301–400 of 1,848, ranked by callers