MCPcopy Create free account

hub / github.com/GuyTevet/motion-diffusion-model / functions

Functions683 in github.com/GuyTevet/motion-diffusion-model

↓ 120 callersMethodto
(self, device)
data_loaders/humanml/networks/trainers.py:514
↓ 53 callersMethodload
(self, model_dir)
data_loaders/humanml/networks/trainers.py:582
↓ 31 callersMethodzeros_like
(tensor, val=0.)
data_loaders/humanml/networks/trainers.py:242
↓ 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
diffusion/gaussian_diffusion.py:1602
↓ 29 callersMethodlog
(self, *args, level=INFO)
diffusion/logger.py:376
↓ 17 callersMethodtotal_step
(self)
train/training_loop.py:399
↓ 16 callersMethodsave
(self, file_name, ep, total_it, sub_ep, sl_len)
data_loaders/humanml/networks/trainers.py:553
↓ 11 callersMethodtrain
(self, train_dataset, val_dataset, plot_eval)
data_loaders/humanml/networks/trainers.py:604
↓ 10 callersMethod__init__
(self, query_dim, key_dim, value_dim)
data_loaders/humanml/networks/modules.py:233
↓ 10 callersMethodclose
(self)
diffusion/logger.py:391
↓ 10 callersFunctionget_dataset_loader
(name, batch_size, num_frames, split='train', hml_mode='train', fixed_len=0, pred_len=0,
data_loaders/get_data.py:47
↓ 10 callersFunctionqrot_np
(q, v)
data_loaders/humanml/common/quaternion.py:136
↓ 10 callersMethodstep
(opt_list)
data_loaders/humanml/networks/trainers.py:256
↓ 9 callersFunction_sqn
(arr)
eval/unconstrained/metrics/kid.py:129
↓ 9 callersFunctionget_current
()
diffusion/logger.py:325
↓ 9 callersMethodscalar_summary
(self, tag, value, step)
data_loaders/humanml/networks/trainers.py:20
↓ 9 callersMethodupdate
(self)
data_loaders/humanml/networks/trainers.py:474
↓ 8 callersMethod__init__
(self, modeltype, njoints, nfeats, num_actions, translation, pose_rep, glob, glob_rot, latent
model/mdm.py:12
↓ 8 callersMethodget_init_hidden
(self, latent)
data_loaders/humanml/networks/modules.py:211
↓ 8 callersMethodlogkv_mean
(self, key, val)
diffusion/logger.py:350
↓ 8 callersFunctionqmul_np
(q, r)
data_loaders/humanml/common/quaternion.py:130
↓ 8 callersMethodreport_scalar
(self, name, value, iteration, group_name=None)
train/train_platforms.py:9
↓ 7 callersFunctionfixseed
(seed)
utils/fixseed.py:6
↓ 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
diffusion/gaussian_diffusion.py:270
↓ 7 callersMethodsave
(self)
train/training_loop.py:402
↓ 6 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
diffusion/gaussian_diffusion.py:400
↓ 6 callersMethodbackward
(self)
data_loaders/humanml/networks/trainers.py:60
↓ 6 callersFunctioncreate_model_and_diffusion
(args, data)
utils/model_util.py:18
↓ 6 callersMethodinv_transform
(self, data)
data_loaders/humanml/data/dataset.py:642
↓ 6 callersFunctionload_model_wo_clip
(model, state_dict)
utils/model_util.py:8
↓ 6 callersFunctionlog
Write the sequence of args, with no separators, to the console and output files (if you've configured an output file).
diffusion/logger.py:247
↓ 6 callersFunctionqmul
Multiply quaternion(s) q with quaternion(s) r. Expects two equally-sized tensors of shape (*, 4), where * denotes any number of dimensions.
data_loaders/humanml/common/quaternion.py:34
↓ 6 callersFunctionrecover_from_ric
(data, joints_num)
data_loaders/humanml/scripts/motion_process.py:437
↓ 5 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps)
diffusion/gaussian_diffusion.py:383
↓ 5 callersFunctionas_minutes
(s)
data_loaders/humanml/utils/utils.py:39
↓ 5 callersMethodbackward
(ctx, *output_grads)
diffusion/nn.py:161
↓ 5 callersMethodinverse_kinematics_np
(self, joints, face_joint_idx, smooth_forward=False, fix_bug=False)
data_loaders/humanml/common/skeleton.py:55
↓ 5 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
diffusion/nn.py:87
↓ 5 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
diffusion/gaussian_diffusion.py:246
↓ 5 callersMethodq_sample
Diffuse the dataset for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the in
diffusion/gaussian_diffusion.py:226
↓ 5 callersFunctionqinv
(q)
data_loaders/humanml/common/quaternion.py:16
↓ 5 callersFunctionqinv_np
(q)
data_loaders/humanml/common/quaternion.py:23
↓ 5 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
data_loaders/humanml/common/quaternion.py:56
↓ 5 callersMethodzero_grad
(self)
diffusion/fp16_util.py:173
↓ 4 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
utils/rotation_conversions.py:69
↓ 4 callersMethod_scale_timesteps
(self, t)
diffusion/gaussian_diffusion.py:406
↓ 4 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
utils/rotation_conversions.py:87
↓ 4 callersMethod_wrap_model
(self, model)
diffusion/respace.py:106
↓ 4 callersFunctionadd_base_options
(parser)
utils/parser_util.py:74
↓ 4 callersFunctioncalculate_activation_statistics
(activations)
eval/unconstrained/evaluate.py:34
↓ 4 callersMethodckpt_file_name
(self)
train/training_loop.py:362
↓ 4 callersFunctioncollate
(batch)
data_loaders/tensors.py:22
↓ 4 callersMethodget_offsets_joints_batch
(self, joints)
data_loaders/humanml/common/skeleton.py:33
↓ 4 callersFunctionqnormalize
(q)
data_loaders/humanml/common/quaternion.py:28
↓ 4 callersMethodreset_shuffle
(self)
data_loaders/a2m/dataset.py:245
↓ 4 callersMethodsave
(self, model_dir, epoch, niter)
data_loaders/humanml/networks/trainers.py:766
↓ 4 callersMethodsave
(self, model_dir, epoch, niter)
data_loaders/humanml/networks/trainers.py:903
↓ 4 callersMethodshuffle
(self)
data_loaders/a2m/dataset.py:239
↓ 4 callersMethodzero_grad
(opt_list)
data_loaders/humanml/networks/trainers.py:246
↓ 3 callersMethod_get_pos_ohot
(self, pos)
data_loaders/humanml/utils/word_vectorizer.py:53
↓ 3 callersMethod_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
diffusion/gaussian_diffusion.py:1189
↓ 3 callersFunctionbody_fitting_loss_3d
Loss function for body fitting
visualize/joints2smpl/src/customloss.py:128
↓ 3 callersFunctioncalculate_diversity
(activations)
eval/a2m/action2motion/diversity.py:6
↓ 3 callersMethodclose
(self)
train/train_platforms.py:18
↓ 3 callersFunctionconstruct_template_variables
(unconstrained)
sample/generate.py:283
↓ 3 callersFunctioncont6d_to_matrix
(cont6d)
data_loaders/humanml/common/quaternion.py:322
↓ 3 callersFunctionevaluate
(args, model, diffusion, data)
eval/a2m/stgcn_eval.py:78
↓ 3 callersMethodforward
(self, batch_data, tf_ratio, mov_len, eval_mode=False)
data_loaders/humanml/networks/trainers.py:277
↓ 3 callersFunctionget_opt
(opt_path, device)
data_loaders/humanml/utils/get_opt.py:29
↓ 3 callersMethodjoint2smpl
(self, input_joints, init_params=None)
visualize/simplify_loc2rot.py:63
↓ 3 callersFunctionload_saved_model
(model, model_path, use_avg: bool=False)
utils/model_util.py:118
↓ 3 callersMethodlogkv
(self, key, val)
diffusion/logger.py:347
↓ 3 callersMethodmask_cond
(self, cond, force_mask=False)
model/mdm.py:153
↓ 3 callersMethodones_like
(tensor, val=1.)
data_loaders/humanml/networks/trainers.py:238
↓ 3 callersFunctionparse_and_load_from_model
(parser)
utils/parser_util.py:7
↓ 3 callersFunctionplot_3d_motion
(save_path, kinematic_tree, joints, title, dataset, figsize=(3, 3), fps=120, radius=3, vis_
data_loaders/humanml/utils/plot_script.py:28
↓ 3 callersFunctionprint_current_loss_decomp
(start_time, niter_state, total_niters, losses, epoch=None, inner_iter=None)
data_loaders/humanml/utils/utils.py:64
↓ 3 callersFunctionqbetween_np
find the quaternion used to rotate v0 to v1
data_loaders/humanml/common/quaternion.py:402
↓ 3 callersFunctionquaternion_raw_multiply
Multiply two quaternions. Usual torch rules for broadcasting apply. Args: a: Quaternions as tensor of shape (..., 4), real part
utils/rotation_conversions.py:341
↓ 3 callersFunctionrecover_root_rot_pos
(data)
data_loaders/humanml/scripts/motion_process.py:366
↓ 3 callersMethodreset_max_len
(self, length)
data_loaders/humanml/data/dataset.py:126
↓ 3 callersMethodsave
(self, file_name, ep, total_it)
data_loaders/humanml/networks/trainers.py:94
↓ 3 callersFunctionto_torch
(ndarray)
utils/misc.py:47
↓ 2 callersMethod__getattr__
(self, name, default=None)
utils/sampler_util.py:36
↓ 2 callersMethod__init__
(self, dtype=DEFAULT_DTYPE, reduction='sum', **kwargs)
visualize/joints2smpl/src/prior.py:92
↓ 2 callersFunction_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:
utils/rotation_conversions.py:176
↓ 2 callersMethod_compute_norms
(self, grad_scale=1.0)
diffusion/fp16_util.py:216
↓ 2 callersMethod_get_action_view_subject_side
(self, videopath)
data_loaders/a2m/uestc.py:202
↓ 2 callersFunction_index_from_letter
(letter: str)
utils/rotation_conversions.py:209
↓ 2 callersMethod_truncate
(self, s)
diffusion/logger.py:80
↓ 2 callersFunctionadd_data_options
(parser)
utils/parser_util.py:137
↓ 2 callersFunctionadd_diffusion_options
(parser)
utils/parser_util.py:85
↓ 2 callersFunctionadd_model_options
(parser)
utils/parser_util.py:94
↓ 2 callersFunctionadd_sampling_options
(parser)
utils/parser_util.py:195
↓ 2 callersFunctionangle_prior
Angle prior that penalizes unnatural bending of the knees and elbows
visualize/joints2smpl/src/customloss.py:15
↓ 2 callersFunctionapply_rules
(args)
utils/parser_util.py:46
↓ 2 callersFunctionapprox_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
diffusion/losses.py:42
↓ 2 callersMethodbackward
(self)
data_loaders/humanml/networks/trainers.py:966
↓ 2 callersMethodbackward_G
(self)
data_loaders/humanml/networks/trainers.py:452
↓ 2 callersFunctioncalculate_fid
(statistics_1, statistics_2)
eval/a2m/stgcn/fid.py:6
next →1–100 of 683, ranked by callers