MCPcopy Create free account

hub / github.com/MotrixLab/insactor / functions

Functions459 in github.com/MotrixLab/insactor

↓ 2 callersFunctionquat_identity_like
Construct identity 3D rotation with the same shape
data/rotation_utils/quaternion.py:103
↓ 2 callersFunctionquat_normalize
Construct 3D rotation from quaternion (the quaternion needs not to be normalized).
data/rotation_utils/quaternion.py:60
↓ 2 callersFunctionregister_mimic_env
()
diffmimic/mimic_envs/__init__.py:6
↓ 2 callersMethodreset_ref
(self, rng: jp.ndarray, ref_traj: jp.ndarray, mask: jp.ndarray, text_embedding: jp.ndarray)
simulate/wrappers.py:10
↓ 2 callersFunctionset_endpoint_to_zero
(data)
tools/demo.py:43
↓ 2 callersFunctionset_startpoint_to_zero
(data)
tools/demo.py:63
↓ 2 callersFunctionshow_rollout_traj
(rollout_traj, tag)
visualize.py:23
↓ 2 callersFunctionsingle_gpu_test
Test with single gpu.
diffplanner/apis/test.py:13
↓ 2 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
diffplanner/models/transformers/diffusion_transformer.py:16
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
diffplanner/models/transformers/diffusion_transformer.py:52
↓ 1 callersMethod__init__
(self, dataloader, start=None, interval=1,
diffplanner/core/evaluation/eval_hooks.py:14
↓ 1 callersMethod__init__
(self, model, timestep_map, original_num_steps)
diffplanner/models/utils/gaussian_diffusion.py:1285
↓ 1 callersMethod__init__
(self, max_seq_len=16, njoints=None, nfeats=None,
diffplanner/models/transformers/actor.py:16
↓ 1 callersMethod__init__
(self, num_retrieval=None, use_motion=False, use_text=False
diffplanner/models/transformers/remodiffuse.py:16
↓ 1 callersMethod__init__
(self, d_model, max_len=5000, dropout=0.1)
diffplanner/models/transformers/position_encoding.py:28
↓ 1 callersMethod__init__
(self, latent_dim, num_heads, dropout, time_embed_dim)
diffplanner/models/attentions/efficient_attention.py:11
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
diffplanner/utils/dist_utils.py:12
↓ 1 callersFunction_axis_angle_rotation
Return the rotation matrices for one of the rotations about an axis of which Euler angles describe, for each value of the angle given. A
data/rotation_utils/conversions.py:168
↓ 1 callersFunction_compute_angular_velocity
(r, time_delta: float)
data/humanml3d_converter.py:226
↓ 1 callersFunction_compute_angular_velocity
(r, time_delta: float)
data/kitml_converter.py:225
↓ 1 callersFunction_copysign
Return a tensor where each element has the absolute value taken from the, corresponding element of a, with sign taken from the corresponding
data/rotation_utils/conversions.py:84
↓ 1 callersMethod_demo_replay
(self, state)
diffmimic/mimic_envs/humanoid_mimic_train.py:33
↓ 1 callersMethod_mask_state
(self, state)
simulate/humanoid_mimic_hit.py:224
↓ 1 callersMethod_mask_state
(self, state)
diffmimic/mimic_envs/humanoid_mimic.py:153
↓ 1 callersMethod_predict_xstart_from_xprev
(self, x_t, t, xprev)
diffplanner/models/utils/gaussian_diffusion.py:546
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only de
diffplanner/models/utils/gaussian_diffusion.py:1094
↓ 1 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
data/rotation_utils/conversions.py:102
↓ 1 callersMethod_warmed_up
(self)
diffplanner/models/utils/gaussian_diffusion.py:152
↓ 1 callersFunctionactor_step
Collect data.
diffmimic/brax_lib/acting.py:34
↓ 1 callersMethodadd_box
(self, qp, box_qp)
simulate/humanoid_mimic_hit.py:110
↓ 1 callersFunctionadd_scene_to_traj
(traj, waypoint, scene='hit', bar_height=1.25)
simulate/scene.py:12
↓ 1 callersFunctionaxis_angle_to_quaternion
Convert rotations given as axis/angle to quaternions. Args: axis_angle: Rotations given as a vector in axis angle form,
data/rotation_utils/conversions.py:509
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
diffplanner/models/utils/gaussian_diffusion.py:256
↓ 1 callersFunctionbuild_evaluator
(metric, eval_cfg, data_len, eval_indexes)
diffplanner/core/evaluation/builder.py:19
↓ 1 callersFunctionbuild_optimizers
Build multiple optimizers from configs. If `cfgs` contains several dicts for optimizers, then a dict for each constructed optimizers will be r
diffplanner/core/optimizer/builder.py:8
↓ 1 callersMethodbuild_text_encoder
(self, text_encoder)
diffplanner/models/transformers/diffusion_transformer.py:143
↓ 1 callersFunctioncalculate_multimodality
(activation, multimodality_times)
diffplanner/core/evaluation/utils.py:122
↓ 1 callersFunctionclip_by_global_norm
(updates)
diffmimic/brax_lib/agent_diffmimic.py:194
↓ 1 callersFunctioncollect_results_cpu
Collect results in cpu.
diffplanner/apis/test.py:86
↓ 1 callersFunctioncollect_results_gpu
Collect results in gpu.
diffplanner/apis/test.py:131
↓ 1 callersFunctioncompute_pd_control
(target_angles, current_angles, current_velocities, Kp, Kd)
diffmimic/mimic_envs/pd_controller.py:8
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
diffplanner/models/utils/gaussian_diffusion.py:567
↓ 1 callersMethodcondition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See co
diffplanner/models/utils/gaussian_diffusion.py:582
↓ 1 callersFunctionconvert_to_states
(qp_list)
data/humanml3d_converter.py:187
↓ 1 callersFunctionconvert_to_states
(qp_list)
data/kitml_converter.py:186
↓ 1 callersFunctioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
diffplanner/models/utils/gaussian_diffusion.py:16
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
diffplanner/models/utils/gaussian_diffusion.py:771
↓ 1 callersMethodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
diffplanner/models/utils/gaussian_diffusion.py:890
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_pro
diffplanner/models/utils/gaussian_diffusion.py:928
↓ 1 callersFunctiondiffusion_planner
(text, pre_seq, waypoint, motion_length)
tools/demo.py:72
↓ 1 callersFunctiondiscretized_gaussian_log_likelihood
Compute the log-likelihood of a Gaussian distribution discretizing to a given image. :param x: the target images. It is assumed that this
diffplanner/models/utils/gaussian_diffusion.py:200
↓ 1 callersMethodencode
(self, motion)
diffplanner/models/architectures/vae_architecture.py:48
↓ 1 callersFunctionexecute_actions
(rollout_traj, num_eval_envs, perturb=False)
simulate/rollout.py:72
↓ 1 callersMethodextract_text_feature
(self, text, clip_model, device)
diffplanner/models/transformers/remodiffuse.py:71
↓ 1 callersMethodforward_test
(self, h, src_mask, emb, **kwargs)
diffplanner/models/transformers/diffusion_transformer.py:215
↓ 1 callersMethodforward_test
(self, **kwargs)
diffplanner/models/architectures/base_architecture.py:18
↓ 1 callersMethodforward_train
(self, h, src_mask, emb, **kwargs)
diffplanner/models/transformers/diffusion_transformer.py:211
↓ 1 callersMethodforward_train
(self, **kwargs)
diffplanner/models/architectures/base_architecture.py:15
↓ 1 callersMethodgenerate_src_mask
(self, T, length)
diffplanner/models/transformers/remodiffuse.py:127
↓ 1 callersFunctiongenerate_unroll
Collect trajectories of given unroll_length.
diffmimic/brax_lib/acting.py:54
↓ 1 callersFunctiongenerative_controller
(planned_motion, perturb, motion_length)
tools/demo.py:84
↓ 1 callersFunctionget_ang_vel
(rot, dt, target_dt, gt=None)
data/humanml3d_converter.py:237
↓ 1 callersFunctionget_ang_vel
(rot, dt, target_dt, gt=None)
data/kitml_converter.py:236
↓ 1 callersFunctionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the lim
diffplanner/models/utils/gaussian_diffusion.py:229
↓ 1 callersMethodget_precompute_condition
(self, **kwargs)
diffplanner/models/transformers/diffusion_transformer.py:207
↓ 1 callersMethodget_precompute_condition
(self, text=None, motion_length=None, xf_out=None, re_feat=None, device=None)
diffplanner/models/transformers/remodiffuse.py:182
↓ 1 callersFunctionget_rot
(rot, dt, target_dt)
data/humanml3d_converter.py:257
↓ 1 callersFunctionget_rot
(rot, dt, target_dt)
data/kitml_converter.py:256
↓ 1 callersFunctionget_transl
(transl)
tools/demo_utils/diffuse.py:30
↓ 1 callersFunctiongmof
Geman-McClure error function.
diffplanner/models/losses/mse_loss.py:8
↓ 1 callersFunctioninfer_motion_diffusion
(text, pre_seq, transl, motion_length)
tools/demo_utils/diffuse.py:53
↓ 1 callersFunctioninit
(qp)
data/humanml3d_converter.py:61
↓ 1 callersFunctioninit
(qp)
data/kitml_converter.py:60
↓ 1 callersFunctioninterpolate
(y, dt, target_dt, gt=None)
data/humanml3d_converter.py:212
↓ 1 callersFunctioninterpolate
(y, dt, target_dt, gt=None)
data/kitml_converter.py:211
↓ 1 callersMethodload_anno
(self, name)
diffplanner/datasets/base_dataset.py:53
↓ 1 callersMethodload_annotations
Load annotations from ``ann_file`` to ``data_infos``
diffplanner/datasets/base_dataset.py:59
↓ 1 callersFunctionmain
()
visualize.py:43
↓ 1 callersFunctionmain
()
tools/train.py:63
↓ 1 callersFunctionmain
()
tools/test.py:73
↓ 1 callersFunctionmain
()
tools/test_waypoint.py:73
↓ 1 callersFunctionmake_policy
(params: types.PolicyParams, deterministic: bool = False)
diffmimic/brax_lib/encoder.py:42
↓ 1 callersFunctionmatrix_to_rotation_6d
(matrix)
diffmimic/utils/rotation6d.py:25
↓ 1 callersFunctionmse_loss
Warpper of mse loss.
diffplanner/models/losses/mse_loss.py:16
↓ 1 callersMethodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
diffplanner/models/utils/gaussian_diffusion.py:606
↓ 1 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
diffplanner/models/utils/gaussian_diffusion.py:668
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_
diffplanner/models/utils/gaussian_diffusion.py:718
↓ 1 callersFunctionparse_args
()
tools/train.py:20
↓ 1 callersFunctionparse_args
()
tools/test.py:29
↓ 1 callersFunctionparse_args
()
tools/test_waypoint.py:29
↓ 1 callersMethodparse_values
(self, values, gt_values)
diffplanner/core/evaluation/evaluators/fid_evaluator.py:64
↓ 1 callersFunctionparse_version_info
Parse a version string into a tuple. Args: version_str (str): The version string. Returns: tuple[int | str]: The version info,
diffplanner/version.py:4
↓ 1 callersMethodprepare_data
Prepare raw data for the f'{idx'}-th data.
diffplanner/datasets/base_dataset.py:67
↓ 1 callersMethodprepare_evaluation
(self)
diffplanner/datasets/base_dataset.py:94
↓ 1 callersFunctionpreprocess_pre_seq
(pre_seq)
tools/demo_utils/diffuse.py:67
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of dif
diffplanner/models/utils/gaussian_diffusion.py:382
↓ 1 callersFunctionquat_abs
quaternion norm (unit quaternion represents a 3D rotation, which has norm of 1)
data/rotation_utils/quaternion.py:40
↓ 1 callersFunctionquat_abs
quaternion norm (unit quaternion represents a 3D rotation, which has norm of 1)
diffmimic/utils/quaternion.py:40
↓ 1 callersFunctionquat_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].
diffmimic/utils/quaternion.py:81
↓ 1 callersFunctionquat_identity
Construct 3D identity rotation given shape
data/rotation_utils/quaternion.py:93
← previousnext →101–200 of 459, ranked by callers