MCPcopy Create free account

hub / github.com/MotrixLab/AiOS / functions

Functions1,848 in github.com/MotrixLab/AiOS

↓ 6 callersFunctionbuild_neck
Build neck.
detrsmpl/models/necks/builder.py:12
↓ 6 callersFunctionbuild_renderer
Build renderers.
detrsmpl/core/renderer/torch3d_renderer/builder.py:43
↓ 6 callersMethodkeys
(self)
util/smplx/smplx/utils.py:41
↓ 6 callersMethodload_data
(self, train_sample_interval=1)
datasets/UBody_MM.py:268
↓ 6 callersFunctionprocess_db_coord_batch_no_valid
(joint_img, joint_cam, do_flip, img_shape, flip_pairs, img2bb_trans, rot,
util/preprocessing.py:398
↓ 6 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
detrsmpl/core/post_processing/bbox/samplers/base_sampler.py:34
↓ 6 callersMethodvalues
(self, )
detrsmpl/core/conventions/segmentation/__init__.py:28
↓ 6 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
detrsmpl/models/losses/utils.py:27
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
detrsmpl/core/post_processing/speed_up/deciwatch.py:603
↓ 5 callersMethod__init__
Initialize your cameras with `build_cameras` following: 1): provide `K`, `R`, `T`, `resolution`/`image_size`, `in_ndc` directly.
detrsmpl/core/cameras/cameras.py:22
↓ 5 callersMethod__init__
(self, encoder=None, decoder=None, init_cfg=None)
detrsmpl/models/utils/transformer.py:295
↓ 5 callersMethod__init__
( self, input_dim: int, output_dim: int, layers: List[int] = [], activ
detrsmpl/models/heads/expose_head.py:100
↓ 5 callersFunction_get_clones
(module, N)
detrsmpl/core/post_processing/speed_up/deciwatch.py:687
↓ 5 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
detrsmpl/models/architectures/base_architecture.py:22
↓ 5 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_image_dataset.py:476
↓ 5 callersMethod_write_images
Write output/temp images.
detrsmpl/core/renderer/torch3d_renderer/base_renderer.py:235
↓ 5 callersFunctionalign_input_to_padded
(tensor=Union[List[torch.Tensor], torch.Tensor], ndim: int = 3,
detrsmpl/core/renderer/torch3d_renderer/utils.py:73
↓ 5 callersFunctionbbox_cxcywh_to_xyxy
Convert bbox coordinates from (cx, cy, w, h) to (x1, y1, x2, y2). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
detrsmpl/core/post_processing/bbox/transforms.py:245
↓ 5 callersFunctioncompute_similarity_transform
Computes a similarity transform (sR, t) that takes a set of 3D points source_points (N x 3) closest to a set of 3D points target_points, where R
detrsmpl/core/evaluation/mesh_eval.py:9
↓ 5 callersMethoddecode
(self, memory, memory_mask, memory_pos, tgt, tgt_mask, tgt_pos)
detrsmpl/core/post_processing/speed_up/deciwatch.py:423
↓ 5 callersFunctionfind_joint_global_rotation
Computes the absolute rotation of a joint from the kinematic chain.
detrsmpl/models/utils/SMPLX.py:212
↓ 5 callersFunctionflip_rotmat
Flip function. Flip rotmat.
detrsmpl/models/utils/SMPLX.py:201
↓ 5 callersMethodfromfile
Construct a HumanData instance from an npz file. Args: npz_path (str): Path to a dumped npz file. Return
detrsmpl/data/data_structures/human_data.py:162
↓ 5 callersFunctiongen_encoder_output_proposals
Input: - memory: bs, \sum{hw}, d_model - memory_padding_mask: bs, \sum{hw} - spatial_shapes: nlevel, 2 - learnedw
models/aios/utils.py:32
↓ 5 callersFunctionget_affine_transform
Get the affine transform matrix, given the center/scale/rot/output_size. Args: center (np.ndarray[2, ]): Center of the bounding box (x, y
detrsmpl/data/datasets/pipelines/transforms.py:16
↓ 5 callersMethodget_keypoints_num_frames
(self)
detrsmpl/data/data_structures/smc_reader.py:819
↓ 5 callersMethodget_kinect_color_extrinsics
Get extrinsics(cam2world) of a kinect RGB camera by kinect id. Args: kinect_id (int): ID of a kinect, starts from
detrsmpl/data/data_structures/smc_reader.py:76
↓ 5 callersFunctionget_mapping
Get mapping list from src to dst. Args: src (str): source data type from keypoints_factory. dst (str): destination data type from
detrsmpl/core/conventions/keypoints_mapping/__init__.py:236
↓ 5 callersFunctionis_dist_avail_and_initialized
()
util/misc.py:514
↓ 5 callersFunctionjoin_meshes_as_batch
Join the meshes along the batch dim. Args: meshes (Union[ParametricMeshes, List[ParametricMeshes, Meshes, List[Meshes]]]): Me
detrsmpl/core/renderer/torch3d_renderer/meshes.py:413
↓ 5 callersFunctionkeypoint_xyzxyz_to_xyxyzz
_summary_ Args: keypoints (torch.Tensor): ..., 51
util/keypoint_ops.py:20
↓ 5 callersFunctionmake_folder
(folder_name)
util/dir.py:5
↓ 5 callersFunctionpose2rotmat
aa2rotmat.
detrsmpl/models/architectures/expressive_mesh_estimator.py:46
↓ 5 callersMethodrandom
Create random AssignResult for tests or debugging. Args: num_preds: number of predicted boxes num_gts: number of true
detrsmpl/core/post_processing/bbox/assigners/assign_result.py:98
↓ 5 callersMethodshow
Show cameras as well as axis arrow by vedo.show() Args: with_axis (bool, optional): Whether to show the axis arro
detrsmpl/core/renderer/vedo_render.py:91
↓ 5 callersMethodto
(self, device)
detrsmpl/core/renderer/torch3d_renderer/smpl_renderer.py:107
↓ 5 callersFunctionvertice_pve
Computes per vertex error (PVE). Args: verts_gt (N x verts_num x 3). verts_pred (N x verts_num x 3). alignment (str, opti
detrsmpl/core/evaluation/eval_utils.py:85
↓ 5 callersFunctionweak_perspective_projection
This function computes the weak perspective projection of a set of points. Input: points (bs, N, 3): 3D points scale (bs,1):
detrsmpl/utils/geometry.py:433
↓ 4 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/human_data.py:612
↓ 4 callersMethod__getitem__
Slice the cameras by batch dim. Args: index (Union[slice, int, torch.Tensor, List, Tuple]): index for slicing.
detrsmpl/core/cameras/cameras.py:198
↓ 4 callersMethod__init__
Initlialize without blend_params.
detrsmpl/core/renderer/torch3d_renderer/shader/shader.py:39
↓ 4 callersMethod__init__
(self, fc_layers, use_dropout, drop_prob, use_activation)
detrsmpl/models/discriminators/pose_discriminator.py:28
↓ 4 callersMethod__init__
(self, linear=False, eps=1e-6, reduction='mean',
detrsmpl/models/losses/iou_loss.py:253
↓ 4 callersMethod__init__
( self, d_model=256, nhead=8, num_queries=300, num
models/aios/transformer.py:17
↓ 4 callersMethod_parse_result
Parse results.
detrsmpl/data/datasets/human_hybrik_dataset.py:285
↓ 4 callersFunction_plot_line_on_fig
Draw line on fig with matplotlib.
detrsmpl/core/renderer/matplotlib3d_renderer.py:385
↓ 4 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_image_dataset.py:534
↓ 4 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_image_dataset.py:503
↓ 4 callersMethod_report_pve
Cauculate per vertex error.
detrsmpl/data/datasets/human_image_dataset.py:564
↓ 4 callersFunction_rotate_joints_3d
Rotate the 3D joints in the local coordinates. Notes: Joints number: K Args: joints_3d (np.ndarray([K, 3])): Coordinates of k
detrsmpl/data/datasets/pipelines/transforms.py:294
↓ 4 callersMethodadd_meter
(self, name, meter)
util/misc.py:232
↓ 4 callersFunctionaugmentation_keep_size
(img, bbox, data_split)
util/preprocessing.py:173
↓ 4 callersMethodaverage
Get the average value of current window.
detrsmpl/utils/demo_utils.py:733
↓ 4 callersFunctionbox_cxcywh_to_xyxy
(x)
util/box_ops.py:5
↓ 4 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
detrsmpl/data/datasets/builder.py:46
↓ 4 callersFunctionbuild_dataset
Build dataset by the given config.
detrsmpl/data/datasets/builder.py:28
↓ 4 callersMethodcheck_keypoints_compressed
Check whether the keypoints are compressed. Returns: bool: Whether the keypoints are compressed.
detrsmpl/data/data_structures/human_data.py:225
↓ 4 callersMethodcompress_keypoints_by_mask
If a key contains 'keypoints', and f'{key}_mask' is in self.keys(), invalid zeros will be removed and f'{key}_mask' will be locked. R
detrsmpl/data/data_structures/human_data.py:1012
↓ 4 callersFunctionconvert_world_view
Convert between view_to_world and world_to_view defined extrinsic matrix. Args: R (Union[torch.Tensor, np.ndarray]): extrinsic rotati
detrsmpl/core/conventions/cameras/convert_convention.py:615
↓ 4 callersMethodextra_repr
(self)
util/smplx/smplx/body_models.py:269
↓ 4 callersFunctionfind_dynamic_lmk_idx_and_bcoords
Compute the faces, barycentric coordinates for the dynamic landmarks. To do so, we first compute the rotation of the neck around the y-axis a
util/smplx/smplx/lbs.py:28
↓ 4 callersFunctiongen_sineembed_for_position
(pos_tensor)
models/aios/utils.py:184
↓ 4 callersFunctionget_flip_pairs
Get indices of left, right keypoint pairs from specified convention. Args: convention (str): data type from keypoints_factory. ke
detrsmpl/core/conventions/keypoints_mapping/__init__.py:309
↓ 4 callersMethodget_iphone_num_frames
Get the number of frames recorded by one iPhone RGB camera. Returns: int: Number of frames.
detrsmpl/data/data_structures/smc_reader.py:440
↓ 4 callersMethodget_key_strict
Get value of attribute key_strict. Returns: bool: Whether to raise error when setting unsupported keys.
detrsmpl/data/data_structures/human_data.py:202
↓ 4 callersMethodget_kinect_num_frames
Get the number of frames recorded by one Kinect RGB camera. Returns: int: Number of frames.
detrsmpl/data/data_structures/smc_reader.py:431
↓ 4 callersMethodget_loss
(self, loss, outputs, targets, data_batch, indices, num_boxes, **kwargs)
models/aios/criterion_smplx.py:814
↓ 4 callersMethodget_loss
(self, loss, outputs, targets, data_batch, indices, num_boxes, **kwargs)
models/aios/criterion_smplx.py:1669
↓ 4 callersMethodget_num_faces
(self)
util/smplx/smplx/body_models.py:266
↓ 4 callersFunctionget_world_size
()
util/misc.py:522
↓ 4 callersFunctionimages_to_video
Convert a folder of images to a video. Args: input_folder (str): input image folder output_path (str): output video file path
detrsmpl/utils/ffmpeg_utils.py:670
↓ 4 callersMethodnew
Construct a HumanData instance from a dict. Args: source_dict (dict, optional): A dict with items in HumanData fa
detrsmpl/data/data_structures/human_data.py:178
↓ 4 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
detrsmpl/models/backbones/resnet.py:254
↓ 4 callersFunctionprocess_human_model_output_batch_simplify
(human_model_param, do_flip, rot,
util/preprocessing.py:691
↓ 4 callersFunctionrgb2bgr
Convert color channels.
detrsmpl/core/renderer/torch3d_renderer/utils.py:63
↓ 4 callersFunctionrot6d_to_rotmat
Convert rotation 6d representations to rotation matrixs. Args: rotation_6d (Union[torch.Tensor, numpy.ndarray]): input shape
detrsmpl/utils/transforms.py:222
↓ 4 callersFunctionrotmat_to_rot6d
Convert rotation matrixs to rotation 6d representations. Args: matrix (Union[torch.Tensor, numpy.ndarray]): input shape s
detrsmpl/utils/transforms.py:165
↓ 4 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/mesh_estimator.py:26
↓ 4 callersFunctionsigmoid_focal_loss
Loss used in RetinaNet for dense detection: https://arxiv.org/abs/1708.02002. Args: inputs: A float tensor of arbitrary shape.
models/aios/utils.py:120
↓ 4 callersMethodsummary
(self)
util/utils.py:515
↓ 4 callersMethodto_dict
Dump camera name and parameters to dict. Returns: dict: Put self.name and self.parameters_dict in
detrsmpl/core/cameras/camera_parameters.py:285
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
detrsmpl/data/datasets/pipelines/formatting.py:12
↓ 4 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
util/formatting.py:10
↓ 4 callersMethodvalidate_item
Check whether the key and its value matches definition in CameraParameter.SUPPORTED_KEYS. Args: key (Any):
detrsmpl/core/cameras/camera_parameters.py:516
↓ 4 callersMethodvalidate_within_img_batch
( self, img_wh, points)
datasets/humandata.py:1237
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation. Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32 The
util/smplx/smplx/lbs.py:103
↓ 4 callersFunctionvideo_to_images
Convert a video to a folder of images. Args: input_path (str): video file path output_folder (str): output folder to store the im
detrsmpl/utils/ffmpeg_utils.py:605
↓ 4 callersFunctionxywh2xyxy
Transform the bbox format from xywh to x1y1x2y2. Args: bbox_xywh (np.ndarray): Bounding boxes (with scores), shaped (n, 4) or (n,
detrsmpl/utils/demo_utils.py:42
↓ 3 callersMethod__get_sliced_result__
Slice input_data along slice_dim with slice_range. Args: input_data (Union[np.ndarray, list, tuple]): Data to be
detrsmpl/data/data_structures/human_data.py:1404
↓ 3 callersMethod__getitem__
(self, index: Union[int, slice])
detrsmpl/core/renderer/torch3d_renderer/lights/lights.py:39
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
detrsmpl/models/backbones/resnet.py:359
↓ 3 callersMethod__init__
(self, backbone, position_embedding)
models/aios/backbones/backbone.py:119
↓ 3 callersMethod__set_default_values__
For older versions of HumanData, call this method to apply missing values (also attributes).
detrsmpl/data/data_structures/human_data.py:1146
↓ 3 callersFunction_get_clones
(module, N, layer_share=False)
models/aios/transformer.py:1547
↓ 3 callersMethod_make_downsample_layer
(self, num_layers, num_channel, kernel_size=3)
detrsmpl/models/backbones/hrnet.py:538
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
detrsmpl/models/backbones/hrnet.py:475
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
detrsmpl/models/backbones/hrnet.py:384
↓ 3 callersMethod_make_upsample_layer
(self, num_layers, num_channel, kernel_size=3)
detrsmpl/models/backbones/hrnet.py:516
↓ 3 callersFunction_run
(command)
util/misc.py:334
↓ 3 callersFunctionadd_pypath
(path)
util/dir.py:9
← previousnext →101–200 of 1,848, ranked by callers