MCPcopy Create free account

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

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

Functionlist_cut_average
(ll, intervals)
data_loaders/humanml/utils/plot_script.py:14
Functionload_metrics
(path)
eval/a2m/tools.py:16
Functionload_model_wo_clip
(model, state_dict)
utils/misc.py:64
Functionload_state_dict
Load a PyTorch file without redundant fetches across MPI ranks.
utils/dist_util.py:54
Functionlogkv_mean
The same as logkv(), but if called many times, values averaged.
diffusion/logger.py:221
Functionlogkvs
Log a dictionary of key-value pairs
diffusion/logger.py:228
Functionmatrix_to_axis_angle
Convert rotations given as rotation matrices to axis/angle. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Ret
utils/rotation_conversions.py:434
Functionmatrix_to_rotation_6d
Converts rotation matrices to 6D rotation representation by Zhou et al. [1] by dropping the last row. Note that 6D representation is not uniq
utils/rotation_conversions.py:537
Functionmkdir
(path)
data_loaders/humanml/utils/utils.py:12
Functionmotion_temporal_filter
(motion, sigma=1)
data_loaders/humanml/utils/utils.py:162
Methodnjoints
(self)
data_loaders/humanml/common/skeleton.py:17
Functionno_prior
(*args, **kwargs)
visualize/joints2smpl/src/prior.py:44
Functionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
diffusion/nn.py:100
Functionnormalize_undigraph
(A)
eval/unconstrained/models/stgcnutils/graph.py:177
Functionnormalize_undigraph
(A)
eval/a2m/recognition/models/stgcnutils/graph.py:170
Methodoffset
(self)
data_loaders/humanml/common/skeleton.py:20
Methodp_mean_variance
( self, model, *args, **kwargs )
diffusion/respace.py:90
Methodp_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:489
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:591
Methodp_sample_with_grad
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:543
Methodparents
(self)
data_loaders/humanml/common/skeleton.py:29
Methodplms_sample_loop
Generate samples from the model using Pseudo Linear Multistep. Same usage as p_sample_loop().
diffusion/gaussian_diffusion.py:1076
Functionplot_loss_curve
(losses, save_path, intervals=500)
data_loaders/humanml/utils/utils.py:136
Functionpositional_encoding
(batch_size, dim, pos)
data_loaders/humanml/networks/modules.py:43
Methodpredict
( self, prompt: str = Input(default="the person walked forward and is picking up his t
sample/predict.py:83
Methodprint_logs
(metric, key)
eval/a2m/action2motion/evaluate.py:43
Methodprint_logs
(metric, key)
eval/a2m/stgcn/evaluate.py:57
Methodprocess_xstart
(x)
diffusion/gaussian_diffusion.py:347
Functionprofile
Usage: @profile("my_func") def my_func(): code
diffusion/logger.py:303
Functionqeuler_np
(q, order, epsilon=0, use_gpu=False)
data_loaders/humanml/common/quaternion.py:142
Functionqslerp
q0: starting quaternion q1: ending quaternion t: array of points along the way Returns: Tensor of Slerps: t.shape + q0.shape
data_loaders/humanml/common/quaternion.py:371
Functionquaternion_apply
Apply the rotation given by a quaternion to a 3D point. Usual torch rules for broadcasting apply. Args: quaternion: Tensor of qu
utils/rotation_conversions.py:395
Functionquaternion_multiply
Multiply two quaternions representing rotations, returning the quaternion representing their composition, i.e. the versor with nonnegative re
utils/rotation_conversions.py:362
Functionrandom_rotation
Generate a single random 3x3 rotation matrix. Args: dtype: Type to return device: Device of returned tensor. Default: if Non
utils/rotation_conversions.py:307
Functionrecover_from_rot
(data, joints_num, skeleton)
data_loaders/humanml/scripts/motion_process.py:406
Functionrecover_rot
(data)
data_loaders/humanml/scripts/motion_process.py:422
Methodreparametrize
(mu, logvar)
data_loaders/humanml/networks/trainers.py:232
Methodreport_args
(self, args, name)
train/train_platforms.py:37
Methodreport_args
(self, args, name)
train/train_platforms.py:81
Methodreport_media
(self, title, series, iteration, local_path)
train/train_platforms.py:34
Methodreport_media
(self, title, series, iteration, local_path)
train/train_platforms.py:77
Methodreport_scalar
(self, name, value, iteration, group_name)
train/train_platforms.py:31
Methodreport_scalar
(self, name, value, iteration, group_name=None)
train/train_platforms.py:49
Methodreport_scalar
(self, name, value, iteration, group_name=None)
train/train_platforms.py:74
Functionreset
()
diffusion/logger.py:479
Methodsample
(self, model, shape, **kargs)
utils/sampler_util.py:47
Methodsave_checkpoint
()
train/training_loop.py:403
Functionsave_images
(visuals, image_path)
data_loaders/humanml/utils/utils.py:92
Functionsave_images_test
(visuals, image_path, from_name, to_name)
data_loaders/humanml/utils/utils.py:102
Functionsave_logfile
(log_loss, save_path)
data_loaders/humanml/utils/utils.py:27
Functionscale_module
Scale the parameters of a module and return it.
diffusion/nn.py:78
Functionscoped_configure
(dir=None, format_strs=None, comm=None)
diffusion/logger.py:487
Functionset_comm
(comm)
diffusion/logger.py:277
Functionset_level
Set logging threshold on current logger.
diffusion/logger.py:270
Methodsetup
(self)
sample/predict.py:54
Functionsetup_dist
Setup a distributed process group.
utils/dist_util.py:18
Methodshort_cut
(self, querys, keys)
data_loaders/humanml/networks/modules.py:263
Methodstate_dict_to_master_params
(self, state_dict)
diffusion/fp16_util.py:231
Methodsummary_val
(k, v)
diffusion/logger.py:172
Functionsync_params
Synchronize a sequence of Tensors across ranks from rank 0.
utils/dist_util.py:61
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
Methodto_np_cpu
(x)
diffusion/gaussian_diffusion.py:1362
Functionto_numpy
(tensor)
utils/misc.py:38
Methodtrain
(self, train_dataloader, val_dataloader, plot_eval)
data_loaders/humanml/networks/trainers.py:119
Methodtrain
(self, train_dataloader, val_dataloader)
data_loaders/humanml/networks/trainers.py:790
Methodtrain
(self, train_dataloader, val_dataloader)
data_loaders/humanml/networks/trainers.py:999
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:1224
Methodtraining_losses
( self, model, *args, **kwargs )
diffusion/respace.py:95
Functiontraj_global2vel
(traj_positions, traj_rot)
data_loaders/humanml/scripts/motion_process.py:554
Functionupdate
(index)
data_loaders/humanml/utils/plot_script.py:100
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:143
Methodvelocity_consistency_loss_humanml3d
(self, target, model_output)
diffusion/gaussian_diffusion.py:1477
Functionwarn
(*args)
diffusion/logger.py:262
Methodwatch_model
(self, *args, **kwargs)
train/train_platforms.py:84
Methodweights
(self)
diffusion/resample.py:66
Methodweights
(self)
diffusion/resample.py:134
Methodwritekvs
(self, kvs)
diffusion/logger.py:48
Methodwritekvs
(self, kvs)
diffusion/logger.py:102
Methodwritekvs
(self, kvs)
diffusion/logger.py:119
Methodwritekvs
(self, kvs)
diffusion/logger.py:171
Methodwriteseq
(self, seq)
diffusion/logger.py:84
Functionzero_module
Zero out the parameters of a module and return it.
diffusion/nn.py:69
← previous601–683 of 683, ranked by callers