MCPcopy Create free account

hub / github.com/MotrixLab/MotionDiffuse / functions

Functions231 in github.com/MotrixLab/MotionDiffuse

↓ 1 callersFunctionprint_current_loss
(start_time, niter_state, losses, epoch=None, inner_iter=None)
text2motion/utils/utils.py:36
↓ 1 callersFunctionprocess_file
Uniform Skeleton
text2motion/utils/motion_process.py:169
↓ 1 callersMethodq_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
text2motion/models/gaussian_diffusion.py:382
↓ 1 callersFunctionqbetween
find the quaternion used to rotate v0 to v1
text2motion/utils/quaternion.py:387
↓ 1 callersFunctionqpow
q0 : tensor of quaternions t: tensor of powers
text2motion/utils/quaternion.py:344
↓ 1 callersFunctionquaternion_to_cont6d
(quaternions)
text2motion/utils/quaternion.py:314
↓ 1 callersFunctionquaternion_to_matrix_np
(quaternions)
text2motion/utils/quaternion.py:303
↓ 1 callersFunctionreparameterize
(mu, logvar)
text2motion/datasets/evaluator_models.py:35
↓ 1 callersMethodreset_max_len
(self, length)
text2motion/datasets/evaluator.py:215
↓ 1 callersMethodsample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
text2motion/models/gaussian_diffusion.py:47
↓ 1 callersMethodset_offset
(self, offsets)
text2motion/utils/skeleton.py:23
↓ 1 callersFunctionset_requires_grad
Set requies_grad for all the networks. Args: nets (nn.Module | list[nn.Module]): A list of networks or a single network.
text2motion/models/transformer.py:35
↓ 1 callersMethodstep
(opt_list)
text2motion/trainers/ddpm_trainer.py:63
↓ 1 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
text2motion/models/transformer.py:15
↓ 1 callersMethodtrain_mode
(self)
text2motion/trainers/ddpm_trainer.py:150
↓ 1 callersMethodtraining_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...
text2motion/models/gaussian_diffusion.py:978
↓ 1 callersFunctionuniform_skeleton
(positions, target_offset)
text2motion/utils/motion_process.py:13
↓ 1 callersMethodupdate
(self)
text2motion/trainers/ddpm_trainer.py:136
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using los
text2motion/models/gaussian_diffusion.py:109
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
text2motion/models/gaussian_diffusion.py:41
↓ 1 callersMethodzero_grad
(opt_list)
text2motion/trainers/ddpm_trainer.py:53
Method__getitem__
(self, item)
text2motion/utils/word_vectorizer.py:64
Method__getitem__
(self, item)
text2motion/datasets/evaluator.py:113
Method__getitem__
(self, item)
text2motion/datasets/evaluator.py:227
Method__getitem__
(self, item)
text2motion/datasets/evaluator.py:308
Method__getitem__
(self, item)
text2motion/datasets/dataset.py:121
Method__init__
(self, meta_root, prefix)
text2motion/utils/word_vectorizer.py:47
Method__init__
(self, offset, kinematic_tree, device)
text2motion/utils/skeleton.py:5
Method__init__
(self)
text2motion/options/base_options.py:9
Method__init__
(self, args, encoder)
text2motion/trainers/ddpm_trainer.py:31
Method__init__
(self, opt, trainer, dataset, w_vectorizer, mm_num_samples, mm_num_repeats)
text2motion/datasets/evaluator.py:18
Method__init__
(self, opt, mean, std, split_file, w_vectorizer)
text2motion/datasets/evaluator.py:140
Method__init__
(self, opt, motion_dataset, w_vectorizer)
text2motion/datasets/evaluator.py:300
Method__init__
(self, opt)
text2motion/datasets/evaluator.py:378
Method__init__
(self, dataset, num_replicas=None, rank=None,
text2motion/datasets/dataloader.py:18
Method__init__
(self, opt, mean, std, split_file, times=1, w_vectorizer=None, eval_mode=False)
text2motion/datasets/dataset.py:15
Method__init__
(self, margin=3.0)
text2motion/datasets/evaluator_models.py:16
Method__init__
(self, d_model, max_len=300)
text2motion/datasets/evaluator_models.py:64
Method__init__
(self, input_size, hidden_size, output_size)
text2motion/datasets/evaluator_models.py:80
Method__init__
(self, input_size, hidden_size, output_size)
text2motion/datasets/evaluator_models.py:102
Method__init__
(self, text_size, input_size, output_size, hidden_size, n_layers)
text2motion/datasets/evaluator_models.py:124
Method__init__
(self, text_size, input_size, output_size, hidden_size, n_layers)
text2motion/datasets/evaluator_models.py:188
Method__init__
(self, word_size, pos_size, hidden_size, device)
text2motion/datasets/evaluator_models.py:268
Method__init__
(self, word_size, pos_size, hidden_size, output_size, device)
text2motion/datasets/evaluator_models.py:312
Method__init__
(self, input_size, hidden_size, output_size, device)
text2motion/datasets/evaluator_models.py:354
Method__init__
(self, word_size, pos_size, hidden_size, output_size)
text2motion/datasets/evaluator_models.py:390
Method__init__
(self, diffusion)
text2motion/models/gaussian_diffusion.py:66
Method__init__
(self, diffusion, history_per_term=10, uniform_prob=0.001)
text2motion/models/gaussian_diffusion.py:124
Method__init__
( self, *, betas, model_mean_type, model_var_type, loss_type,
text2motion/models/gaussian_diffusion.py:329
Method__init__
(self, latent_dim, time_embed_dim, dropout)
text2motion/models/transformer.py:62
Method__init__
(self, seq_len, latent_dim, num_head, dropout, time_embed_dim)
text2motion/models/transformer.py:91
Method__init__
(self, seq_len, latent_dim, text_latent_dim, num_head, dropout, time_embed_dim)
text2motion/models/transformer.py:124
Method__init__
(self, seq_len=60, latent_dim=32, text_latent_dim=512,
text2motion/models/transformer.py:175
Method__init__
(self, seq_len, latent_dim, num_head, dropout, time_embed_dim)
text2motion/models/transformer.py:198
Method__init__
(self, seq_len, latent_dim, text_latent_dim, num_head, dropout, time_embed_dim)
text2motion/models/transformer.py:231
Method__init__
(self, seq_len=60, latent_dim=32, text_latent_dim=512,
text2motion/models/transformer.py:266
Method__init__
(self, input_feats, num_frames=240, latent_dim=512,
text2motion/models/transformer.py:289
Method__iter__
(self)
text2motion/datasets/dataloader.py:32
Method__len__
(self)
text2motion/utils/word_vectorizer.py:61
Method__len__
(self)
text2motion/datasets/evaluator.py:109
Method__len__
(self)
text2motion/datasets/evaluator.py:224
Method__len__
(self)
text2motion/datasets/evaluator.py:305
Method__len__
(self)
text2motion/datasets/dataset.py:118
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
text2motion/models/gaussian_diffusion.py:1073
Functioncalculate_R_precision
(embedding1, embedding2, top_k, sum_all=False)
text2motion/utils/metrics.py:37
Functioncalculate_matching_score
(embedding1, embedding2, sum_all=False)
text2motion/utils/metrics.py:47
Functioncollate_fn
(batch)
text2motion/datasets/evaluator.py:133
Functioncompose_and_save_img
(img_list, save_dir, img_name, col=4, row=1, img_size=(256, 200))
text2motion/utils/utils.py:87
Functioncompose_gif_img_list
(img_list, fp_out, duration)
text2motion/utils/utils.py:61
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
text2motion/models/gaussian_diffusion.py:821
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
text2motion/models/gaussian_diffusion.py:859
Functioneuler2quat
Convert Euler angles to quaternions.
text2motion/utils/quaternion.py:169
Functioneuler_to_quaternion
Convert Euler angles to quaternions.
text2motion/utils/quaternion.py:233
Functionexpmap_to_quaternion
Convert axis-angle rotations (aka exponential maps) to quaternions. Stable formula from "Practical Parameterization of Rotations Using the Ex
text2motion/utils/quaternion.py:214
Functionextract_features
(positions, feet_thre, n_raw_offsets, kinematic_chain, face_joint_indx, fid_r, fid_l)
text2motion/utils/motion_process.py:39
Methodforward
(self, output1, output2, label)
text2motion/datasets/evaluator_models.py:20
Methodforward
(self, pos)
text2motion/datasets/evaluator_models.py:75
Methodforward
(self, inputs)
text2motion/datasets/evaluator_models.py:94
Methodforward
(self, inputs)
text2motion/datasets/evaluator_models.py:117
Methodforward
(self, inputs, last_pred, hidden, p)
text2motion/datasets/evaluator_models.py:172
Methodforward
(self, inputs, hidden, p)
text2motion/datasets/evaluator_models.py:218
Methodforward
query (batch, query_dim) key (batch, seq_len, key_dim)
text2motion/datasets/evaluator_models.py:246
Methodforward
(self, word_embs, pos_onehot, cap_lens)
text2motion/datasets/evaluator_models.py:285
Methodforward
(self, word_embs, pos_onehot, cap_lens)
text2motion/datasets/evaluator_models.py:335
Methodforward
(self, inputs, m_lens)
text2motion/datasets/evaluator_models.py:373
Methodforward
(self, word_embs, pos_onehot, cap_lens)
text2motion/datasets/evaluator_models.py:423
Methodforward
h: B, T, D emb: B, D
text2motion/models/transformer.py:75
Methodforward
x: B, T, D
text2motion/models/transformer.py:101
Methodforward
x: B, T, D xf: B, N, L
text2motion/models/transformer.py:135
Methodforward
(self, x, emb)
text2motion/models/transformer.py:167
Methodforward
(self, x, xf, emb, src_mask)
text2motion/models/transformer.py:190
Methodforward
x: B, T, D
text2motion/models/transformer.py:208
Methodforward
x: B, T, D xf: B, N, L
text2motion/models/transformer.py:242
Methodforward
(self, x, xf, emb, src_mask)
text2motion/models/transformer.py:281
Methodforward
x: B, T, D
text2motion/models/transformer.py:407
Methodforward_kinematics
(self, quat_params, root_pos, skel_joints=None, do_root_R=True)
text2motion/utils/skeleton.py:104
Methodforward_kinematics_cont6d_np
(self, cont6d_params, root_pos, skel_joints=None, do_root_R=True)
text2motion/utils/skeleton.py:149
Methodget_init_hidden
(self, latent)
text2motion/datasets/evaluator_models.py:167
Methodget_init_hidden
(self, latent)
text2motion/datasets/evaluator_models.py:211
Functionget_padding_mask
(batch_size, seq_len, cap_lens)
text2motion/datasets/evaluator_models.py:54
← previousnext →101–200 of 231, ranked by callers