MCPcopy Create free account

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

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

Methodforward
Forward pass of the model. Args: x: input motion, [bs, seq_len, motion_dim] kwargs: other inputs, e.g., contact, tex
models/cmdm.py:118
Methodforward
(self, x)
models/modules.py:34
Methodforward
(self, timesteps)
models/modules.py:52
Methodforward
(self, p: torch.Tensor, x: torch.Tensor, )
models/modules.py:97
Methodforward
(self, p: torch.Tensor, x: torch.Tensor, )
models/modules.py:152
Methodforward
(self, *args, **kwargs)
models/modules.py:228
Methodforward
... :param x_q: Query input of shape (B, N, D) where B is the batch size, N the query sequence length and D the number of que
models/modules.py:301
Methodforward
Pre-layer-norm cross-attention of query input `x_q` to key/value input (`x_kv` or `x_kv_prefix`). If `x_kv_prefix` is defined, the entire key
models/modules.py:415
Methodforward
Pre-layer-norm self-attention of input `x`.
models/modules.py:473
Methodforward
(self, *args, kv_cache: Optional[KVCache] = None, **kwargs)
models/modules.py:498
Methodforward
( self, x: torch.Tensor, pad_mask: Optional[torch.Tensor] = None, rot_pos_emb:
models/modules.py:621
Methodforward
(self, x)
models/modules.py:660
Methodforward
(self, point_feat: torch.Tensor)
models/cdm.py:33
Methodforward
Forward pass of the ContactMLP. Args: x: input contact map, [bs, num_points, contact_dim] point_feat: [bs, num_point
models/cdm.py:57
Methodforward
Forward pass of the ContactMLP. Args: x: input contact map, [bs, num_points, contact_dim] point_feat: [bs, num_point
models/cdm.py:155
Methodforward
Forward pass of the ContactMLP. Args: x: input contact map, [bs, num_points, contact_dim] point_feat: [bs, num_point
models/cdm.py:245
Methodforward
Forward pass of the ContactMLP. Args: x: input contact map, [bs, num_points, contact_dim] point_feat: [bs, num_point
models/cdm.py:358
Methodforward
Forward pass of the model. Args: x: input contact map, [bs, num_points, contact_dim] kwargs: other inputs, e
models/cdm.py:474
Methodforward
(self, pxo)
models/scene_models/pointtransformer.py:26
Methodforward
(self, pxo)
models/scene_models/pointtransformer.py:53
Methodforward
(self, pxo1, pxo2=None)
models/scene_models/pointtransformer.py:82
Methodforward
(self, pxo)
models/scene_models/pointtransformer.py:115
Methodforward
(self, pxo)
models/scene_models/pointtransformer.py:166
Methodforward
(self, pxo)
models/scene_models/pointtransformer.py:242
Methodforward
input: xyz: (n, 3), offset: (b), new_offset: (b) output: idx: (m)
models/scene_models/pointops.py:12
Methodforward
input: xyz: (n, 3), new_xyz: (m, 3), offset: (b), new_offset: (b) output: idx: (m, nsample), dist2: (m, nsample)
models/scene_models/pointops.py:32
Methodforward
input: input: (n, c), idx : (m, nsample) output: (m, nsample, c)
models/scene_models/pointops.py:50
Methodforward
input: input1: (n, c), input2: (n, c), idx: (n, nsample) output: (n, nsample, c)
models/scene_models/pointops.py:105
Methodforward
input: input: (n, c), position: (n, nsample, c), weight : (n, nsample, c'), idx: (n, nsample) output: (n, c)
models/scene_models/pointops.py:135
Methodforward
input: xyz: (m, 3), new_xyz: (n, 3), input: (m, c), offset: (b), new_offset: (b) output: (n, c)
models/scene_models/pointops.py:183
Methodget_co_embeddings
(self, word_embs, pos_ohot, cap_lens, motions, m_lens)
utils/eval/evaluator_wrapper.py:61
Methodget_co_embeddings
(self, word_embs, pos_ohot, cap_lens, motions, m_lens)
utils/eval/evaluator_wrapper.py:156
Methodget_dataloader
Get dataloader
datasets/motionx.py:560
Methodget_dataloader
Get dataloader
datasets/motionx.py:833
Methodget_dataloader
Get dataloader
datasets/humanml3d.py:134
Methodget_dataloader
Get dataloader
datasets/humanml3d.py:478
Methodget_dataloader
Get dataloader
datasets/humanml3d.py:710
Methodget_init_hidden
(self, latent)
utils/eval/modules.py:167
Methodget_init_hidden
(self, latent)
utils/eval/modules.py:211
Functionget_joints_from_smplx
(body_model_neutral, param)
utils/misc.py:42
Methodget_motion_embeddings
(self, motions, m_lens)
utils/eval/evaluator_wrapper.py:82
Methodget_motion_embeddings
(self, motions, m_lens)
utils/eval/evaluator_wrapper.py:177
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the lim
diffusion/gaussian_diffusion.py:19
Functionget_padding_mask
(batch_size, seq_len, cap_lens)
utils/eval/modules.py:54
Functioninit_weight
(m)
utils/eval/modules.py:27
Functioninner
(*args, **kwargs)
utils/io.py:55
Functioninterpolation
input: xyz: (m, 3), new_xyz: (n, 3), feat: (m, c), offset: (b), new_offset: (b) output: (n, c)
models/scene_models/pointops.py:164
Methodis_vb
(self)
diffusion/gaussian_diffusion.py:98
Functionlinear
Create a linear module.
diffusion/nn.py:36
Functionload_humanise
Load humanise dataset Args: min_horizon: minimum horizon for motion sequence max_horizon: maximum horizon for motion sequence
prepare/generate_contact_data.py:144
Functionload_humanml3d
Process humanml3d dataset Args: min_horizon: minimum horizon for motion sequence max_horizon: maximum horizon for motion sequenc
prepare/generate_contact_data.py:69
Methodload_pretrained_weight
(self, weight_path: str)
models/scene_models/pointtransformer.py:273
Functionload_prox
Load prox dataset Args: min_horizon: minimum horizon for motion sequence max_horizon: maximum horizon for motion sequence
prepare/generate_contact_data.py:206
Functionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
diffusion/nn.py:100
Methodnum_groups
(self)
models/modules.py:78
Methodnum_groups
(self)
models/modules.py:141
Methodnum_groups
(self)
models/cdm.py:217
Methodnum_groups
(self)
models/cdm.py:330
Methodnum_groups
(self)
models/scene_models/pointtransformer.py:147
Methodnum_groups
(self)
models/scene_models/pointtransformer.py:231
Methodp_mean_variance
( self, model, *args, **kwargs )
diffusion/respace.py:89
Methodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
diffusion/gaussian_diffusion.py:442
Functionpadding_motions
Pad a batch motion sequence to the same length
utils/joints_to_smplx.py:34
Methodparse_resume_step_from_filename
(path)
utils/training.py:57
Methodparse_resume_step_from_filename
(path)
utils/training.py:236
Functionpcd_to_cubes
Convert point cloud to cubes Args: xyz: point cloud, <N, 3> Return: Cube mesh list
utils/visualize.py:287
Functionpositional_encoding
(batch_size, dim, pos)
utils/eval/modules.py:43
Methodprocess
(self)
prepare/datasets/dataset.py:16
Methodprocess
(self)
prepare/datasets/HUMANISE/HUMANISE.py:25
Methodprocess
(self)
prepare/datasets/HumanML3D/HumanML3D.py:26
Methodprocess_xstart
(x)
diffusion/gaussian_diffusion.py:294
Methodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of dif
diffusion/gaussian_diffusion.py:172
Functionqueryandgroup
input: xyz: (n, 3), new_xyz: (m, 3), feat: (n, c), idx: (m, nsample), offset: (b), new_offset: (b) output: new_feat: (m, c+3, nsample), group
models/scene_models/pointops.py:79
Functionrand_str
Generate a random string with the given length Args: length: length of the random string Return: random string
utils/io.py:7
Methodregister
Register the given object under the the name `obj.__name__`. Can be used as either a decorator or not. See docstring of this class fo
utils/registry.py:52
Functionrender_mesh_with_contact_map
Render mesh with contact map Args: save_path: save path mesh: mesh to render camera_pose: camera pose
utils/visualize.py:305
Methodreport
Report evaluation results Args: save_dir: save directory
utils/evaluate.py:225
Methodreport
Report evaluation results Args: save_dir: save directory
utils/evaluate.py:409
Methodrun_loop
(self)
utils/training.py:290
Methodsample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
diffusion/resample.py:48
Functionscale_module
Scale the parameters of a module and return it.
diffusion/nn.py:78
Methodshort_cut
(self, querys, keys)
utils/eval/modules.py:263
Functionsingleton
(cls)
utils/io.py:52
Functiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may b
diffusion/nn.py:110
Functiontrain
()
utils/joints_to_smplx.py:216
Methodtraining_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...
diffusion/gaussian_diffusion.py:745
Methodtraining_losses
( self, model, *args, **kwargs )
diffusion/respace.py:94
Functionupdate_ema
Update target parameters to be closer to those of source parameters using an exponential moving average. :param target_params: the targe
diffusion/nn.py:56
Methodupdate_with_all_losses
(self, ts, losses)
diffusion/resample.py:149
Methodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspo
diffusion/resample.py:77
Functionvisualize
(motions, scene_data)
prepare/generate_contact_data.py:489
Methodvisualize
Visualize samples Args: samples: samples to visualize save_dir: directory to save samples
utils/visualize.py:39
Methodvisualize
Visualize samples Args: save_dir: directory to save samples samples: samples to visualize
utils/visualize.py:85
Methodvisualize
Visualize samples Args: save_dir: directory to save samples samples: samples to visualize
utils/visualize.py:186
Functionvisualize_contact_map
Visualize contact map on scene point cloud Args: xyz: scene point cloud xyz rgb: scene point cloud rgb contact: cont
prepare/generate_contact_data.py:301
Functionvisualize_joints
(joints, mask, scene_path, scene_trans, pc_xyz)
utils/evaluate.py:533
Functionvisualize_partial_scene
Visualize partial scene and skeleton Args: partial_scene: partial scene point cloud pose_seq: pose sequence scene_tr
prepare/generate_contact_data.py:332
Methodvisualize_rec
Visualize reconstruction results Args: x: grount truth data rec_x: reconstruction data save_dir: directo
utils/visualize.py:126
Functionvisualize_smplx
(body_verts, body_faces, scene_path, scene_trans, pc_xyz)
utils/evaluate.py:557
Methodweights
(self)
diffusion/resample.py:72
← previousnext →401–500 of 504, ranked by callers