MCPcopy Create free account

hub / github.com/chrdiller/characteristic3dposes / functions

Functions77 in github.com/chrdiller/characteristic3dposes

↓ 5 callersMethodload_state_dict
(self, state_dict)
characteristic3dposes/ops/misc.py:67
↓ 4 callersMethod__init__
(self, sigma: int, num_dims=1)
characteristic3dposes/ops/loss.py:43
↓ 4 callersFunctionrender_skeleton
Render a skeleton, defined by its xyz coordinates in a nx3 numpt array and corresponding properties in skeleton_cls :param skeleton: A nx3 n
characteristic3dposes/ops/render.py:66
↓ 4 callersFunctionscaling_fun
Scale a given heatmap with the given strategy and temperature :param heatmap: Tensor of any dimensionality to be scaled :param strategy:
characteristic3dposes/ops/sampling.py:5
↓ 4 callersMethodstate_dict
(self)
characteristic3dposes/ops/misc.py:70
↓ 3 callersFunctionmpjpe
Calculate the mpjpe (l2) between 3D prediction and target vectors with numpy :param prediction: Predicted samples, as num_samples x 3 :p
characteristic3dposes/ops/loss.py:9
↓ 2 callersMethod__init__
(self, d_embedding, n_head, d_k, d_v, num_out_joints, dropout=0.1)
characteristic3dposes/model/attention.py:52
↓ 2 callersFunctioncalculate_bone_lengths
(joints, skeleton_cls)
characteristic3dposes/refine.py:28
↓ 2 callersFunctioncalculate_cos_angles
(joints, skeleton_cls)
characteristic3dposes/refine.py:32
↓ 2 callersFunctionrefine_skeleton
Refine a predicted skeleton, based on its input skeleton, the heatmap, and the given weights :param predicted_skeleton: The predicted skeleto
characteristic3dposes/refine.py:73
↓ 2 callersFunctionsample_ids
(containing: str = None)
characteristic3dposes/data/h36m/__init__.py:5
↓ 2 callersFunctionsample_ids
(containing: str = None, excluding_actions: List[str] = [])
characteristic3dposes/data/grab/__init__.py:5
↓ 2 callersFunctionval_epoch
Validation, once every epoch :param model: The model being trained :param data: The dataloader, in val mode :param heatmap_criterion
characteristic3dposes/train.py:87
↓ 1 callersMethod__init__
(self, d_model, seq_len=25)
characteristic3dposes/model/main.py:16
↓ 1 callersMethod_update_learning_rate
(self)
characteristic3dposes/ops/misc.py:73
↓ 1 callersFunctionangle_error
(joints, input_cos_angles, skeleton_cls)
characteristic3dposes/refine.py:46
↓ 1 callersMethodbackward
(self)
characteristic3dposes/ops/sampling.py:79
↓ 1 callersFunctionbone_length_error
(joints, input_bone_lengths, skeleton_cls)
characteristic3dposes/refine.py:41
↓ 1 callersFunctioncloseness_term
(joints, input_joints)
characteristic3dposes/refine.py:55
↓ 1 callersFunctioncos_angle_between
(v1, v2)
characteristic3dposes/refine.py:24
↓ 1 callersFunctiondiversity
Calculate the diversity between all k sampled predictions :param path: Path containing outputs from sample.py: results/ and, if refined, ref
characteristic3dposes/evaluate.py:81
↓ 1 callersFunctionend_effector_error
(joints, end_effectors, skeleton_cls)
characteristic3dposes/refine.py:51
↓ 1 callersMethodfrom_32
(skeleton: np.array)
characteristic3dposes/data/h36m/constants.py:79
↓ 1 callersFunctionheatmap_error
(joints, heatmap, skeleton_cls)
characteristic3dposes/refine.py:36
↓ 1 callersFunctionhsv_to_rgb
Easy-to-use HSV to RGB color space transformation :param h: Hue :param s: Saturation :param v: Value :return: The RGB equivalent
characteristic3dposes/ops/render.py:13
↓ 1 callersFunctionjoints_to_heatmap_indices
(joints)
characteristic3dposes/refine.py:20
↓ 1 callersFunctionmain
Start training. The configuration can be found in config.yaml and will be parsed by hydra :param conf: The configuration, populated by hydra
characteristic3dposes/train.py:149
↓ 1 callersFunctionmain
Start sampling given experiment (either grab or h36m) with the given base_path :param experiment: The experiment to sample: grab or h36m, ha
characteristic3dposes/sample.py:106
↓ 1 callersFunctionmain
Run refinement of which will improve the quality of predicted skeletons by enforcing constraints on bone lengths, joint angles, end effector
characteristic3dposes/refine.py:105
↓ 1 callersFunctionmain
Start evaluation: Qualitatively by rendering skeleton predictions; quantitatively by calculating mpjpe and diversity :param experiment: The e
characteristic3dposes/evaluate.py:155
↓ 1 callersFunctionmain
Generate the characteristic 3d pose data from the Human3.6M dataset Instruction on how to download and extract Human3.6M data are in README.m
data_generation/h36m/generate_npz.py:12
↓ 1 callersFunctionmain
Generate a numpy npz file containing the xyz joint locations of all characteristic 3d poses in our dataset :param input_path: The path conta
data_generation/grab/generate_npz.py:41
↓ 1 callersFunctionmpjpe_eval
Calculate the top-1 mpjpe :param path: Path containing outputs from sample.py: results/ and, if refined, refined/ :param sample_ids: Lis
characteristic3dposes/evaluate.py:121
↓ 1 callersFunctionrender_skeletons
Render input, predicted, and target skeletons using pyrender :param path: Path containing outputs from sample.py: results/ and, if refined,
characteristic3dposes/evaluate.py:14
↓ 1 callersFunctionrotation_matrix_from_vectors
Find the rotation matrix that aligns vec1 to vec2 :param vec1: A 3d "source" vector :param vec2: A 3d "destination" vector :return A
characteristic3dposes/ops/render.py:44
↓ 1 callersFunctionsample_steps
Sample from predicted heatmaps, sample by sample :param models: A dict of models for right hand, left hand, and rest of the body; checkpoint
characteristic3dposes/sample.py:18
↓ 1 callersMethodstep_and_update_lr
(self)
characteristic3dposes/ops/misc.py:60
↓ 1 callersFunctionsummarize_model
Generates a string, summarizing a pytorch model for an easy overview over sub-modules and parameter count :param model: The pytorch model (s
characteristic3dposes/ops/misc.py:5
↓ 1 callersFunctiontrain_epoch
Training, once every epoch :param model: The model being trained :param data: The dataloader, in train mode :param heatmap_criterion
characteristic3dposes/train.py:18
↓ 1 callersMethodzero_grad
(self)
characteristic3dposes/ops/misc.py:64
Method__getitem__
(self, index)
characteristic3dposes/data/h36m/dataset.py:58
Method__getitem__
(self, index)
characteristic3dposes/data/grab/dataset.py:61
Method__init__
(self, keep_joints=False)
characteristic3dposes/ops/loss.py:27
Method__init__
Initialize the PoseHeatMapCriterion :param conf: The full training configuration :param small: Whether this criterion is use
characteristic3dposes/ops/loss.py:74
Method__init__
(self, heatmap_resolution: int)
characteristic3dposes/ops/loss.py:144
Method__init__
Initialize the HeatmapOffsetCriterion :param conf: The full training configuration
characteristic3dposes/ops/loss.py:174
Method__init__
(self, optimizer, final_lr, n_warmup_steps)
characteristic3dposes/ops/misc.py:54
Method__init__
Initializes the JointSampler: Construct box filter, set parameters :param heatmap_resolution: The spatial resolution of the heatmap,
characteristic3dposes/ops/sampling.py:29
Method__init__
(self, n_head, d_embedding, d_k, d_v, num_out_joints=1, dropout=0.1)
characteristic3dposes/model/attention.py:7
Method__init__
(self, dim_embedding, p_dropout, attention_params, num_out_joints)
characteristic3dposes/model/attention.py:64
Method__init__
Build the model for characteristic 3d pose prediction, consisting of an encoder, attention module, and volumetric decoder :param con
characteristic3dposes/model/main.py:38
Method__init__
Characteristic Pose dataset, built on top of Human3.6M :param phase: The experiment phase: train, val, test. Affects: sample ids, au
characteristic3dposes/data/h36m/dataset.py:25
Method__init__
Characteristic Pose dataset, built on top of GRAB :param phase: The experiment phase: train, val, test. Affects: sample ids, augment
characteristic3dposes/data/grab/dataset.py:26
Method__len__
(self)
characteristic3dposes/data/h36m/dataset.py:55
Method__len__
(self)
characteristic3dposes/data/grab/dataset.py:58
Functionaction_ids_for_subject
(subject: str)
characteristic3dposes/data/h36m/__init__.py:24
Functionaction_ids_for_subject
(subject: str)
characteristic3dposes/data/grab/__init__.py:25
Methodforward
(self, prediction: torch.Tensor, target: torch.Tensor)
characteristic3dposes/ops/loss.py:31
Methodforward
(self, x)
characteristic3dposes/ops/loss.py:60
Methodforward
(self, predicted_volume: torch.Tensor, target_skeleton: torch.Tensor, volume_center=None, return_target_volume
characteristic3dposes/ops/loss.py:108
Methodforward
(self, input_skeleton: torch.Tensor, volume_center: torch.Tensor = None)
characteristic3dposes/ops/loss.py:148
Methodforward
(self, offsets, target_skeleton, predicted_heatmap, target_heatmap, volume_center=None)
characteristic3dposes/ops/loss.py:191
Methodforward
Sample from given heatmap and add offsets (No batching, only single heatmap). Sample k samples. Volume will be centered at volume_center or a
characteristic3dposes/ops/sampling.py:45
Methodforward
(self, q, k, v, mask=None)
characteristic3dposes/model/attention.py:22
Methodforward
(self, q, kv, mask=None)
characteristic3dposes/model/attention.py:57
Methodforward
(self, joints, poses, previous_joints, action_feature, mask=None, return_attns=False)
characteristic3dposes/model/attention.py:74
Methodforward
(self, x)
characteristic3dposes/model/main.py:29
Methodforward
(self, input_skeletons: torch.Tensor, input_joint_indices: List, previous_joints: torch.Tensor)
characteristic3dposes/model/main.py:131
Functionmake_one_hot
Creates a 1D vector filled with zeros with given size and a one at given idx :param idx: Where to place the one :param size: 1D size of
characteristic3dposes/data/h36m/dataset.py:10
Functionmake_one_hot
Creates a 1D vector filled with zeros with given size and a one at given idx :param idx: Where to place the one :param size: 1D size of
characteristic3dposes/data/grab/dataset.py:11
Functionobjective_func
(x, end_effectors, input_skeleton, heatmap, input_bone_lengths, input_cos_angles, weights, skeleton_cls)
characteristic3dposes/refine.py:60
Functionsample_ids_for_subjects
(subjects: List[str])
characteristic3dposes/data/h36m/__init__.py:17
Functionsample_ids_for_subjects
(subjects: List[str])
characteristic3dposes/data/grab/__init__.py:18
Functionsplit_sample_id
(sample_id: str)
characteristic3dposes/data/h36m/__init__.py:28
Functionsplit_sample_id
(sample_id: str)
characteristic3dposes/data/grab/__init__.py:29
Functionsubject_ids
()
characteristic3dposes/data/h36m/__init__.py:13
Functionsubject_ids
()
characteristic3dposes/data/grab/__init__.py:14