MCPcopy Create free account

hub / github.com/MotrixLab/FineMoGen / functions

Functions416 in github.com/MotrixLab/FineMoGen

↓ 1 callersFunctioncalculate_multimodality
(activation, multimodality_times)
mogen/core/evaluation/utils.py:127
↓ 1 callersFunctioncalculate_top_k
(mat, top_k)
mogen/core/evaluation/utils.py:29
↓ 1 callersFunctioncollect_results_cpu
Collect results in cpu.
mogen/apis/test.py:84
↓ 1 callersFunctioncollect_results_gpu
Collect results in gpu.
mogen/apis/test.py:130
↓ 1 callersMethodconcat_batch_metrics
(self, batch_metrics)
mogen/core/evaluation/evaluators/precision_evaluator.py:52
↓ 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
mogen/models/utils/gaussian_diffusion.py:572
↓ 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
mogen/models/utils/gaussian_diffusion.py:586
↓ 1 callersFunctioncont6d_to_matrix
(cont6d)
mogen/datasets/pipelines/quaternion.py:346
↓ 1 callersFunctionconvert_weights
Convert applicable model parameters to fp32
mogen/models/transformers/mdm.py:9
↓ 1 callersFunctioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
mogen/models/utils/gaussian_diffusion.py:15
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
mogen/models/utils/gaussian_diffusion.py:773
↓ 1 callersMethodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
mogen/models/utils/gaussian_diffusion.py:866
↓ 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
mogen/models/utils/gaussian_diffusion.py:902
↓ 1 callersMethoddecode
(self, z, motion_mask)
mogen/models/architectures/vae_architecture.py:92
↓ 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 this
mogen/models/utils/gaussian_diffusion.py:205
↓ 1 callersMethodencode
(self, pose)
mogen/models/architectures/vae_architecture.py:30
↓ 1 callersMethodencode_motion
(self, motion, motion_length=None, motion_ma
mogen/models/transformers/intergen.py:166
↓ 1 callersMethodencode_text
(self, text, device=None, **kwargs)
mogen/models/transformers/intergen.py:176
↓ 1 callersMethodextract_text_feature
(self, text, clip_model, device)
mogen/models/transformers/remodiffuse.py:100
↓ 1 callersMethodforward_test
(self, h, src_mask, emb, **kwargs)
mogen/models/transformers/diffusion_transformer.py:180
↓ 1 callersMethodforward_test
(self, h=None, src_mask=None, emb=None,
mogen/models/transformers/momatmogen.py:129
↓ 1 callersMethodforward_test
(self, **kwargs)
mogen/models/architectures/base_architecture.py:23
↓ 1 callersMethodforward_train
(self, h, src_mask, emb, **kwargs)
mogen/models/transformers/diffusion_transformer.py:176
↓ 1 callersMethodforward_train
(self, h=None, src_mask=None, emb=None,
mogen/models/transformers/momatmogen.py:105
↓ 1 callersMethodforward_train
(self, **kwargs)
mogen/models/architectures/base_architecture.py:20
↓ 1 callersMethodgenerate_src_mask
(self, T, length)
mogen/models/transformers/remodiffuse.py:146
↓ 1 callersFunctionget_metric_statistics
(values, replication_times)
mogen/core/evaluation/utils.py:5
↓ 1 callersFunctionget_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
mogen/models/utils/gaussian_diffusion.py:235
↓ 1 callersMethodget_precompute_condition
(self, **kwargs)
mogen/models/transformers/diffusion_transformer.py:172
↓ 1 callersMethodget_target_label
Get target label. Args: input (Tensor): Input tensor. target_is_real (bool): Whether the target is real or fake.
mogen/models/losses/gan_loss.py:55
↓ 1 callersFunctiongmof
Geman-McClure error function.
mogen/models/losses/mse_loss.py:8
↓ 1 callersMethodload_and_freeze_clip
(self, clip_version)
mogen/models/transformers/mdm.py:89
↓ 1 callersMethodload_anno
(self, name)
mogen/datasets/base_dataset.py:60
↓ 1 callersMethodload_annotations
Load annotations from ``ann_file`` to ``data_infos``
mogen/datasets/base_dataset.py:63
↓ 1 callersMethodload_pretrained
(self, ckpt_path)
mogen/models/transformers/intergen.py:198
↓ 1 callersMethodload_pretrained
(self, ckpt_path)
mogen/models/rnns/t2m_bigru.py:287
↓ 1 callersFunctionmain
()
tools/train.py:60
↓ 1 callersFunctionmain
()
tools/test.py:49
↓ 1 callersFunctionmain
()
tools/visualize.py:79
↓ 1 callersFunctionmatrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
mogen/datasets/pipelines/rotation_conversions.py:96
↓ 1 callersFunctionmse_loss
Warpper of mse loss.
mogen/models/losses/mse_loss.py:16
↓ 1 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mode
mogen/apis/test.py:35
↓ 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
mogen/models/utils/gaussian_diffusion.py:608
↓ 1 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
mogen/models/utils/gaussian_diffusion.py:672
↓ 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_
mogen/models/utils/gaussian_diffusion.py:722
↓ 1 callersFunctionparse_args
()
tools/train.py:18
↓ 1 callersFunctionparse_args
()
tools/test.py:17
↓ 1 callersFunctionparse_args
()
tools/visualize.py:51
↓ 1 callersMethodparse_values
(self, values)
mogen/core/evaluation/evaluators/fid_evaluator.py:55
↓ 1 callersFunctionparse_version_info
Parse a version string into a tuple. Args: version_str (str): The version string. Returns: tuple[int | str]: The version info,
mogen/version.py:4
↓ 1 callersFunctionplot_3d_motion
(save_path, motion_length, kinematic_tree, joints,
mogen/utils/plot_utils.py:107
↓ 1 callersFunctionplot_interhuman
(data, result_path, npy_path, caption)
tools/visualize.py:38
↓ 1 callersFunctionplot_siamese_3d_motion
(save_path, kinematic_tree, mp_joints,
mogen/utils/plot_utils.py:207
↓ 1 callersFunctionplot_t2m
(data, motion_length, result_path, npy_path, caption)
tools/visualize.py:25
↓ 1 callersMethodpost_process
(self, motion)
mogen/models/transformers/mdm.py:134
↓ 1 callersMethodprepare_data
Prepare raw data for the f'{idx'}-th data.
mogen/datasets/base_dataset.py:70
↓ 1 callersMethodprepare_evaluation
(self)
mogen/datasets/base_dataset.py:97
↓ 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
mogen/models/utils/gaussian_diffusion.py:386
↓ 1 callersFunctionqbetween
find the quaternion used to rotate v0 to v1
mogen/datasets/pipelines/quaternion.py:413
↓ 1 callersFunctionqbetween_np
find the quaternion used to rotate v0 to v1
mogen/datasets/pipelines/quaternion.py:427
↓ 1 callersFunctionqpow
q0 : tensor of quaternions t: tensor of powers
mogen/datasets/pipelines/quaternion.py:370
↓ 1 callersFunctionqrot
Rotate vector(s) v about the rotation described by quaternion(s) q. Expects a tensor of shape (*, 4) for q and a tensor of shape (*, 3) for v
mogen/datasets/pipelines/quaternion.py:57
↓ 1 callersFunctionquaternion_invert
Given a quaternion representing rotation, get the quaternion representing its inverse. Args: quaternion: Quaternions as tensor o
mogen/datasets/pipelines/rotation_conversions.py:380
↓ 1 callersFunctionquaternion_to_axis_angle
Convert rotations given as quaternions to axis/angle. Args: quaternions: quaternions with real part first, as tensor of
mogen/datasets/pipelines/rotation_conversions.py:481
↓ 1 callersFunctionquaternion_to_matrix_np
(quaternions)
mogen/datasets/pipelines/quaternion.py:328
↓ 1 callersFunctionrandom_quaternions
Generate random quaternions representing rotations, i.e. versors with nonnegative real part. Args: n: Number of quaternions in a
mogen/datasets/pipelines/rotation_conversions.py:255
↓ 1 callersFunctionrandom_rotations
Generate random rotations as 3x3 rotation matrices. Args: n: Number of rotation matrices in a batch to return. dtype: Type t
mogen/datasets/pipelines/rotation_conversions.py:283
↓ 1 callersFunctionrecover_from_ric
(data, joints_num)
mogen/utils/plot_utils.py:91
↓ 1 callersFunctionrecover_root_rot_pos
(data)
mogen/utils/plot_utils.py:69
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
mogen/models/losses/utils.py:7
↓ 1 callersMethodreparameterize
(self, mu, logvar)
mogen/models/architectures/vae_architecture.py:23
↓ 1 callersFunctionrigid_transform
(relative, data)
mogen/datasets/pipelines/siamese_motion.py:15
↓ 1 callersMethodsample
(self, std=1, latent_code=None)
mogen/models/architectures/vae_architecture.py:70
↓ 1 callersMethodscale_func
(self, timestep)
mogen/models/transformers/remodiffuse.py:210
↓ 1 callersFunctionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
mogen/apis/train.py:17
↓ 1 callersFunctionsingle_gpu_test
Test with single gpu.
mogen/apis/test.py:13
↓ 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
mogen/models/utils/gaussian_diffusion.py:1179
↓ 1 callersMethodsplit_results
(self, results)
mogen/models/architectures/base_architecture.py:112
↓ 1 callersFunctionstandardize_quaternion
Convert a unit quaternion to a standard form: one in which the real part is non negative. Args: quaternions: Quaternions with re
mogen/datasets/pipelines/rotation_conversions.py:327
↓ 1 callersMethodto_ddp
Wrap models with separate MMDistributedDataParallel. It only wraps the modules with parameters.
mogen/core/distributed_wrapper.py:68
↓ 1 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mogen/datasets/pipelines/formatting.py:11
↓ 1 callersFunctiontrain_model
Main api for training model.
mogen/apis/train.py:35
↓ 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 ...
mogen/models/utils/gaussian_diffusion.py:992
↓ 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
mogen/models/utils/gaussian_diffusion.py:118
↓ 1 callersMethodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspon
mogen/models/utils/gaussian_diffusion.py:76
↓ 1 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
mogen/models/losses/utils.py:25
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
mogen/models/utils/gaussian_diffusion.py:40
↓ 1 callersFunctionzero_module
Zero out the parameters of a module and return it.
mogen/models/utils/stylization_block.py:5
Method__call__
(self, results)
mogen/datasets/pipelines/siamese_motion.py:46
Method__call__
(self, results)
mogen/datasets/pipelines/siamese_motion.py:151
Method__call__
(self, results)
mogen/datasets/pipelines/transforms.py:22
Method__call__
(self, results)
mogen/datasets/pipelines/transforms.py:71
Method__call__
(self, results)
mogen/datasets/pipelines/transforms.py:119
Method__call__
(self, data)
mogen/datasets/pipelines/compose.py:30
Method__call__
(self, results)
mogen/datasets/pipelines/formatting.py:40
Method__call__
(self, results)
mogen/datasets/pipelines/formatting.py:56
Method__call__
(self, results)
mogen/datasets/pipelines/formatting.py:92
Method__call__
(self, results)
mogen/datasets/pipelines/formatting.py:128
Method__call__
(self, x, ts, **kwargs)
mogen/models/utils/gaussian_diffusion.py:1290
Method__getitem__
Prepare data for the ``idx``-th data. As for video dataset, we can first parse raw data for each frame. Then we combine annotations fr
mogen/datasets/base_dataset.py:85
← previousnext →101–200 of 416, ranked by callers