Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/FineMoGen
/ functions
Functions
416 in github.com/MotrixLab/FineMoGen
⨍
Functions
416
◇
Types & classes
87
↓ 1 callers
Function
calculate_multimodality
(activation, multimodality_times)
mogen/core/evaluation/utils.py:127
↓ 1 callers
Function
calculate_top_k
(mat, top_k)
mogen/core/evaluation/utils.py:29
↓ 1 callers
Function
collect_results_cpu
Collect results in cpu.
mogen/apis/test.py:84
↓ 1 callers
Function
collect_results_gpu
Collect results in gpu.
mogen/apis/test.py:130
↓ 1 callers
Method
concat_batch_metrics
(self, batch_metrics)
mogen/core/evaluation/evaluators/precision_evaluator.py:52
↓ 1 callers
Method
condition_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 callers
Method
condition_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 callers
Function
cont6d_to_matrix
(cont6d)
mogen/datasets/pipelines/quaternion.py:346
↓ 1 callers
Function
convert_weights
Convert applicable model parameters to fp32
mogen/models/transformers/mdm.py:9
↓ 1 callers
Function
create_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 callers
Method
ddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
mogen/models/utils/gaussian_diffusion.py:773
↓ 1 callers
Method
ddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
mogen/models/utils/gaussian_diffusion.py:866
↓ 1 callers
Method
ddim_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 callers
Method
decode
(self, z, motion_mask)
mogen/models/architectures/vae_architecture.py:92
↓ 1 callers
Function
discretized_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 callers
Method
encode
(self, pose)
mogen/models/architectures/vae_architecture.py:30
↓ 1 callers
Method
encode_motion
(self, motion, motion_length=None, motion_ma
mogen/models/transformers/intergen.py:166
↓ 1 callers
Method
encode_text
(self, text, device=None, **kwargs)
mogen/models/transformers/intergen.py:176
↓ 1 callers
Method
extract_text_feature
(self, text, clip_model, device)
mogen/models/transformers/remodiffuse.py:100
↓ 1 callers
Method
forward_test
(self, h, src_mask, emb, **kwargs)
mogen/models/transformers/diffusion_transformer.py:180
↓ 1 callers
Method
forward_test
(self, h=None, src_mask=None, emb=None,
mogen/models/transformers/momatmogen.py:129
↓ 1 callers
Method
forward_test
(self, **kwargs)
mogen/models/architectures/base_architecture.py:23
↓ 1 callers
Method
forward_train
(self, h, src_mask, emb, **kwargs)
mogen/models/transformers/diffusion_transformer.py:176
↓ 1 callers
Method
forward_train
(self, h=None, src_mask=None, emb=None,
mogen/models/transformers/momatmogen.py:105
↓ 1 callers
Method
forward_train
(self, **kwargs)
mogen/models/architectures/base_architecture.py:20
↓ 1 callers
Method
generate_src_mask
(self, T, length)
mogen/models/transformers/remodiffuse.py:146
↓ 1 callers
Function
get_metric_statistics
(values, replication_times)
mogen/core/evaluation/utils.py:5
↓ 1 callers
Function
get_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 callers
Method
get_precompute_condition
(self, **kwargs)
mogen/models/transformers/diffusion_transformer.py:172
↓ 1 callers
Method
get_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 callers
Function
gmof
Geman-McClure error function.
mogen/models/losses/mse_loss.py:8
↓ 1 callers
Method
load_and_freeze_clip
(self, clip_version)
mogen/models/transformers/mdm.py:89
↓ 1 callers
Method
load_anno
(self, name)
mogen/datasets/base_dataset.py:60
↓ 1 callers
Method
load_annotations
Load annotations from ``ann_file`` to ``data_infos``
mogen/datasets/base_dataset.py:63
↓ 1 callers
Method
load_pretrained
(self, ckpt_path)
mogen/models/transformers/intergen.py:198
↓ 1 callers
Method
load_pretrained
(self, ckpt_path)
mogen/models/rnns/t2m_bigru.py:287
↓ 1 callers
Function
main
()
tools/train.py:60
↓ 1 callers
Function
main
()
tools/test.py:49
↓ 1 callers
Function
main
()
tools/visualize.py:79
↓ 1 callers
Function
matrix_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 callers
Function
mse_loss
Warpper of mse loss.
mogen/models/losses/mse_loss.py:16
↓ 1 callers
Function
multi_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 callers
Method
p_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 callers
Method
p_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 callers
Method
p_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 callers
Function
parse_args
()
tools/train.py:18
↓ 1 callers
Function
parse_args
()
tools/test.py:17
↓ 1 callers
Function
parse_args
()
tools/visualize.py:51
↓ 1 callers
Method
parse_values
(self, values)
mogen/core/evaluation/evaluators/fid_evaluator.py:55
↓ 1 callers
Function
parse_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 callers
Function
plot_3d_motion
(save_path, motion_length, kinematic_tree, joints,
mogen/utils/plot_utils.py:107
↓ 1 callers
Function
plot_interhuman
(data, result_path, npy_path, caption)
tools/visualize.py:38
↓ 1 callers
Function
plot_siamese_3d_motion
(save_path, kinematic_tree, mp_joints,
mogen/utils/plot_utils.py:207
↓ 1 callers
Function
plot_t2m
(data, motion_length, result_path, npy_path, caption)
tools/visualize.py:25
↓ 1 callers
Method
post_process
(self, motion)
mogen/models/transformers/mdm.py:134
↓ 1 callers
Method
prepare_data
Prepare raw data for the f'{idx'}-th data.
mogen/datasets/base_dataset.py:70
↓ 1 callers
Method
prepare_evaluation
(self)
mogen/datasets/base_dataset.py:97
↓ 1 callers
Method
q_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 callers
Function
qbetween
find the quaternion used to rotate v0 to v1
mogen/datasets/pipelines/quaternion.py:413
↓ 1 callers
Function
qbetween_np
find the quaternion used to rotate v0 to v1
mogen/datasets/pipelines/quaternion.py:427
↓ 1 callers
Function
qpow
q0 : tensor of quaternions t: tensor of powers
mogen/datasets/pipelines/quaternion.py:370
↓ 1 callers
Function
qrot
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 callers
Function
quaternion_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 callers
Function
quaternion_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 callers
Function
quaternion_to_matrix_np
(quaternions)
mogen/datasets/pipelines/quaternion.py:328
↓ 1 callers
Function
random_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 callers
Function
random_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 callers
Function
recover_from_ric
(data, joints_num)
mogen/utils/plot_utils.py:91
↓ 1 callers
Function
recover_root_rot_pos
(data)
mogen/utils/plot_utils.py:69
↓ 1 callers
Function
reduce_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 callers
Method
reparameterize
(self, mu, logvar)
mogen/models/architectures/vae_architecture.py:23
↓ 1 callers
Function
rigid_transform
(relative, data)
mogen/datasets/pipelines/siamese_motion.py:15
↓ 1 callers
Method
sample
(self, std=1, latent_code=None)
mogen/models/architectures/vae_architecture.py:70
↓ 1 callers
Method
scale_func
(self, timestep)
mogen/models/transformers/remodiffuse.py:210
↓ 1 callers
Function
set_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 callers
Function
single_gpu_test
Test with single gpu.
mogen/apis/test.py:13
↓ 1 callers
Function
space_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 callers
Method
split_results
(self, results)
mogen/models/architectures/base_architecture.py:112
↓ 1 callers
Function
standardize_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 callers
Method
to_ddp
Wrap models with separate MMDistributedDataParallel. It only wraps the modules with parameters.
mogen/core/distributed_wrapper.py:68
↓ 1 callers
Function
to_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 callers
Function
train_model
Main api for training model.
mogen/apis/train.py:35
↓ 1 callers
Method
training_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 callers
Method
update_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 callers
Method
update_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 callers
Function
weight_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 callers
Method
weights
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 callers
Function
zero_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
← previous
next →
101–200 of 416, ranked by callers