Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/insactor
/ functions
Functions
459 in github.com/MotrixLab/insactor
⨍
Functions
459
◇
Types & classes
83
↓ 25 callers
Function
_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of indices int
diffplanner/models/utils/gaussian_diffusion.py:1170
↓ 18 callers
Function
serialize_qp
(qp)
diffmimic/utils/io.py:17
↓ 15 callers
Function
build_submodule
Build submodule.
diffplanner/models/builder.py:26
↓ 15 callers
Function
deserialize_qp
(nparray)
diffmimic/utils/io.py:6
↓ 13 callers
Function
quat_inverse
The inverse of the rotation
diffmimic/utils/quaternion.py:68
↓ 10 callers
Function
convert_to_local
(qp, remove_height=False)
diffmimic/mimic_envs/losses.py:90
↓ 9 callers
Function
quat_rotate
Rotate a 3D vector with the 3D rotation
diffmimic/utils/quaternion.py:10
↓ 8 callers
Method
_get_ref_state
(self, step_idx, reference_qp)
diffmimic/mimic_envs/humanoid_mimic.py:135
↓ 8 callers
Function
quaternion_to_rotation_6d
(quaternion)
diffmimic/utils/rotation6d.py:30
↓ 7 callers
Function
quat_normalize
Construct 3D rotation from quaternion (the quaternion needs not to be normalized).
diffmimic/utils/quaternion.py:61
↓ 6 callers
Method
_get_ref_state
(self, step_idx, reference_qp)
simulate/humanoid_mimic_hit.py:206
↓ 6 callers
Function
loss_l2_ang
(qp, ref_qp, reduce='mean')
diffmimic/mimic_envs/losses.py:67
↓ 6 callers
Function
loss_l2_pos
(qp, ref_qp, reduce='mean')
diffmimic/mimic_envs/losses.py:14
↓ 6 callers
Function
loss_l2_rot
(qp, ref_qp, reduce='mean')
diffmimic/mimic_envs/losses.py:30
↓ 6 callers
Function
loss_l2_vel
(qp, ref_qp, reduce='mean')
diffmimic/mimic_envs/losses.py:40
↓ 6 callers
Function
mean_flat
Take the mean over all non-batch dimensions.
diffplanner/models/utils/gaussian_diffusion.py:156
↓ 6 callers
Method
q_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initi
diffplanner/models/utils/gaussian_diffusion.py:399
↓ 5 callers
Method
__init__
(self, word_size, pos_size, hidden_size, o
diffplanner/models/rnns/t2m_bigru.py:108
↓ 5 callers
Function
build_dataset
Build dataset by the given config.
diffplanner/datasets/builder.py:28
↓ 5 callers
Function
execute_actions
(rollout_traj, perturb=False)
tools/demo_utils/rollout.py:91
↓ 5 callers
Function
get_motion_model
(name, ckpt_path)
diffplanner/core/evaluation/get_model.py:4
↓ 5 callers
Method
prepare_results
(self, results)
diffplanner/core/evaluation/evaluators/base_evaluator.py:59
↓ 4 callers
Method
_get_obs
Observe humanoid body position, velocities, and angles.
simulate/humanoid_mimic_hit.py:183
↓ 4 callers
Method
_get_obs
Observe humanoid body position, velocities, and angles.
diffmimic/mimic_envs/humanoid_mimic.py:112
↓ 4 callers
Method
_scale_timesteps
(self, t)
diffplanner/models/utils/gaussian_diffusion.py:562
↓ 4 callers
Function
_unpmap
(v)
diffmimic/brax_lib/agent_diffmimic.py:57
↓ 4 callers
Function
add_box
(qp, box_qp)
tools/demo_utils/scene.py:6
↓ 4 callers
Function
add_box
(qp, box_qp)
simulate/scene.py:6
↓ 4 callers
Function
build_architecture
Build framework.
diffplanner/models/builder.py:22
↓ 4 callers
Function
build_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataloade
diffplanner/datasets/builder.py:46
↓ 4 callers
Function
build_loss
Build loss.
diffplanner/models/builder.py:18
↓ 4 callers
Function
convert_pair_to_local
(qp, target_qp)
diffmimic/mimic_envs/losses.py:118
↓ 4 callers
Method
encode_text
(self, text, device)
diffplanner/models/transformers/remodiffuse.py:77
↓ 4 callers
Function
euclidean_distance_matrix
Params: -- matrix1: N1 x D -- matrix2: N2 x D Returns: -- dist: N1 x N2 dist[i, j] == distance(matrix
diffplanner/core/evaluation/utils.py:13
↓ 4 callers
Function
get_system_cfg
(system_type)
diffmimic/mimic_envs/system_configs/__init__.py:14
↓ 4 callers
Function
matrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
data/rotation_utils/conversions.py:113
↓ 4 callers
Method
p_mean_variance
Apply the model to get p(x_{t-1} | x_t), as well as a prediction of the initial x, x_0. :param model: the model, which takes
diffplanner/models/utils/gaussian_diffusion.py:443
↓ 4 callers
Method
q_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
diffplanner/models/utils/gaussian_diffusion.py:419
↓ 4 callers
Function
quat_mul_norm
Combine two set of 3D rotations together using \**\* operator. The shape needs to be broadcastable
diffmimic/utils/quaternion.py:74
↓ 4 callers
Function
quaternion_to_euler
(x, axis='XYZ')
data/rotation_utils/conversions.py:12
↓ 4 callers
Method
reset_ref
(self, rng: jp.ndarray, ref_traj: jp.ndarray, mask: jp.ndarray)
diffmimic/brax_lib/wrappers.py:10
↓ 4 callers
Method
run_evaluation
Run one epoch of evaluation.
diffmimic/brax_lib/acting.py:124
↓ 4 callers
Method
single_evaluate
(self, results, gt_flag)
diffplanner/core/evaluation/evaluators/fid_evaluator.py:35
↓ 3 callers
Method
_get_pos_ohot
(self, pos)
diffplanner/models/utils/word_vectorizer.py:53
↓ 3 callers
Method
_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
diffplanner/models/utils/gaussian_diffusion.py:556
↓ 3 callers
Method
_vb_terms_bpd
Get a term for the variational lower-bound. The resulting units are bits (rather than nats, as one might expect). This allow
diffplanner/models/utils/gaussian_diffusion.py:982
↓ 3 callers
Method
_wrap_model
(self, model)
diffplanner/models/utils/gaussian_diffusion.py:1278
↓ 3 callers
Function
add_scene_to_traj
(traj, waypoint, scene='hit', bar_height=1.25)
tools/demo_utils/scene.py:12
↓ 3 callers
Function
build_MLP
(dim_list, latent_dim)
diffplanner/models/utils/mlp.py:4
↓ 3 callers
Function
calculate_activation_statistics
Params: -- activation: num_samples x dim_feat Returns: -- mu: dim_feat -- sigma: dim_feat x dim_feat
diffplanner/core/evaluation/utils.py:45
↓ 3 callers
Function
digit_version
Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha < b
diffplanner/__init__.py:9
↓ 3 callers
Function
euler_angles_to_matrix
Convert rotations given as Euler angles in radians to rotation matrices. Args: euler_angles: Euler angles in radians as tensor of sh
data/rotation_utils/conversions.py:198
↓ 3 callers
Method
evaluate
(self, runner, results)
diffplanner/core/evaluation/eval_hooks.py:53
↓ 3 callers
Function
matrix_to_euler_angles
Convert rotations given as rotation matrices to Euler angles in radians. Args: matrix: Rotation matrices as tensor of shape (..., 3,
data/rotation_utils/conversions.py:271
↓ 3 callers
Function
quat_angle_axis
The (angle, axis) representation of the rotation. The axis is normalized to unit length. The angle is guaranteed to be between [0, pi].
data/rotation_utils/quaternion.py:80
↓ 3 callers
Function
quat_inverse
The inverse of the rotation
data/rotation_utils/quaternion.py:67
↓ 3 callers
Function
quat_mul
quaternion multiplication
data/rotation_utils/quaternion.py:17
↓ 3 callers
Function
quat_mul
quaternion multiplication
diffmimic/utils/quaternion.py:17
↓ 3 callers
Function
quat_mul_norm
Combine two set of 3D rotations together using \**\* operator. The shape needs to be broadcastable
data/rotation_utils/quaternion.py:73
↓ 3 callers
Function
quaternion_raw_multiply
Multiply two quaternions. Usual torch rules for broadcasting apply. Args: a: Quaternions as tensor of shape (..., 4), real part
data/rotation_utils/conversions.py:393
↓ 3 callers
Function
quaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as ten
data/rotation_utils/conversions.py:52
↓ 3 callers
Function
remove_scene_from_traj
(traj)
tools/demo_utils/scene.py:44
↓ 3 callers
Method
scatter
Scatter function. Args: inputs (Tensor): Input Tensor. kwargs (dict): Args for ``mmcv.parallel.scatte
diffplanner/core/distributed_wrapper.py:90
↓ 3 callers
Method
step
Run one timestep of the environment's dynamics.
diffmimic/mimic_envs/humanoid_mimic.py:49
↓ 2 callers
Method
__init__
(self, latent_dim, ffn_dim, dropout, time_embed_dim)
diffplanner/models/transformers/diffusion_transformer.py:63
↓ 2 callers
Function
_angle_from_tan
Extract the first or third Euler angle from the two members of the matrix which are positive constant times its sine and cosine. Args:
data/rotation_utils/conversions.py:228
↓ 2 callers
Function
_data_pmap
(v, local_devices_to_use)
diffmimic/brax_lib/agent_diffmimic.py:61
↓ 2 callers
Function
_index_from_letter
(letter: str)
data/rotation_utils/conversions.py:261
↓ 2 callers
Method
_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
diffplanner/models/architectures/base_architecture.py:21
↓ 2 callers
Method
_predict_xstart_from_eps
(self, x_t, t, eps)
diffplanner/models/utils/gaussian_diffusion.py:539
↓ 2 callers
Function
approx_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
diffplanner/models/utils/gaussian_diffusion.py:192
↓ 2 callers
Function
axis_angle_to_matrix
Convert rotations given as axis/angle to rotation matrices. Args: axis_angle: Rotations given as a vector in axis angle form,
data/rotation_utils/conversions.py:475
↓ 2 callers
Function
build_attention
Build attention.
diffplanner/models/builder.py:30
↓ 2 callers
Function
build_diffusion
(cfg)
diffplanner/models/architectures/diffusion_architecture.py:17
↓ 2 callers
Function
build_from_cfg
(cfg, registry, default_args=None)
diffplanner/models/builder.py:5
↓ 2 callers
Function
calculate_diversity
(activation, diversity_times)
diffplanner/core/evaluation/utils.py:111
↓ 2 callers
Function
calculate_frechet_distance
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
diffplanner/core/evaluation/utils.py:57
↓ 2 callers
Function
calculate_top_k
(mat, top_k)
diffplanner/core/evaluation/utils.py:30
↓ 2 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
diffplanner/utils/path_utils.py:64
↓ 2 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
diffplanner/utils/path_utils.py:13
↓ 2 callers
Function
collect_env
Collect the information of the running environments.
diffplanner/utils/collect_env.py:7
↓ 2 callers
Method
concat_batch_metrics
(self, batch_metrics)
diffplanner/core/evaluation/evaluators/precision_evaluator.py:78
↓ 2 callers
Function
convert_to_qp
(ase_poses, ase_vel, ase_ang, pelvis_trans)
data/humanml3d_converter.py:26
↓ 2 callers
Function
convert_to_qp
(ase_poses, ase_vel, ase_ang, pelvis_trans)
data/kitml_converter.py:25
↓ 2 callers
Function
display
(traj, history)
tools/demo.py:24
↓ 2 callers
Function
euler_to_quaternion
(x, axis='XYZ')
data/rotation_utils/conversions.py:19
↓ 2 callers
Function
get_metric_statistics
(values, replication_times)
diffplanner/core/evaluation/utils.py:5
↓ 2 callers
Function
get_root_logger
(log_file=None, log_level=logging.INFO)
diffplanner/utils/logger.py:6
↓ 2 callers
Function
get_text_model
(name, ckpt_path)
diffplanner/core/evaluation/get_model.py:46
↓ 2 callers
Method
load_pretrained
(self, ckpt_path)
diffplanner/models/rnns/t2m_bigru.py:124
↓ 2 callers
Function
loss_l1_pos
(qp, ref_qp)
diffmimic/mimic_envs/losses.py:24
↓ 2 callers
Function
loss_l2_vel_foot
(qp, ref_qp, reduce='mean')
diffmimic/mimic_envs/losses.py:50
↓ 2 callers
Function
make_evaluator
(env)
tools/demo_utils/rollout.py:70
↓ 2 callers
Function
make_evaluator
(env)
simulate/rollout.py:73
↓ 2 callers
Function
multi_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mode
diffplanner/apis/test.py:37
↓ 2 callers
Function
normal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
diffplanner/models/utils/gaussian_diffusion.py:163
↓ 2 callers
Function
policy
(observations: types.Observation, key_sample: PRNGKey)
diffmimic/brax_lib/encoder.py:45
↓ 2 callers
Function
process_system_cfg
(cfg)
diffmimic/mimic_envs/system_configs/__init__.py:27
↓ 2 callers
Function
quat_conjugate
quaternion with its imaginary part negated
data/rotation_utils/quaternion.py:54
↓ 2 callers
Function
quat_conjugate
quaternion with its imaginary part negated
diffmimic/utils/quaternion.py:55
next →
1–100 of 459, ranked by callers