MCPcopy Create free account

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

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

↓ 2 callersFunctioncalculate_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
eval/a2m/stgcn/fid.py:11
↓ 2 callersFunctioncalculate_top_k
(mat, top_k)
data_loaders/humanml/utils/metrics.py:22
↓ 2 callersFunctioncamera_fitting_loss_3d
Loss function for camera optimization.
visualize/joints2smpl/src/customloss.py:192
↓ 2 callersFunctioncollate_tensors
(batch)
data_loaders/tensors.py:9
↓ 2 callersFunctioncompute_features
(model, iterator, device)
eval/unconstrained/evaluate.py:41
↓ 2 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
diffusion/gaussian_diffusion.py:441
↓ 2 callersMethodcondition_score_with_grad
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See co
diffusion/gaussian_diffusion.py:465
↓ 2 callersFunctionconfigure
If comm is provided, average all numerical stats across that comm
diffusion/logger.py:442
↓ 2 callersFunctioncont6d_to_matrix_np
(cont6d)
data_loaders/humanml/common/quaternion.py:341
↓ 2 callersMethoddumpkvs
(self)
diffusion/logger.py:355
↓ 2 callersFunctioneuclidean_distance_matrix
Params: -- matrix1: N1 x D -- matrix2: N2 x D Returns: -- dist: N1 x N2 dist[i, j] == distance(matrix
data_loaders/humanml/utils/metrics.py:6
↓ 2 callersMethodevaluate
(self)
train/training_loop.py:252
↓ 2 callersFunctionevaluation_parser
()
utils/parser_util.py:315
↓ 2 callersMethodfind_resume_checkpoint
look for all file in save directory in the pattent of model{number}.pt and return the one with the highest step number. TODO: Imp
train/training_loop.py:385
↓ 2 callersFunctionfoot_detect
(positions, thres)
data_loaders/humanml/scripts/motion_process.py:47
↓ 2 callersFunctionformat_metrics
(metrics, formatter="{:.6}")
eval/a2m/tools.py:4
↓ 2 callersMethodforward
(self, batch_data)
data_loaders/humanml/networks/trainers.py:54
↓ 2 callersMethodforward
(self, batch_data)
data_loaders/humanml/networks/trainers.py:941
↓ 2 callersMethodget_action
(self, ind)
data_loaders/a2m/dataset.py:59
↓ 2 callersFunctionget_cond_mode
(args)
utils/parser_util.py:269
↓ 2 callersFunctionget_cont6d_params
(positions)
data_loaders/humanml/scripts/motion_process.py:102
↓ 2 callersMethodget_dir
(self)
diffusion/logger.py:388
↓ 2 callersMethodget_motion_embeddings
(self, motions, m_lens)
data_loaders/humanml/networks/evaluator_wrapper.py:175
↓ 2 callersMethodget_offsets_joints
(self, joints)
data_loaders/humanml/common/skeleton.py:43
↓ 2 callersFunctionget_param_groups_and_shapes
(named_model_params)
diffusion/fp16_util.py:82
↓ 2 callersFunctionget_rifke
Local pose
data_loaders/humanml/scripts/motion_process.py:72
↓ 2 callersFunctionget_target_location
(motion, mean, std, lengths, joints_num, all_goal_joint_names, target_joint_names, is_heading)
data_loaders/humanml/scripts/motion_process.py:594
↓ 2 callersFunctiongmof
Geman-McClure error function
visualize/joints2smpl/src/customloss.py:6
↓ 2 callersMethodinitHidden
(self, num_samples, layer)
eval/a2m/action2motion/models.py:40
↓ 2 callersFunctionload_classifier
(input_size_raw, num_classes, device)
eval/a2m/action2motion/models.py:67
↓ 2 callersFunctionmake_master_params
Copy model parameters into a (differently-shaped) list of full-precision parameters.
diffusion/fp16_util.py:35
↓ 2 callersFunctionmanifold_estimate
( A_features, B_features, k)
eval/unconstrained/metrics/precision_recall.py:30
↓ 2 callersFunctionmasked_l2
(a, b, mask, loss_fn=diff_l2, epsilon=1e-8, entries_norm=True)
utils/loss_util.py:13
↓ 2 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among othe
diffusion/losses.py:12
↓ 2 callersMethodnpy2smpl
(self, npy_path)
visualize/simplify_loc2rot.py:45
↓ 2 callersFunctionperspective_projection
This function computes the perspective projection of a set of points. Input: points (bs, N, 3): 3D points rotation (bs, 3, 3)
visualize/joints2smpl/src/customloss.py:24
↓ 2 callersFunctionqeuler
Convert quaternion(s) q to Euler angles. Expects a tensor of shape (*, 4), where * denotes any number of dimensions. Returns a tensor of
data_loaders/humanml/common/quaternion.py:78
↓ 2 callersFunctionqfix
Enforce quaternion continuity across the time dimension by selecting the representation (q or -q) with minimal distance (or, equivalently, ma
data_loaders/humanml/common/quaternion.py:151
↓ 2 callersFunctionquaternion_to_cont6d
(quaternions)
data_loaders/humanml/common/quaternion.py:316
↓ 2 callersFunctionquaternion_to_cont6d_np
(quaternions)
data_loaders/humanml/common/quaternion.py:310
↓ 2 callersFunctionquaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as ten
utils/rotation_conversions.py:38
↓ 2 callersFunctionquaternion_to_matrix
Convert rotations given as quaternions to rotation matrices. Args: quaternions: quaternions with real part first, as tens
data_loaders/humanml/common/quaternion.py:276
↓ 2 callersMethodreport_args
(self, args, name)
train/train_platforms.py:15
↓ 2 callersMethodreport_media
(self, title, series, iteration, local_path)
train/train_platforms.py:12
↓ 2 callersFunctionsave_image
(image_numpy, image_path)
data_loaders/humanml/utils/utils.py:22
↓ 2 callersFunctionsave_multiple_samples
(out_path, file_templates, animations, fps, max_frames, no_dir=False)
sample/generate.py:255
↓ 2 callersFunctionsum_flat
Take the sum over all non-batch dimensions.
diffusion/nn.py:93
↓ 2 callersMethodtrain
(self, *args, **kwargs)
model/mdm.py:291
↓ 2 callersFunctionunflatten_master_params
(param_group, master_param)
diffusion/fp16_util.py:78
↓ 2 callersFunctionwrapped_getattr
should be called from wrappers of model classes such as ClassifierFreeSampleModel
utils/misc.py:19
↓ 2 callersFunctionzero_master_grads
(master_params)
diffusion/fp16_util.py:128
↓ 1 callersMethod__init__
(self, model, timestep_map, rescale_timesteps, original_num_steps)
diffusion/respace.py:119
↓ 1 callersMethod__init__
(self, args, sample_fn, required_frames=196)
utils/sampler_util.py:42
↓ 1 callersMethod__init__
(self, in_channels, num_class, graph_args, edge_importance_weighting, device, **kwargs)
eval/unconstrained/models/stgcn.py:29
↓ 1 callersMethod__init__
(self, in_channels, num_class, graph_args, edge_importance_weighting, device, **kwargs)
eval/a2m/recognition/models/stgcn.py:29
↓ 1 callersMethod__init__
(self, save_dir, *args, **kwargs)
train/train_platforms.py:57
↓ 1 callersMethod_anneal_lr
(self)
train/training_loop.py:349
↓ 1 callersFunction_configure_default_logger
()
diffusion/logger.py:474
↓ 1 callersMethod_do_log
(self, args)
diffusion/logger.py:397
↓ 1 callersMethod_get_item_data_index
(self, data_index)
data_loaders/a2m/dataset.py:139
↓ 1 callersMethod_load
(self, ind, frame_ix)
data_loaders/a2m/dataset.py:86
↓ 1 callersMethod_load_and_sync_parameters
(self)
train/training_loop.py:130
↓ 1 callersMethod_load_joints3D
(self, ind, frame_ix)
data_loaders/a2m/uestc.py:186
↓ 1 callersMethod_load_optimizer_state
(self)
train/training_loop.py:162
↓ 1 callersMethod_load_rotvec
(self, ind, frame_ix)
data_loaders/a2m/uestc.py:197
↓ 1 callersFunction_mmd2_and_variance
(K_XX, K_XY, K_YY, unit_diagonal=False, mmd_est='unbiased', block_size=1024,
eval/unconstrained/metrics/kid.py:43
↓ 1 callersMethod_optimize_fp16
(self, opt: th.optim.Optimizer)
diffusion/fp16_util.py:189
↓ 1 callersMethod_optimize_normal
(self, opt: th.optim.Optimizer)
diffusion/fp16_util.py:209
↓ 1 callersMethod_predict_xstart_from_xprev
(self, x_t, t, xprev)
diffusion/gaussian_diffusion.py:390
↓ 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
diffusion/gaussian_diffusion.py:1526
↓ 1 callersFunction_rotation_6d_to_euler
Converts 6D rotation representation by Zhou et al. [1] to euler angles using Gram--Schmidt orthogonalisation per Section B of [1]. :para
visualize/motions2hik.py:89
↓ 1 callersMethod_warmed_up
(self)
diffusion/resample.py:153
↓ 1 callersMethodaction_name_to_action
(self, action_name)
data_loaders/a2m/dataset.py:65
↓ 1 callersMethodaction_to_action_name
(self, action)
data_loaders/a2m/dataset.py:62
↓ 1 callersMethodaction_to_label
(self, action)
data_loaders/a2m/dataset.py:39
↓ 1 callersFunctionadd_edit_options
(parser)
utils/parser_util.py:235
↓ 1 callersFunctionadd_evaluation_options
(parser)
utils/parser_util.py:252
↓ 1 callersFunctionadd_generate_options
(parser)
utils/parser_util.py:215
↓ 1 callersFunctionadd_training_options
(parser)
utils/parser_util.py:145
↓ 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,
utils/rotation_conversions.py:450
↓ 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 = [
diffusion/gaussian_diffusion.py:49
↓ 1 callersFunctionbuild_evaluators
(opt)
data_loaders/humanml/networks/evaluator_wrapper.py:95
↓ 1 callersFunctionbuild_models
(opt)
data_loaders/humanml/networks/evaluator_wrapper.py:5
↓ 1 callersFunctionbuild_models
(opt)
data_loaders/humanml/motion_loaders/comp_v6_model_dataset.py:11
↓ 1 callersFunctioncalculate_accuracy
(model, motion_loader, num_labels, classifier, device)
eval/a2m/action2motion/accuracy.py:4
↓ 1 callersFunctioncalculate_accuracy
(model, motion_loader, num_labels, classifier, device)
eval/a2m/stgcn/accuracy.py:4
↓ 1 callersMethodcalculate_activation_statistics
(activations)
eval/a2m/action2motion/evaluate.py:35
↓ 1 callersMethodcalculate_activation_statistics
(activations)
eval/a2m/stgcn/evaluate.py:50
↓ 1 callersFunctioncalculate_diversity_multimodality
(activations, labels, num_labels, unconstrained = False)
eval/a2m/action2motion/diversity.py:21
↓ 1 callersFunctioncalculate_diversity_multimodality
(activations, labels, num_labels, seed=None, unconstrained = False)
eval/a2m/stgcn/diversity.py:6
↓ 1 callersFunctioncalculate_fid
(statistics_1, statistics_2)
eval/a2m/action2motion/fid.py:6
↓ 1 callersFunctioncalculate_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
eval/a2m/action2motion/fid.py:11
↓ 1 callersFunctioncalculate_kid
(real_activations, generated_activations)
eval/unconstrained/metrics/kid.py:133
↓ 1 callersFunctioncalculate_multimodality
(activation, multimodality_times)
data_loaders/humanml/utils/metrics.py:84
↓ 1 callersFunctioncheck_overflow
(value)
diffusion/fp16_util.py:235
↓ 1 callersMethodclip_norm
(network_list)
data_loaders/humanml/networks/trainers.py:251
↓ 1 callersMethodclip_norm
(network_list)
data_loaders/humanml/networks/trainers.py:781
↓ 1 callersMethodclip_norm
(network_list)
data_loaders/humanml/networks/trainers.py:922
↓ 1 callersFunctioncompose_image
(img_list, col, row, img_size)
data_loaders/humanml/utils/utils.py:122
↓ 1 callersMethodcompute_accuracy
(self, batch)
eval/unconstrained/models/stgcn.py:116
← previousnext →101–200 of 683, ranked by callers