MCPcopy Create free account

hub / github.com/afford-motion/afford-motion / functions

Functions504 in github.com/afford-motion/afford-motion

↓ 1 callersMethod_load_split_ids
(self)
datasets/motionx.py:463
↓ 1 callersMethod_load_split_ids
(self)
datasets/motionx.py:744
↓ 1 callersMethod_make_ctx
(self, in_planes, planes)
models/cdm.py:236
↓ 1 callersMethod_predict_xstart_from_xprev
(self, x_t, t, xprev)
diffusion/gaussian_diffusion.py:336
↓ 1 callersMethod_prepare_statistics
Prepare statistics for normalization
datasets/motionx.py:121
↓ 1 callersMethod_prepare_statistics
Prepare the statistics for normalization
datasets/motionx.py:512
↓ 1 callersMethod_prepare_statistics
Prepare statistics for normalization
datasets/motionx.py:796
↓ 1 callersMethod_prepare_statistics
Prepare the statistics of the dataset
datasets/humanml3d.py:129
↓ 1 callersMethod_prepare_statistics
Prepare the statistics for normalization
datasets/humanml3d.py:426
↓ 1 callersMethod_prepare_statistics
Prepare the statistics of the dataset
datasets/humanml3d.py:691
↓ 1 callersMethod_rotate_half
(x)
models/modules.py:197
↓ 1 callersMethod_save
Save model and optimizer state.
utils/training.py:92
↓ 1 callersMethod_save
Save model and optimizer state.
utils/training.py:271
↓ 1 callersFunction_transform_smplx_from_origin_to_sampled_position
Convert original smplx parameters to transformed smplx parameters Args: sampled_trans: sampled valid position sample
prepare/datasets/HUMANISE/HUMANISE.py:83
↓ 1 callersMethod_warmed_up
(self)
diffusion/resample.py:159
↓ 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:46
↓ 1 callersFunctionbuild_evaluators
(opt)
utils/eval/evaluator_wrapper.py:97
↓ 1 callersFunctionbuild_models
(opt)
utils/eval/evaluator_wrapper.py:7
↓ 1 callersFunctionbuild_ours_evaluators
(opt)
utils/eval/evaluator_wrapper.py:194
↓ 1 callersFunctioncalculate_diversity
(activation, diversity_times)
utils/eval/metrics.py:73
↓ 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
utils/eval/metrics.py:95
↓ 1 callersFunctioncalculate_multimodality
(activation, multimodality_times)
utils/eval/metrics.py:84
↓ 1 callersFunctionchamfer_distance
Chamfer distance between two point clouds Reference: https://gist.github.com/sergeyprokudin/c4bf4059230da8db8256e36524993367 Parameters --
prepare/generate_contact_data.py:261
↓ 1 callersFunctioncollect_one_scene_data_label
(scene_name)
prepare/generate_target_object_mask.py:118
↓ 1 callersFunctioncompute_dist_to_obj
(points, body_verts, body_faces)
utils/evaluate.py:460
↓ 1 callersFunctioncompute_pairwise_distance
(x)
utils/evaluate.py:429
↓ 1 callersFunctioncompute_physics
(points, body_verts, body_faces, contact_threshold=0.05)
utils/evaluate.py:436
↓ 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:357
↓ 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
diffusion/gaussian_diffusion.py:372
↓ 1 callersFunctionconvert_smplx_to_pos_and_aug
Convert raw smplx representation to pos representation (for HumanML3D dataset)
prepare/smplx_to_vec.py:18
↓ 1 callersFunctioncreate_evaluator
Create evaluator Args: cfg: configuration dict Returns: Evaluator
utils/evaluate.py:522
↓ 1 callersFunctioncreate_gaussian_diffusion
Create gaussian diffusion Args: cfg: configuration dict Return: Diffusion model
models/base.py:20
↓ 1 callersFunctioncreate_model
Create model according to the configuration Args: cfg: configuration dict Return: Model for prediction
models/base.py:9
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
diffusion/gaussian_diffusion.py:538
↓ 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:660
↓ 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 callersMethodempty_kv_cache
(self, x)
models/modules.py:493
↓ 1 callersMethodeval_apd
Evaluate APD
utils/evaluate.py:373
↓ 1 callersFunctioneval_humanml
(samples, k_samples, dataloader, device='cpu')
utils/eval/eval_humanml.py:164
↓ 1 callersMethodeval_humanml
Evaluate HumanML metrics
utils/evaluate.py:388
↓ 1 callersMethodeval_physics
Evaluate physics, including non-collision and contact and dist
utils/evaluate.py:336
↓ 1 callersMethodevaluate
(self, *args, **kwargs)
utils/evaluate.py:24
↓ 1 callersFunctionevaluate_diversity
(activation_dict, diversity_times)
utils/eval/eval_humanml.py:77
↓ 1 callersFunctionevaluate_fid
(eval_wrapper, groundtruth_loader, activation_dict)
utils/eval/eval_humanml.py:52
↓ 1 callersFunctionevaluate_matching_score
(eval_wrapper, motion_loaders)
utils/eval/eval_humanml.py:8
↓ 1 callersFunctionevaluate_multimodality
(eval_wrapper, mm_motion_loaders, mm_num_times)
utils/eval/eval_humanml.py:86
↓ 1 callersMethodforward
(self, x)
diffusion/nn.py:14
↓ 1 callersMethodforward
(self, x, x_mask=None, *args, **kwargs)
utils/joints_to_smplx.py:92
↓ 1 callersFunctionframe2gif
Convert image frames to gif, use PIL to implement the convertion. Args: frames: a image list or a image directory gif: save path
utils/visualize.py:411
↓ 1 callersMethodget_co_embeddings
(self, word_embs, pos_ohot, cap_lens, motions, m_lens)
utils/eval/evaluator_wrapper.py:254
↓ 1 callersFunctionget_gen_dataset_loader
(samples, k_samples, dataloader, batch_size=32)
utils/eval/get_data.py:206
↓ 1 callersFunctionget_h3d_eval_dataloader
(gt_loader, batch_size, eval_data_folder, mm_eval_data_folder)
h3d_eval/eval_h3d_dataset_offline.py:159
↓ 1 callersFunctionget_raw2scannet_label_map
()
prepare/generate_target_object_mask.py:99
↓ 1 callersMethodjoints_to_smplx_mesh
Convert joints to SMPL-X mesh verts Args: joints: joints position sequence (b, l, j * 3) joints_mask: sequence mask
utils/evaluate.py:261
↓ 1 callersFunctionload_humanise
Load humanise dataset Args: min_horizon: minimum horizon for motion sequence max_horizon: maximum horizon for motion sequence
prepare/generate_target_object_mask.py:12
↓ 1 callersMethodload_pretrained_weight
(self, weight_path: str)
models/scene_models/pointtransformer.py:203
↓ 1 callersFunctionload_scene_model
Load scene model Args: model_name: Scene model name. model_dim: Scene model dimension. num_points: Number of points.
models/functions.py:96
↓ 1 callersFunctionmain
Main function Args: cfg: configuration dict
train.py:54
↓ 1 callersFunctionmain
Main function Args: cfg: configuration dict
test.py:141
↓ 1 callersFunctionmain
Main function Args: cfg: configuration dict
train_ddp.py:18
↓ 1 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
↓ 1 callersMethodnormalize
Normalize pose sequence Args: pose_seq: a numpy array of pose sequence Return: Normalized p
utils/eval/get_data.py:71
↓ 1 callersMethodnormalize
Normalize the contact map Args: contact: the contact map to be normalized Returns: normalized contact map
datasets/motionx.py:565
↓ 1 callersMethodnormalize
Normalize the motion Args: motion: motion data to be normalized Return: Normalized motion
datasets/motionx.py:838
↓ 1 callersMethodnormalize
Normalize the contact map Args: contact: the contact map to be normalized Returns: normalized contact map
datasets/humanml3d.py:483
↓ 1 callersMethodnormalize
Normalize the motion Args: motion: motion data to be normalized Return: Normalized motion
datasets/humanml3d.py:715
↓ 1 callersFunctionoptimize_params_with_joints
Optimize the body parameters with given joints Args: body_model: SMPLXLayer joints: <nframes, 22, 3> or <nframes, 66> in
utils/misc.py:78
↓ 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
diffusion/gaussian_diffusion.py:396
↓ 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:488
↓ 1 callersFunctionplot3D
(joints, color=None, linewidth=0.01)
utils/visualize.py:254
↓ 1 callersFunctionprocess
Process motion-condition pairs Args: motions: motion data scene_data: scene data num_points: number of points for ea
prepare/generate_contact_data.py:361
↓ 1 callersMethodprocess
(self)
prepare/datasets/PROX/PROX.py:50
↓ 1 callersMethodq_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initi
diffusion/gaussian_diffusion.py:189
↓ 1 callersFunctionread_ply_xyzrgb
read XYZRGB point cloud from filename PLY file
prepare/generate_target_object_mask.py:41
↓ 1 callersFunctionrecover_from_ric
(data, joints_num)
visualize_h3d.py:89
↓ 1 callersFunctionrecover_root_rot_pos
(data)
visualize_h3d.py:68
↓ 1 callersFunctionrecover_root_rot_pos
(data)
utils/visualize.py:470
↓ 1 callersFunctionrender_meshes_to_animation
Render meshes to videos Args: save_dir: directory to save videos meshes: meshes to render appendix_meshes: appendix mesh
visualize_h3d.py:106
↓ 1 callersFunctionrender_meshes_to_animation
Render meshes to videos Args: save_dir: directory to save videos meshes: meshes to render appendix_meshes: appendix mesh
visualize.py:26
↓ 1 callersFunctionrendering
(file_path, save_path, render_joint=False)
visualize_h3d.py:173
↓ 1 callersFunctionrendering
(file_path, save_path, render_joint=False)
visualize.py:81
↓ 1 callersFunctionreparameterize
(mu, logvar)
utils/eval/modules.py:35
↓ 1 callersMethodreport
(self, *args, **kwargs)
utils/evaluate.py:27
↓ 1 callersFunctionresynthesize_description
Open-vocabulary?
prepare/generate_contact_data.py:155
↓ 1 callersFunctionsave_meshes
(meshes, prefix, basename)
visualize_h3d.py:208
↓ 1 callersFunctionsave_meshes
(meshes, prefix, basename, render_joint=False)
visualize.py:126
↓ 1 callersFunctionsmplx_to_vec
Convert raw smplx representation to specific vector representation Args: smplx: A tuple containing motion sequence and betas dat
prepare/smplx_to_vec.py:69
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
diffusion/respace.py:8
↓ 1 callersFunctionsplit_HUMANISE
()
prepare/split.py:8
↓ 1 callersFunctionsplit_HumanML3D
(train_ratio=0.8)
prepare/split.py:52
↓ 1 callersFunctionsplit_PROX
()
prepare/split.py:30
↓ 1 callersFunctiontest
Begin testing with this function Args: cfg: configuration dict
test.py:14
↓ 1 callersFunctiontest
()
utils/joints_to_smplx.py:305
↓ 1 callersFunctiontime_str
Generate a time string Args: Y, m, d, H, M, S: create year or not, default is True Return: time string
utils/io.py:18
↓ 1 callersFunctiontrain
Begin training with this function Args: cfg: configuration dict
train.py:15
↓ 1 callersFunctionuniform_sampling
(batch_size: int, device: th.device, ddpm_steps: int)
diffusion/resample.py:7
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using lo
diffusion/resample.py:113
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
diffusion/resample.py:41
Method__call__
(self, x, ts, **kwargs)
diffusion/respace.py:124
Method__call__
(self, data: Dict, *args: List, **kwargs: Dict)
datasets/transforms.py:13
← previousnext →101–200 of 504, ranked by callers