MCPcopy Create free account

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

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

↓ 1 callersMethodcompute_accuracy
(self, batch)
eval/a2m/recognition/models/stgcn.py:114
↓ 1 callersMethodcompute_features
(self, model, motionloader)
eval/a2m/action2motion/evaluate.py:20
↓ 1 callersMethodcompute_features
(self, model, motionloader)
eval/a2m/stgcn/evaluate.py:35
↓ 1 callersMethodcond_modifiers
(self, cond, motion)
train/training_loop.py:192
↓ 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
diffusion/gaussian_diffusion.py:411
↓ 1 callersMethodcondition_mean_with_grad
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
diffusion/gaussian_diffusion.py:426
↓ 1 callersFunctioncreate_gaussian_diffusion
(args)
utils/model_util.py:75
↓ 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 o
diffusion/resample.py:8
↓ 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
diffusion/gaussian_diffusion.py:925
↓ 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 thi
diffusion/losses.py:50
↓ 1 callersFunctionedit_args
()
utils/parser_util.py:306
↓ 1 callersFunctioneuler2quat
Convert Euler angles to quaternions.
data_loaders/humanml/common/quaternion.py:171
↓ 1 callersMethodeval_mode
(self)
data_loaders/humanml/networks/trainers.py:540
↓ 1 callersMethodevaluate
(self, model, loaders)
eval/a2m/action2motion/evaluate.py:41
↓ 1 callersMethodevaluate
(self, model, loaders)
eval/a2m/stgcn/evaluate.py:56
↓ 1 callersFunctionevaluate_diversity
(activation_dict, file, diversity_times)
eval/eval_humanml.py:99
↓ 1 callersFunctionevaluate_fid
(eval_wrapper, groundtruth_loader, activation_dict, file)
eval/eval_humanml.py:73
↓ 1 callersFunctionevaluate_matching_score
(eval_wrapper, motion_loaders, file)
eval/eval_humanml.py:20
↓ 1 callersFunctionevaluate_multimodality
(eval_wrapper, mm_motion_loaders, file, mm_num_times)
eval/eval_humanml.py:110
↓ 1 callersFunctionevaluate_unconstrained_metrics
(generated_motions, device, fast)
eval/unconstrained/evaluate.py:57
↓ 1 callersFunctionevaluation
(eval_wrapper, gt_loader, eval_motion_loaders, log_file, replication_times, diversity_times, m
eval/eval_humanml.py:139
↓ 1 callersMethodforward
(self, x)
diffusion/nn.py:14
↓ 1 callersMethodforward_backward
(self, batch, cond)
train/training_loop.py:312
↓ 1 callersMethodforward_kinematics_cont6d
(self, cont6d_params, root_pos, skel_joints=None, do_root_R=True)
data_loaders/humanml/common/skeleton.py:176
↓ 1 callersMethodforward_kinematics_np
(self, quat_params, root_pos, skel_joints=None, do_root_R=True)
data_loaders/humanml/common/skeleton.py:129
↓ 1 callersMethodgenerate
(self, word_emb, pos_ohot, cap_lens, m_lens, mov_len, dim_pose)
data_loaders/humanml/networks/trainers.py:382
↓ 1 callersFunctiongenerate_args
()
utils/parser_util.py:289
↓ 1 callersMethodgenerate_during_training
(self)
train/training_loop.py:366
↓ 1 callersMethodget_adjacency
(self, strategy)
eval/unconstrained/models/stgcnutils/graph.py:106
↓ 1 callersMethodget_adjacency
(self, strategy)
eval/a2m/recognition/models/stgcnutils/graph.py:99
↓ 1 callersFunctionget_allowed_joint_options
(config_name)
data_loaders/humanml/scripts/motion_process.py:656
↓ 1 callersFunctionget_args
()
sample/predict.py:31
↓ 1 callersFunctionget_args_per_group_name
(parser, args, group_name)
utils/parser_util.py:57
↓ 1 callersMethodget_co_embeddings
(self, word_embs, pos_ohot, cap_lens, motions, m_lens)
data_loaders/humanml/networks/evaluator_wrapper.py:154
↓ 1 callersFunctionget_collate_fn
(name, hml_mode='train', pred_len=0, batch_size=1)
data_loaders/get_data.py:24
↓ 1 callersFunctionget_dataset
(name, num_frames, split='train', hml_mode='train', abs_path='.', fixed_len=0, device=None, a
data_loaders/get_data.py:36
↓ 1 callersFunctionget_dataset_class
(name)
data_loaders/get_data.py:5
↓ 1 callersMethodget_edge
(self, layout)
eval/unconstrained/models/stgcnutils/graph.py:45
↓ 1 callersMethodget_edge
(self, layout)
eval/a2m/recognition/models/stgcnutils/graph.py:45
↓ 1 callersFunctionget_hop_distance
(num_node, edge, max_hop=1)
eval/unconstrained/models/stgcnutils/graph.py:151
↓ 1 callersFunctionget_hop_distance
(num_node, edge, max_hop=1)
eval/a2m/recognition/models/stgcnutils/graph.py:144
↓ 1 callersMethodget_label
(self, ind)
data_loaders/a2m/dataset.py:55
↓ 1 callersFunctionget_mdm_loader
(args, model, diffusion, batch_size, ground_truth_loader, mm_num_samples, mm_num_repeats, max_motion_length, n
data_loaders/humanml/motion_loaders/model_motion_loaders.py:75
↓ 1 callersFunctionget_metric_statistics
(values, replication_times)
eval/eval_humanml.py:132
↓ 1 callersFunctionget_model_args
(args, data)
utils/model_util.py:24
↓ 1 callersFunctionget_model_path_from_args
()
utils/parser_util.py:64
↓ 1 callersMethodget_pose_data
(self, data_index, frame_ix)
data_loaders/a2m/dataset.py:50
↓ 1 callersFunctionget_rank_without_mpi_import
()
diffusion/logger.py:403
↓ 1 callersFunctionget_trans_from_vibe
(vibe, index, use_z=True)
data_loaders/a2m/uestc.py:26
↓ 1 callersMethodget_trimesh
(self, sample_i, frame_i)
visualize/vis_utils.py:46
↓ 1 callersMethodget_vertices
(self, sample_i, frame_i)
visualize/vis_utils.py:43
↓ 1 callersFunctionget_z
Solves for the depth offset of the model to approx. orth with persp camera.
data_loaders/a2m/uestc.py:14
↓ 1 callersFunctionguess_init_3d
Initialize the camera translation via triangle similarity, by using the torso joints . :param model_joints: SMPL model with pre joints
visualize/joints2smpl/src/smplify.py:19
↓ 1 callersFunctionhml_to_abs_loc
(motion, mean, std, joints_num)
data_loaders/humanml/scripts/motion_process.py:624
↓ 1 callersFunctioninit
()
data_loaders/humanml/utils/plot_script.py:39
↓ 1 callersFunctioninitialize_model
(device, modelpath)
eval/unconstrained/evaluate.py:21
↓ 1 callersFunctionis_float
(numStr)
data_loaders/humanml/utils/get_opt.py:8
↓ 1 callersFunctionis_number
(numStr)
data_loaders/humanml/utils/get_opt.py:21
↓ 1 callersMethodkl_criterion
(mu1, logvar1, mu2, logvar2)
data_loaders/humanml/networks/trainers.py:261
↓ 1 callersMethodlabel_to_action
(self, label)
data_loaders/a2m/dataset.py:42
↓ 1 callersFunctionlengths_to_mask
(lengths, max_len)
data_loaders/tensors.py:3
↓ 1 callersFunctionlist_cut_average
(ll, intervals)
data_loaders/humanml/utils/utils.py:148
↓ 1 callersMethodload_and_freeze_clip
(self, clip_version)
model/mdm.py:140
↓ 1 callersFunctionload_args_from_model
(args, args_to_overwrite)
utils/parser_util.py:27
↓ 1 callersFunctionload_bert
(model_path)
model/BERT/BERT_encoder.py:4
↓ 1 callersFunctionload_classifier_for_fid
(input_size_raw, num_classes, device)
eval/a2m/action2motion/models.py:75
↓ 1 callersFunctionload_dataset
(args, max_frames, n_frames)
sample/generate.py:303
↓ 1 callersMethodlog_likelihood
Create graph operation for negative log-likelihood calculation
visualize/joints2smpl/src/prior.py:197
↓ 1 callersFunctionlog_loss_dict
(diffusion, ts, losses)
train/training_loop.py:469
↓ 1 callersMethodlog_step
(self)
train/training_loop.py:357
↓ 1 callersFunctionlogkv
Log a value of some diagnostic Call this once for each diagnostic quantity, each iteration If called many times, last value will be used.
diffusion/logger.py:212
↓ 1 callersFunctionmain
(args=None)
sample/generate.py:23
↓ 1 callersFunctionmain
()
sample/edit.py:23
↓ 1 callersFunctionmain
()
eval/eval_humanact12_uestc.py:51
↓ 1 callersFunctionmain
()
train/train_mdm.py:20
↓ 1 callersFunctionmake_output_format
(format, ev_dir, log_suffix="")
diffusion/logger.py:191
↓ 1 callersFunctionmasked_goal_l2
(pred_goal, ref_goal, cond, all_goal_joint_names)
utils/loss_util.py:34
↓ 1 callersFunctionmaster_params_to_model_params
Copy the master parameter data back into the model parameters.
diffusion/fp16_util.py:65
↓ 1 callersFunctionmaster_params_to_state_dict
( model, param_groups_and_shapes, master_params, use_fp16 )
diffusion/fp16_util.py:95
↓ 1 callersMethodmaster_params_to_state_dict
(self, master_params)
diffusion/fp16_util.py:226
↓ 1 callersFunctionmatrix_to_euler_angles
Convert rotations given as rotation matrices to Euler angles in radians. Args: matrix: Rotation matrices as tensor of shape (..., 3,
utils/rotation_conversions.py:218
↓ 1 callersFunctionmatrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
utils/rotation_conversions.py:98
↓ 1 callersMethodmerged_log_likelihood
(self, pose, betas)
visualize/joints2smpl/src/prior.py:180
↓ 1 callersFunctionmodel_grads_to_master_grads
Copy the gradients from the model parameters into the master parameters from make_master_params().
diffusion/fp16_util.py:52
↓ 1 callersFunctionmotions2hik
Utility function to convert model output to a representation used by HumanIK skeletons in Maya and Motion Builder by converting joint positio
visualize/motions2hik.py:39
↓ 1 callersFunctionmpi_weighted_mean
Copied from: https://github.com/openai/baselines/blob/ea25b9e8b234e6ee1bca43083f8f3cf974143998/baselines/common/mpi_util.py#L110 Perform a we
diffusion/logger.py:412
↓ 1 callersFunctionnormalize_digraph
(A)
eval/unconstrained/models/stgcnutils/graph.py:166
↓ 1 callersFunctionnormalize_digraph
(A)
eval/a2m/recognition/models/stgcnutils/graph.py:159
↓ 1 callersMethodoptimize
(self, opt: th.optim.Optimizer)
diffusion/fp16_util.py:183
↓ 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_
diffusion/gaussian_diffusion.py:660
↓ 1 callersFunctionparam_grad_or_zeros
(param)
diffusion/fp16_util.py:141
↓ 1 callersMethodparameters_wo_clip
(self)
model/mdm.py:137
↓ 1 callersMethodparse_action
(self, path, return_int=True)
data_loaders/a2m/uestc.py:216
↓ 1 callersFunctionparse_resume_step_from_filename
Parse filenames of the form path/to/modelNNNNNN.pt, where NNNNNN is the checkpoint's number of steps.
train/training_loop.py:447
↓ 1 callersMethodplms_sample
Sample x_{t-1} from the model using Pseudo Linear Multistep. Same usage as p_sample().
diffusion/gaussian_diffusion.py:992
↓ 1 callersMethodplms_sample_loop_progressive
Use PLMS to sample from the model and yield intermediate samples from each timestep of PLMS. Same usage as p_sample_loop_pro
diffusion/gaussian_diffusion.py:1118
↓ 1 callersFunctionplot_xzPlane
(minx, maxx, miny, minz, maxz)
data_loaders/humanml/utils/plot_script.py:47
↓ 1 callersFunctionpolynomial_mmd
(codes_g, codes_r, degree=3, gamma=None, coef0=1, var_at_m=None, ret_var=True)
eval/unconstrained/metrics/kid.py:29
↓ 1 callersFunctionpolynomial_mmd_averages
(codes_g, codes_r, n_subsets=50, subset_size=1000, ret_var=True, output=sys.stdout
eval/unconstrained/metrics/kid.py:8
↓ 1 callersFunctionprecision_and_recall
(generated_features, real_features)
eval/unconstrained/metrics/precision_recall.py:12
← previousnext →201–300 of 683, ranked by callers