Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/AiOS
/ functions
Functions
1,848 in github.com/MotrixLab/AiOS
⨍
Functions
1,848
◇
Types & classes
329
↓ 230 callers
Function
print
(*args, **kwargs)
util/misc.py:506
↓ 182 callers
Method
detach
(self)
detrsmpl/core/cameras/cameras.py:325
↓ 150 callers
Method
clone
Modified from pytorch3d and add `model_type` in __class__.__init__.
detrsmpl/core/renderer/torch3d_renderer/meshes.py:191
↓ 126 callers
Method
copy
(self)
util/config.py:346
↓ 123 callers
Method
get
(self, key)
models/registry.py:26
↓ 92 callers
Method
write
(self, image_array: np.ndarray)
detrsmpl/utils/ffmpeg_utils.py:75
↓ 86 callers
Method
max
(self)
util/misc.py:99
↓ 81 callers
Method
keys
(self, )
detrsmpl/core/conventions/segmentation/__init__.py:25
↓ 65 callers
Method
to
(self, device)
detrsmpl/core/renderer/torch3d_renderer/uv_renderer.py:83
↓ 58 callers
Method
update
(self, vars: dict, count: int = 1)
util/misc.py:311
↓ 57 callers
Method
concatenate
Concatenate two human_data. All keys will be kept it the returned human_data. If either value from human_data_0 or human_data_1 matches
detrsmpl/data/data_structures/human_data.py:1174
↓ 57 callers
Method
deepcopy
(self)
util/config.py:349
↓ 57 callers
Method
update
Update a new data sample.
detrsmpl/utils/demo_utils.py:728
↓ 55 callers
Method
to
Convert values in numpy.ndarray type to torch.Tensor, and move Tensors to the target device. All keys will exist in the returned dict.
detrsmpl/data/data_structures/human_data.py:383
↓ 53 callers
Method
items
(self)
util/smplx/smplx/utils.py:49
↓ 51 callers
Function
build_loss
Build loss.
detrsmpl/models/losses/builder.py:56
↓ 51 callers
Method
items
(self, )
detrsmpl/core/conventions/segmentation/__init__.py:22
↓ 46 callers
Function
inverse_sigmoid
(x, eps=1e-3)
util/misc.py:654
↓ 44 callers
Method
to
(self, device)
util/misc.py:393
↓ 40 callers
Method
extend
Create new camera class which contains each input camera N times. Args: N: number of new copies of each camera. Returns:
detrsmpl/core/cameras/cameras.py:221
↓ 35 callers
Function
build_body_model
Build body_models.
detrsmpl/models/body_models/builder.py:29
↓ 33 callers
Method
load
(self, load_path)
datasets/humandata.py:41
↓ 32 callers
Method
load
Load data from npz_path and update them to self. Args: npz_path (str): Path to a dumped npz file.
detrsmpl/data/data_structures/human_data.py:234
↓ 30 callers
Function
convert_kps
Convert keypoints following the mapping correspondence between src and dst keypoints definition. Supported conventions by now: agora, coco, smplx,
detrsmpl/core/conventions/keypoints_mapping/__init__.py:85
↓ 29 callers
Method
parameters
Returns parameters. Compatible with mmcv's build_parameters() Returns: opt_params: a list of body model parameters for optimizati
detrsmpl/models/registrants/smplify.py:38
↓ 28 callers
Function
rotmat_to_aa
Convert rotation matrixs to axis angles. Args: matrix (Union[torch.Tensor, numpy.ndarray]): input shape should be (..., 3
detrsmpl/utils/transforms.py:351
↓ 25 callers
Method
__setitem__
Set self[key] to value. Only be called when using human_data[key] = val. Methods like update won't call __setitem__. In keypoints_comp
detrsmpl/data/data_structures/human_data.py:669
↓ 24 callers
Method
process_hand_face_bbox
(self, bbox, do_flip, img_shape, img2bb_trans, input_img_shape)
datasets/humandata.py:914
↓ 23 callers
Function
get_keypoint_idx
Get keypoint index from specified convention with keypoint name. Args: name (str): keypoint name convention (str): data type from
detrsmpl/core/conventions/keypoints_mapping/__init__.py:352
↓ 23 callers
Function
get_keypoint_idxs_by_part
Get part keypoints indices from specified part and convention. Args: part (str): part to search from convention (str): data type
detrsmpl/core/conventions/keypoints_mapping/__init__.py:329
↓ 22 callers
Function
check_path_suffix
Check whether the suffix of the path is allowed. Args: path_str (str): Path to check. allowed_suffix (List[str], opti
detrsmpl/utils/path_utils.py:13
↓ 22 callers
Function
rot6d_to_rotmat
Convert 6D rotation representation to 3x3 rotation matrix. Based on Zhou et al., "On the Continuity of Rotation Representations in Neural Net
detrsmpl/utils/geometry.py:53
↓ 21 callers
Function
rigid_align_batch
(A, B)
util/transforms.py:79
↓ 17 callers
Function
prepare_output_path
Check output folder or file. Args: output_path (str): could be folder or file. allowed_suffix (List[str], optional):
detrsmpl/utils/path_utils.py:120
↓ 17 callers
Function
project_points_new
Perform orthographic projection of 3D points using the camera parameters, return projected 2D points in image plane. Notes: batch siz
detrsmpl/utils/geometry.py:393
↓ 17 callers
Method
to
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
detrsmpl/core/post_processing/bbox/samplers/sampling_result.py:55
↓ 15 callers
Function
check_input_path
Check input folder or file. Args: input_path (str): input folder or file path. allowed_suffix (List[str], optional):
detrsmpl/utils/path_utils.py:190
↓ 15 callers
Method
get_raw_value
Get raw value from the dict. It acts the same as dict.__getitem__(k). Args: key (_KT): Key in dict.
detrsmpl/data/data_structures/human_data.py:468
↓ 15 callers
Function
to_tensor
(array: Union[Array, Tensor], dtype=torch.float32)
util/smplx/smplx/utils.py:96
↓ 14 callers
Method
_match_init_batch_size
A helper function to ensure body model parameters have the same batch size as the input keypoints. Args: init_param: inpu
detrsmpl/models/registrants/smplify.py:657
↓ 14 callers
Method
device
(self)
util/misc.py:428
↓ 14 callers
Method
get_image_size
Returns the image size, if provided, expected in the form of (height, width) The image size is used for conversion of projected points
detrsmpl/core/cameras/cameras.py:184
↓ 14 callers
Method
set_param
Set requires_grad and collect parameters for optimization. Args: fit_param: whether to optimize this body model parameter
detrsmpl/models/registrants/smplify.py:22
↓ 12 callers
Method
in_ndc
Boolean of whether in NDC.
detrsmpl/core/cameras/cameras.py:645
↓ 12 callers
Method
info
dict: a dictionary of info about the object
models/utils.py:195
↓ 12 callers
Function
match_name_keywords
(n: str, name_keywords: list)
util/get_param_dicts.py:6
↓ 12 callers
Function
process_bbox
(bbox, img_width, img_height, ratio=1.)
util/preprocessing.py:95
↓ 11 callers
Function
batch_rodrigues
Convert axis-angle representation to rotation matrix. Args: theta: size = [B, 3] Returns: Rotation matrix corresponding to th
detrsmpl/utils/geometry.py:6
↓ 11 callers
Method
get_mean
Get mean value of params.
detrsmpl/models/heads/expose_head.py:277
↓ 11 callers
Method
get_value
Get a parameter by key. Args: key (str): Name of the parameter. Raises: KeyError: key not in
detrsmpl/core/cameras/camera_parameters.py:236
↓ 10 callers
Function
aa_to_rotmat
Convert axis_angle to rotation matrixs. Args: axis_angle (Union[torch.Tensor, numpy.ndarray]): input shape should be
detrsmpl/utils/transforms.py:73
↓ 10 callers
Function
check_path_existence
Check whether a file or a directory exists at the expected path. Args: path_str (str): Path to check. path_type (Lite
detrsmpl/utils/path_utils.py:64
↓ 10 callers
Method
dump
Dump keys and items to an npz file. Args: npz_path (str): Path to a dumped npz file. overwrite (bool,
detrsmpl/data/data_structures/human_data.py:268
↓ 10 callers
Function
get_different_colors
Get a numpy of colors of shape (N, 3).
detrsmpl/utils/demo_utils.py:682
↓ 10 callers
Function
lbs
Performs Linear Blend Skinning with the given shape and pose parameters. Parameters ---------- betas : torch.tensor BxNB The tens
util/smplx/smplx/lbs.py:142
↓ 10 callers
Function
normalize
Normalize the tensor or array and convert dtype.
detrsmpl/core/renderer/torch3d_renderer/utils.py:13
↓ 10 callers
Method
scatter
Scatter function. Args: inputs (Tensor): Input Tensor. kwargs (dict): Args for ``mmcv.parallel.scatte
detrsmpl/core/distributed_wrapper.py:88
↓ 10 callers
Function
vertices2joints
Calculates the 3D joint locations from the vertices. Parameters ---------- J_regressor : torch.tensor JxV The regressor array tha
util/smplx/smplx/lbs.py:242
↓ 10 callers
Function
xyxy2xywh
Transform the bbox format from x1y1x2y2 to xywh. Args: bbox_xyxy (np.ndarray): Bounding boxes (with scores), shaped (n, 4) or
detrsmpl/utils/demo_utils.py:21
↓ 9 callers
Method
__init__
(self, reduction='mean', loss_weight=1.0)
detrsmpl/models/losses/prior_loss.py:112
↓ 9 callers
Method
__init__
SMPL model constructor. Parameters ---------- model_path: str The path to the folder or to the file where the mod
util/smplx/smplx/body_models.py:42
↓ 9 callers
Function
get_keypoint_num
Get number of keypoints of specified convention. Args: convention (str): data type from keypoints_factory. keypoints_factory (dic
detrsmpl/core/conventions/keypoints_mapping/__init__.py:387
↓ 9 callers
Function
multi_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
detrsmpl/utils/misc.py:6
↓ 9 callers
Function
to_np
(array, dtype=np.float32)
util/smplx/smplx/utils.py:109
↓ 9 callers
Method
values
(self)
util/smplx/smplx/utils.py:45
↓ 8 callers
Method
__setattr__
(self, name, value)
util/config.py:290
↓ 8 callers
Method
_skip_loss
Whether to skip loss computation. If loss is None, it will directly skip the loss to avoid RuntimeError. If loss is not None, the table
detrsmpl/models/registrants/smplify.py:802
↓ 8 callers
Function
affine_transform
Apply an affine transformation to the points. Args: pt (np.ndarray): a 2 dimensional point to be transformed trans_mat (np.ndarra
detrsmpl/data/datasets/pipelines/transforms.py:73
↓ 8 callers
Method
backward
(ctx, grad_output)
models/aios/ops/functions/ms_deform_attn_func.py:38
↓ 8 callers
Function
build_from_cfg
(cfg, registry, default_args=None)
detrsmpl/models/architectures/builder.py:13
↓ 8 callers
Function
convert_camera_matrix
Convert the intrinsic matrix K and extrinsic matrix [R|T] from source convention to destination convention. Args: K (Union[torch.Tens
detrsmpl/core/conventions/cameras/convert_convention.py:83
↓ 8 callers
Method
dump
(self, file=None)
util/config.py:303
↓ 8 callers
Method
get_3d_keypoints_vis
Get 3d keypoints and visibility mask Args: keypoints (np.ndarray): 2d (NxKx3) or 3d (NxKx4) keypoints with visibility
detrsmpl/data/datasets/human_hybrik_dataset.py:71
↓ 8 callers
Method
norm1
nn.Module: the normalization layer named "norm1"
detrsmpl/models/backbones/resnet.py:535
↓ 8 callers
Method
norm2
nn.Module: normalization layer after the second convolution layer
detrsmpl/models/backbones/resnet.py:64
↓ 8 callers
Method
random
Create random AssignResult for tests or debugging. Args: num_preds: number of predicted boxes num_gts: number of true
models/utils.py:227
↓ 8 callers
Method
set_mat_np
Set a matrix-type parameter to mat_numpy. Args: mat_key (str): Key of the target matrix. in_mat or rotation_mat.
detrsmpl/core/cameras/camera_parameters.py:195
↓ 8 callers
Method
set_value
Set a parameter to value. Args: key (str): Name of the parameter. value (object): New
detrsmpl/core/cameras/camera_parameters.py:224
↓ 8 callers
Method
update
(self, model)
util/utils.py:478
↓ 7 callers
Method
__init__
(self, input_dim=24 * 6, sample_interval=10, encoder_hidden
detrsmpl/core/post_processing/speed_up/deciwatch.py:198
↓ 7 callers
Function
build_backbone
Build backbone.
detrsmpl/models/backbones/builder.py:18
↓ 7 callers
Function
find_joint_kin_chain
(joint_id, kinematic_tree)
util/smplx/smplx/utils.py:87
↓ 7 callers
Method
get_num_verts
(self)
util/smplx/smplx/body_models.py:263
↓ 7 callers
Function
keypoint_mpjpe
Calculate the mean per-joint position error (MPJPE) and the error after rigid alignment with the ground truth (PA-MPJPE). batch_size: N nu
detrsmpl/core/evaluation/eval_utils.py:9
↓ 7 callers
Method
load_cache
(self, annot_path_cache)
datasets/humandata.py:122
↓ 7 callers
Function
load_img
(path, order='RGB')
util/preprocessing.py:12
↓ 7 callers
Function
norm_vec
(vec)
detrsmpl/core/cameras/cameras.py:1364
↓ 7 callers
Function
rigid_align
(A, B)
util/transforms.py:74
↓ 7 callers
Method
save_cache
(self, annot_path_cache, datalist)
datasets/humandata.py:129
↓ 7 callers
Method
transform_points_screen
(self, points, eps: Optional[float] = None,
detrsmpl/core/cameras/cameras.py:762
↓ 6 callers
Method
__init__
(self, num_select=100, nms_iou_threshold=-1, num_body_point
models/aios/postprocesses.py:26
↓ 6 callers
Method
__init__
(self, in_features, hidden_features=None, out_features=None
models/aios/backbones/swin_transformer.py:12
↓ 6 callers
Function
_flip_keypoints
Flip human joints horizontally. Note: num_keypoints: K num_dimension: D Args: keypoints (np.ndarray([K, D])): Coordin
detrsmpl/data/datasets/pipelines/transforms.py:261
↓ 6 callers
Method
_parse_result
Parse results.
detrsmpl/data/datasets/human_image_dataset.py:325
↓ 6 callers
Method
_parse_result
Parse results.
detrsmpl/data/datasets/multi_human_image_dataset.py:405
↓ 6 callers
Function
_rotate_smpl_pose
Rotate SMPL pose parameters. SMPL (https://smpl.is.tue.mpg.de/) is a 3D human model. Args: pose (np.ndarray([72])): SMPL pose par
detrsmpl/data/datasets/pipelines/transforms.py:321
↓ 6 callers
Method
_update_resolution
(self, cameras, **kwargs)
detrsmpl/core/renderer/torch3d_renderer/base_renderer.py:201
↓ 6 callers
Function
box2cs
Convert xywh coordinates to center and scale. Args: bbox_xywh (numpy.ndarray): the height of the bbox_xywh aspect_ratio (int, optional):
detrsmpl/utils/demo_utils.py:63
↓ 6 callers
Function
build_cameras
Build cameras.
detrsmpl/core/cameras/builder.py:6
↓ 6 callers
Function
build_head
Build head.
detrsmpl/models/heads/builder.py:23
next →
1–100 of 1,848, ranked by callers