MCPcopy Create free account

hub / github.com/GuyTevet/CLoSD / functions

Functions2,247 in github.com/GuyTevet/CLoSD

↓ 430 callersMethodappend
(self, new_memory)
closd/utils/smpllib/khrylib/utils/memory.py:19
↓ 312 callersMethodto
(self, device)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:514
↓ 185 callersMethodnumpy
(self)
closd/utils/motion_lib_base.py:35
↓ 163 callersMethodclone
(self)
closd/utils/poselib/poselib/skeleton/skeleton3d.py:916
↓ 114 callersMethodzeros_like
(tensor, val=0.)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:242
↓ 112 callersMethodindex
get the index of the node :param node_name: the name of the node :type node_name: string :rtype: int
closd/utils/poselib/poselib/skeleton/skeleton3d.py:204
↓ 112 callersMethodmean
(self)
closd/utils/smpllib/khrylib/utils/zfilter.py:29
↓ 59 callersMethodupdate
(self, val, n=1)
closd/utils/smpllib/khrylib/utils/tools.py:72
↓ 37 callersMethodlog
(self, *args, level=INFO)
closd/diffusion_planner/diffusion/logger.py:376
↓ 36 callersMethodload
(self, model_dir)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:582
↓ 34 callersMethodeval
(self)
closd/learning/im_amp.py:117
↓ 30 callersFunction_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
closd/diffusion_planner/diffusion/gaussian_diffusion.py:1695
↓ 26 callersFunctionto_torch
(ndarray)
closd/diffusion_planner/utils/misc.py:47
↓ 23 callersMethodones_like
(tensor, val=1.)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:238
↓ 22 callersMethodcreate
Create more task primitives from a task for the plotter
closd/utils/poselib/poselib/visualization/core.py:64
↓ 19 callersMethodfrom_rotation_and_root_translation
Construct a skeleton state from rotation and root translation :param skeleton_tree: the skeleton tree :type skeleton_tree: S
closd/utils/poselib/poselib/skeleton/skeleton3d.py:573
↓ 18 callersMethodload
(self, params)
closd/learning/network_builder.py:181
↓ 18 callersMethodtotal_step
(self)
closd/diffusion_planner/train/training_loop.py:427
↓ 17 callersFunctiondenormalize_range
(value, lb, ub)
closd/utils/smpllib/smpllib/smpl_local_robot.py:47
↓ 17 callersFunctionquaternion_matrix
Return homogeneous rotation matrix from quaternion. >>> M = quaternion_matrix([0.99810947, 0.06146124, 0, 0]) >>> numpy.allclose(M, rotation_
closd/utils/smpllib/utils/transformation.py:1344
↓ 16 callersFunctionqrot
Rotate vector(s) v about the rotation described by quaternion(s) q. Expects a tensor of shape (*, 4) for q and a tensor of shape (*, 3) for v
closd/diffusion_planner/data_loaders/humanml/common/quaternion.py:56
↓ 15 callersMethodget_motion_num_steps
(self, motion_ids=None)
closd/utils/motion_lib_base.py:425
↓ 15 callersFunctionqrot_np
(q, v)
closd/diffusion_planner/data_loaders/humanml/common/quaternion.py:136
↓ 15 callersMethodstep
(self, actions)
closd/env/tasks/vec_task.py:62
↓ 14 callersFunctionangle_axis_to_rotation_matrix
Convert 3d vector of axis-angle rotation to 4x4 rotation matrix Args: angle_axis (Tensor): tensor of 3d vector of axis-angle rotations.
closd/utils/smpllib/utils/torch_geometry_transforms.py:121
↓ 14 callersFunctionnormalize_range
(value, lb, ub)
closd/utils/smpllib/smpllib/smpl_local_robot.py:43
↓ 14 callersFunctionremove_base_rot
(quat)
closd/env/tasks/humanoid.py:1599
↓ 13 callersMethodclose
(self)
closd/diffusion_planner/diffusion/logger.py:391
↓ 13 callersFunctionparse_vec
(string)
closd/utils/smpllib/smpllib/smpl_local_robot.py:34
↓ 13 callersFunctionquat_mul
quaternion multiplication
closd/utils/poselib/poselib/core/rotation3d.py:15
↓ 13 callersFunctionvector_norm
Return length, i.e. Euclidean norm, of ndarray along axis. >>> v = numpy.random.random(3) >>> n = vector_norm(v) >>> numpy.allclose(n, nu
closd/utils/smpllib/utils/transformation.py:1813
↓ 13 callersFunctionvector_norm
Return length, i.e. Euclidean norm, of ndarray along axis. >>> v = numpy.random.random(3) >>> n = vector_norm(v) >>> numpy.allclose(n, nu
closd/utils/smpllib/khrylib/utils/transformation.py:1800
↓ 12 callersMethod__init__
(self, in_channels, out_channels, use_bn=False)
closd/learning/network_builder.py:514
↓ 12 callersFunctionequal
(a0, a1)
closd/utils/smpllib/utils/torch_utils.py:49
↓ 12 callersMethodget_joints_verts
Pose should be batch_size x 72
closd/utils/smpllib/smpllib/smpl_parser.py:340
↓ 12 callersFunctionrecover_from_ric
(data, joints_num, hml_type=None)
closd/diffusion_planner/data_loaders/humanml/scripts/motion_process.py:447
↓ 12 callersMethodsave
(self, file_name, ep, total_it, sub_ep, sl_len)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:553
↓ 12 callersMethodtrain
(self, train_dataset, val_dataset, plot_eval)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:604
↓ 12 callersMethodupdate
(self)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:474
↓ 11 callersFunctionget_dataset_loader
(name, batch_size, num_frames, split='train', hml_mode='train', hml_type=None, abs_path='closd/diffusion_plann
closd/diffusion_planner/data_loaders/get_data.py:48
↓ 11 callersFunctionqmul_np
(q, r)
closd/diffusion_planner/data_loaders/humanml/common/quaternion.py:130
↓ 11 callersFunctionquat_rotate
Rotate a 3D vector with the 3D rotation
closd/utils/poselib/poselib/core/rotation3d.py:206
↓ 11 callersMethodsave
(self)
closd/utils/smpllib/utils/lightning_utils.py:82
↓ 11 callersMethodtrain
(self)
closd/learning/common_agent.py:89
↓ 10 callersMethod__init__
(self, query_dim, key_dim, value_dim)
closd/diffusion_planner/data_loaders/humanml/networks/modules.py:233
↓ 10 callersFunctionqinv
(q)
closd/diffusion_planner/data_loaders/humanml/common/quaternion.py:16
↓ 10 callersFunctionunit_vector
Return ndarray normalized by length, i.e. Euclidean norm, along axis. >>> v0 = numpy.random.random(3) >>> v1 = unit_vector(v0) >>> numpy.
closd/utils/smpllib/utils/transformation.py:1852
↓ 10 callersFunctionunit_vector
Return ndarray normalized by length, i.e. Euclidean norm, along axis. >>> v0 = numpy.random.random(3) >>> v1 = unit_vector(v0) >>> numpy.
closd/utils/smpllib/khrylib/utils/transformation.py:1839
↓ 10 callersFunctionupdate_mocap
()
closd/utils/smpllib/utils/replay_data.py:71
↓ 9 callersMethodenv_reset
(self, env_ids=None)
closd/learning/common_agent.py:502
↓ 9 callersMethodfrom_dict
(cls, dict_repr, *args, **kwargs)
closd/utils/poselib/poselib/skeleton/skeleton3d.py:134
↓ 9 callersFunctionget_current
()
closd/diffusion_planner/diffusion/logger.py:325
↓ 9 callersMethodinverse_kinematics_np
(self, joints, face_joint_idx, smooth_forward=False, fix_bug=False)
closd/diffusion_planner/data_loaders/humanml/common/skeleton.py:55
↓ 9 callersFunctionquat_from_angle_axis
Create a 3D rotation from angle and axis of rotation. The rotation is counter-clockwise along the axis. The rotation can be interpreted as
closd/utils/poselib/poselib/core/rotation3d.py:123
↓ 9 callersFunctionquaternion_multiply
Return multiplication of two quaternions. >>> q = quaternion_multiply([4, 1, -2, 3], [8, -5, 6, 7]) >>> numpy.allclose(q, [28, -44, -14, 48])
closd/utils/smpllib/utils/transformation.py:1478
↓ 9 callersMethodscalar_summary
(self, tag, value, step)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:20
↓ 9 callersMethodupdate
(self, skeleton_state)
closd/utils/poselib/poselib/visualization/skeleton_plotter_tasks.py:43
↓ 8 callersMethod__init__
(self, modeltype, njoints, nfeats, num_actions, translation, pose_rep, glob, glob_rot, latent
closd/diffusion_planner/model/mdm.py:14
↓ 8 callersFunction_create_initializer
(func, **kwargs)
closd/learning/network_builder.py:11
↓ 8 callersMethod_get_state_from_motionlib_cache
(self, motion_ids, motion_times, offset=None)
closd/env/tasks/humanoid_im.py:929
↓ 8 callersMethodbackward
(ctx, *output_grads)
closd/diffusion_planner/diffusion/nn.py:161
↓ 8 callersMethoddim
(self)
closd/utils/poselib/poselib/visualization/simple_plotter_tasks.py:140
↓ 8 callersMethodget_init_hidden
(self, latent)
closd/diffusion_planner/data_loaders/humanml/networks/modules.py:211
↓ 8 callersMethodinv_transform
(self, data)
closd/diffusion_planner/data_loaders/humanml/data/dataset.py:319
↓ 8 callersMethodlogkv_mean
(self, key, val)
closd/diffusion_planner/diffusion/logger.py:350
↓ 8 callersFunctionqinv_np
(q)
closd/diffusion_planner/data_loaders/humanml/common/quaternion.py:23
↓ 8 callersFunctionquaternion_inverse
Return inverse of quaternion. >>> q0 = random_quaternion() >>> q1 = quaternion_inverse(q0) >>> numpy.allclose(quaternion_multiply(q0, q1)
closd/utils/smpllib/utils/transformation.py:1509
↓ 8 callersFunctionquaternion_matrix
Return homogeneous rotation matrix from quaternion. >>> M = quaternion_matrix([0.99810947, 0.06146124, 0, 0]) >>> numpy.allclose(M, rotation_
closd/utils/smpllib/khrylib/utils/transformation.py:1344
↓ 8 callersMethodseed
(self, seed=None)
closd/utils/smpllib/khrylib/rl/envs/common/mujoco_env.py:66
↓ 8 callersFunctiontensor_to_dict
Construct an ordered dictionary from the object :rtype: OrderedDict
closd/utils/poselib/poselib/core/tensor_utils.py:34
↓ 8 callersMethodtrans_policy
transform states before going into policy net
closd/utils/smpllib/khrylib/rl/agents/agent.py:133
↓ 8 callersFunctiontransform_translation
Get translation from transform
closd/utils/poselib/poselib/core/rotation3d.py:295
↓ 7 callersMethod_build_mlp
(self, input_size, units, activation, dense_func, norm_only_first_layer=False, norm_func_name=None, d2rl=False
closd/learning/network_builder.py:122
↓ 7 callersMethod_preproc_obs
(self, obs_batch, use_temp=False)
closd/learning/amp_agent.py:593
↓ 7 callersFunctioncreate_model_and_diffusion
(args, data)
closd/diffusion_planner/utils/model_util.py:20
↓ 7 callersMethodeval_critic
(self, obs_dict)
closd/learning/amp_network_builder.py:153
↓ 7 callersFunctionget_body_qposaddr
(model)
closd/utils/smpllib/khrylib/utils/mujoco.py:18
↓ 7 callersMethodget_num_amp_obs
(self)
closd/env/tasks/humanoid_amp.py:194
↓ 7 callersFunctionget_target_location
(motion, mean, std, lengths, joints_num, all_goal_joint_names, target_joint_names, is_heading)
closd/diffusion_planner/data_loaders/humanml/scripts/motion_process.py:604
↓ 7 callersMethodp_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
closd/diffusion_planner/diffusion/gaussian_diffusion.py:285
↓ 7 callersFunctionqmul
Multiply quaternion(s) q with quaternion(s) r. Expects two equally-sized tensors of shape (*, 4), where * denotes any number of dimensions.
closd/diffusion_planner/data_loaders/humanml/common/quaternion.py:34
↓ 7 callersFunctionquat_inverse
The inverse of the rotation
closd/utils/poselib/poselib/core/rotation3d.py:215
↓ 7 callersFunctionquat_mul_norm
Combine two set of 3D rotations together using \**\* operator. The shape needs to be broadcastable
closd/utils/poselib/poselib/core/rotation3d.py:197
↓ 7 callersFunctionquat_normalize
Construct 3D rotation from quaternion (the quaternion needs not to be normalized).
closd/utils/poselib/poselib/core/rotation3d.py:93
↓ 7 callersFunctiontransform_from_rotation_translation
Construct a transform from a quaternion and 3D translation. Only one of them can be None.
closd/utils/poselib/poselib/core/rotation3d.py:265
↓ 7 callersFunctiontransform_rotation
Get rotation from transform
closd/utils/poselib/poselib/core/rotation3d.py:289
↓ 7 callersMethodupdate_pose
(self)
closd/utils/smpllib/khrylib/rl/utils/visualizer.py:25
↓ 7 callersMethodzero_grad
(self)
closd/diffusion_planner/diffusion/fp16_util.py:173
↓ 6 callersMethod_get_viewer
(self, mode)
closd/utils/smpllib/khrylib/rl/envs/common/mujoco_env.py:145
↓ 6 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
closd/diffusion_planner/diffusion/gaussian_diffusion.py:463
↓ 6 callersMethod_scale_timesteps
(self, t)
closd/diffusion_planner/diffusion/gaussian_diffusion.py:469
↓ 6 callersMethodadd_body_joint_and_actuator
(self, parent_body, body, pos, index_name = "_1")
closd/utils/smpllib/smpllib/smpl_local_robot.py:2035
↓ 6 callersFunctionarea_vectorized
(x1, y1, x2, y2, x3, y3)
closd/utils/rep_util.py:34
↓ 6 callersMethodbackward
(self)
closd/diffusion_planner/data_loaders/humanml/networks/trainers.py:60
↓ 6 callersFunctionbuild_amp_observations
(root_pos, root_rot, root_vel, root_ang_vel, dof_pos, dof_vel, key_body_pos, local_root_obs, root_height_obs,
closd/env/tasks/humanoid_amp.py:885
↓ 6 callersMethodenv_step
(self, env, actions)
closd/learning/common_player.py:157
↓ 6 callersMethodeval_disc
(self, amp_obs)
closd/learning/amp_network_builder.py:210
↓ 6 callersFunctionfixseed
(seed)
closd/diffusion_planner/utils/fixseed.py:6
↓ 6 callersMethodget_aux_task_obs_size
(self)
closd/env/tasks/closd_task.py:175
↓ 6 callersMethodget_buffer_size
(self)
closd/learning/replay_buffer.py:21
next →1–100 of 2,247, ranked by callers