MCPcopy Create free account

hub / github.com/USRC-SEA/OmniMotionGPT / functions

Functions412 in github.com/USRC-SEA/OmniMotionGPT

↓ 12 callersMethodsave
(self, path)
OmGPT/motion_mapping/evl/utils/loss_record.py:72
↓ 9 callersFunctionload_on_gpu
recursively load all tensors in a nested dictionary structure onto the gpu.
OmGPT/motion_mapping/evl/utils/utils.py:31
↓ 8 callersFunction_collate_index
the collate function for a given index
OmGPT/motion_mapping/evl/motion_datasets/utils.py:47
↓ 8 callersFunction_collate_index
the collate function for a given index
OmGPT/motion_mapping/evl/motion_datasets/combine.py:338
↓ 8 callersFunction_collate_index
the collate function for a given index
OmGPT/motion_mapping/exp/motion_datasets/utils.py:47
↓ 8 callersFunction_collate_index
the collate function for a given index
OmGPT/motion_mapping/exp/motion_datasets/combine.py:346
↓ 8 callersFunctioneuclidean_distance_matrix
(X - X_train)*(X - X_train) = -2X*X_train + X*X + X_train*X_train Params: -- matrix1: N1 x D -- matrix2: N2 x D
OmGPT/motion_mapping/evl/utils/metrics.py:153
↓ 7 callersMethod_encode_tokens
(self, tokens)
OmGPT/motion_mapping/evl/motion_models/architecture.py:335
↓ 7 callersFunctionparse_eval_args
parse evaluation args
OmGPT/motion_mapping/evl/utils/options.py:372
↓ 6 callersMethod__init__
(self, embed_dim=512, block_size=16, n_head=8, drop_out_rate=0.1, fc_rate=4)
OmGPT/motion_mapping/evl/motion_models/t2m_trans.py:140
↓ 6 callersMethod_compute_cos_loss
compute the cosine similarity loss
OmGPT/motion_mapping/evl/motion_models/architecture.py:847
↓ 6 callersFunction_load_motion_mapping
load the pretrained SMPL autoencoder
OmGPT/motion_mapping/evl/eval.py:106
↓ 6 callersMethodadd_scalar
(self, val, step=None)
OmGPT/motion_mapping/exp/utils/loss_record.py:57
↓ 6 callersFunctioncalculate_top_k
(mat, top_k)
OmGPT/motion_mapping/evl/utils/metrics.py:196
↓ 5 callersFunction_create_dataloader
create dataloader from the caption path and generated motion path
OmGPT/motion_mapping/evl/eval.py:463
↓ 5 callersMethod_encode_tokens
(self, tokens)
OmGPT/motion_mapping/exp/motion_models/architecture.py:173
↓ 5 callersFunction_sample_two_list
sample two list with same length.
OmGPT/motion_mapping/evl/eval.py:484
↓ 5 callersMethodforward_for_evaluation
forward for evaluation inputs: ------- batch_data: clip_token motions offsets
OmGPT/motion_mapping/evl/motion_models/architecture.py:646
↓ 4 callersMethod_compute_cos_loss
compute the cosine similarity loss
OmGPT/motion_mapping/exp/motion_models/architecture.py:472
↓ 4 callersMethod_compute_trans_loss
compute the global translation loss inputs: ------- out_motion : [bs, num_frames, num_joints + 1, 6] the
OmGPT/motion_mapping/evl/motion_models/architecture.py:834
↓ 4 callersMethod_compute_trans_loss
compute the global translation loss inputs: ------- out_motion : [bs, num_frames, num_joints + 1, 6] the
OmGPT/motion_mapping/exp/motion_models/architecture.py:459
↓ 4 callersMethod_compute_vel_loss
compute the velocity loss
OmGPT/motion_mapping/evl/motion_models/architecture.py:856
↓ 4 callersMethod_compute_vel_loss
compute the velocity loss
OmGPT/motion_mapping/exp/motion_models/architecture.py:481
↓ 4 callersFunction_lengths_to_mask
convert lengths to mask
OmGPT/motion_mapping/evl/motion_datasets/utils.py:29
↓ 4 callersFunction_process_list_filepath
process the list of file path. this function is for quick debug propose such that we do not need to load the entire dataset.
OmGPT/motion_mapping/exp/motion_datasets/__init__.py:40
↓ 4 callersMethod_tokenize_text
encode text with clip. inputs: ------- raw_text list (batch_size length) of strings with input text prom
OmGPT/motion_mapping/evl/motion_datasets/combine.py:72
↓ 4 callersMethod_tokenize_text
encode text with clip. inputs: ------- raw_text list (batch_size length) of strings with input text prom
OmGPT/motion_mapping/exp/motion_datasets/combine.py:73
↓ 4 callersFunctioncalculate_activation_statistics
Params: -- activation: num_samples x dim_feat Returns: -- mu: dim_feat -- sigma: dim_feat x dim_feat
OmGPT/motion_mapping/evl/utils/metrics.py:58
↓ 4 callersMethodmasked_l2
calculate the masked l2 loss assuming a.shape == b.shape == bs, J, Jdim, seqlen assuming mask.shape == bs, 1, 1, seqlen
OmGPT/motion_mapping/evl/motion_models/architecture.py:817
↓ 4 callersMethodmasked_l2
calculate the masked l2 loss assuming a.shape == b.shape == bs, J, Jdim, seqlen assuming mask.shape == bs, 1, 1, seqlen
OmGPT/motion_mapping/exp/motion_models/architecture.py:442
↓ 4 callersMethodsample
(self, clip_feature, if_categorial=False)
OmGPT/motion_mapping/evl/motion_models/t2m_trans.py:361
↓ 3 callersMethod__init__
(self, args)
OmGPT/motion_mapping/evl/motion_models/architecture.py:158
↓ 3 callersFunction_add_data
add options for data loading
OmGPT/motion_mapping/exp/utils/options.py:60
↓ 3 callersFunction_add_model
add options for model structure
OmGPT/motion_mapping/evl/utils/options.py:69
↓ 3 callersFunction_eval_fid_out_one_epoch
evaluate the model on the out fid for on epoch.
OmGPT/motion_mapping/evl/eval_fid_out.py:369
↓ 3 callersFunction_eval_one_epoch
evaluate the model for one epoch.
OmGPT/motion_mapping/evl/eval.py:545
↓ 3 callersMethod_get_animal_name
get the animal name from the file path
OmGPT/motion_mapping/evl/motion_datasets/smal.py:117
↓ 3 callersMethod_get_animal_name
get the animal name from the file path
OmGPT/motion_mapping/exp/motion_datasets/smal.py:119
↓ 3 callersMethod_get_ee_vel
get the end effector velocity from a motion inputs: ------- motion : [bs, num_frames, num_joints + 1, 6]
OmGPT/motion_mapping/evl/motion_models/architecture.py:338
↓ 3 callersMethod_get_meta_dir
get the meta dir from the file path
OmGPT/motion_mapping/evl/motion_datasets/smal.py:123
↓ 3 callersMethod_get_meta_dir
get the meta dir from the file path
OmGPT/motion_mapping/exp/motion_datasets/smal.py:125
↓ 3 callersFunction_make_dirs
make all the directories that could be used in training. this could help with prevent the error of directory not found.
OmGPT/motion_mapping/evl/utils/options.py:32
↓ 3 callersFunction_make_dirs
this function is coupled with _add_path function. if _add_path is not used, this function should not be used. make all the directories t
OmGPT/motion_mapping/exp/utils/options.py:32
↓ 3 callersFunction_set_seed
set the random seed for torch and numpy
OmGPT/motion_mapping/evl/utils/options.py:183
↓ 3 callersFunction_set_seed
set the random seed for torch and numpy
OmGPT/motion_mapping/exp/utils/options.py:180
↓ 3 callersFunctioncalculate_diversity
(activation, diversity_times)
OmGPT/motion_mapping/evl/utils/metrics.py:71
↓ 3 callersMethodsave
(self, path)
OmGPT/motion_mapping/exp/utils/loss_record.py:72
↓ 3 callersFunctionunload_to_cpu
recursively load all tensors in a nested dictionary structure onto the gpu.
OmGPT/motion_mapping/exp/eval.py:82
↓ 3 callersFunctionunload_to_cpu
recursively load all tensors in a nested dictionary structure onto the gpu.
OmGPT/motion_mapping/exp/train.py:81
↓ 2 callersMethod__init__
(self, args)
OmGPT/motion_mapping/evl/motion_models/sem.py:67
↓ 2 callersFunction_add_data
add options for data loading
OmGPT/motion_mapping/evl/utils/options.py:57
↓ 2 callersFunction_add_misc
add some freq related options.
OmGPT/motion_mapping/exp/utils/options.py:193
↓ 2 callersFunction_add_model
add options for model structure
OmGPT/motion_mapping/exp/utils/options.py:75
↓ 2 callersFunction_add_optim
add options for optimization setting include the total number of steps for training.
OmGPT/motion_mapping/exp/utils/options.py:100
↓ 2 callersFunction_add_path
add the path for data loading, model training, result saving
OmGPT/motion_mapping/exp/utils/options.py:46
↓ 2 callersFunction_check_generated_motion_number
check the name of motions generated matches the number of captions.
OmGPT/motion_mapping/evl/eval.py:241
↓ 2 callersFunction_check_generated_motion_number
check the generated motion match the caption
OmGPT/motion_mapping/evl/eval_mm.py:56
↓ 2 callersFunction_collate_length
the collate function for a given index
OmGPT/motion_mapping/evl/motion_datasets/utils.py:38
↓ 2 callersFunction_collate_length
the collate function for a given index
OmGPT/motion_mapping/evl/motion_datasets/combine.py:329
↓ 2 callersFunction_collate_length
the collate function for a given index
OmGPT/motion_mapping/exp/motion_datasets/utils.py:38
↓ 2 callersFunction_collate_length
the collate function for a given index
OmGPT/motion_mapping/exp/motion_datasets/combine.py:337
↓ 2 callersMethod_compute_fake_smal_forward
( self, f_smal_rec, smpl_motions, )
OmGPT/motion_mapping/evl/motion_models/architecture.py:872
↓ 2 callersFunction_eval_one_epoch
evaluate the model for one epoch.
OmGPT/motion_mapping/evl/eval_mm.py:320
↓ 2 callersMethod_get_ee_vel
get the end effector velocity from a motion inputs: ------- motion : [bs, num_frames, num_joints + 1, 6]
OmGPT/motion_mapping/exp/motion_models/architecture.py:176
↓ 2 callersFunction_get_list_caption_path
take the folder of ood caption as input.
OmGPT/motion_mapping/evl/eval.py:206
↓ 2 callersMethod_get_smal_ee_vel
get the end effector velocity from a motion
OmGPT/motion_mapping/evl/motion_models/architecture.py:387
↓ 2 callersMethod_get_xyz
get the joints xyz positions.
OmGPT/motion_mapping/exp/motion_models/motion_clip.py:143
↓ 2 callersMethod_init_clip_to_inter
initialize the clip to intermediate
OmGPT/motion_mapping/evl/motion_models/architecture.py:225
↓ 2 callersMethod_init_clip_to_inter
initialize the clip to intermediate
OmGPT/motion_mapping/exp/motion_models/architecture.py:91
↓ 2 callersMethod_init_mapping
initialize the mapping part
OmGPT/motion_mapping/evl/motion_models/architecture.py:207
↓ 2 callersMethod_init_mapping
initialize the mapping part
OmGPT/motion_mapping/exp/motion_models/architecture.py:78
↓ 2 callersMethod_init_sem_head
initialize the semantic head
OmGPT/motion_mapping/evl/motion_models/architecture.py:247
↓ 2 callersMethod_init_sem_head
initialize the semantic head
OmGPT/motion_mapping/exp/motion_models/architecture.py:103
↓ 2 callersFunction_is_valid_motion_length
Check if the motion's length is within the valid range.
OmGPT/motion_mapping/evl/motion_datasets/datasets.py:76
↓ 2 callersFunction_is_valid_motion_length
Check if the motion's length is within the valid range.
OmGPT/motion_mapping/exp/motion_datasets/datasets.py:78
↓ 2 callersFunction_process_list_filepath
process the list of file path
OmGPT/motion_mapping/evl/motion_datasets/__init__.py:40
↓ 2 callersFunction_recover_position_from_motion
recover the position from the motion. the motion is normalized.
OmGPT/motion_mapping/evl/utils/utils.py:66
↓ 2 callersFunction_recover_position_from_motion
recover the position from the motion. the motion is normalized.
OmGPT/motion_mapping/exp/eval.py:119
↓ 2 callersFunction_recover_position_from_motion
recover the position from the motion. the motion is normalized.
OmGPT/motion_mapping/exp/train.py:118
↓ 2 callersFunction_recover_position_from_motion
recover the position from the motion. the motion is normalized.
OmGPT/motion_mapping/exp/utils/utils.py:66
↓ 2 callersMethodadd_scalar
(self, val, step=None)
OmGPT/motion_mapping/evl/utils/loss_record.py:57
↓ 2 callersFunctioncalculate_frechet_distance
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
OmGPT/motion_mapping/evl/utils/metrics.py:99
↓ 2 callersMethodend_timer
end the timer and print the time
OmGPT/motion_mapping/exp/utils/loss_record.py:135
↓ 2 callersFunctionget_poly3d
get the poly3d object from vertices and faces.
OmGPT/data_process/fit/main.py:289
↓ 2 callersFunctionget_smal_dataloader
get dataloader for smal motion and caption dataset.
OmGPT/motion_mapping/exp/motion_datasets/__init__.py:114
↓ 2 callersFunctionget_smpl_dataloader
get dataloader for smpl motion and caption dataset.
OmGPT/motion_mapping/exp/motion_datasets/__init__.py:89
↓ 2 callersFunctioninit_smal_model
initialize the smal model with an initial guess of beta.
OmGPT/data_process/fit/main.py:266
↓ 2 callersFunctionlengths_to_mask
(lengths, max_len)
OmGPT/motion_mapping/evl/motion_datasets/combine.py:347
↓ 2 callersFunctionlengths_to_mask
(lengths, max_len)
OmGPT/motion_mapping/exp/motion_datasets/combine.py:355
↓ 2 callersFunctionload_on_gpu
recursively load all tensors in a nested dictionary structure onto the gpu.
OmGPT/motion_mapping/exp/eval.py:71
↓ 2 callersFunctionload_on_gpu
recursively load all tensors in a nested dictionary structure onto the gpu.
OmGPT/motion_mapping/exp/train.py:70
↓ 2 callersFunctionmain
the main function for fit a initial smal model onto target mesh.
OmGPT/data_process/fit/main.py:641
↓ 2 callersMethodmasked_l2
calculate the masked l2 loss assuming a.shape == b.shape == bs, J, Jdim, seqlen assuming mask.shape == bs, 1, 1, seqlen
OmGPT/motion_mapping/exp/motion_models/motion_clip.py:248
↓ 2 callersFunctionoptimize_smal_model
optimize the smal model to fit the target mesh. inputs: ------- num_epoch: int
OmGPT/data_process/fit/main.py:380
↓ 2 callersFunctionpairwise_distances
Compute pairwise Euclidean distances.
OmGPT/motion_mapping/exp/eval.py:373
↓ 2 callersFunctionplot_compare_obj
(vertices_0, faces_0, vertices_1, faces_1)
OmGPT/data_process/fit/main.py:301
↓ 2 callersMethodstart_timer
start the timer
OmGPT/motion_mapping/exp/utils/loss_record.py:129
↓ 2 callersFunctionsum_flat
Take the sum over all non-batch dimensions.
OmGPT/motion_mapping/evl/motion_models/architecture.py:723
↓ 2 callersFunctionsum_flat
Take the sum over all non-batch dimensions.
OmGPT/motion_mapping/exp/motion_models/motion_clip.py:225
↓ 2 callersFunctionsum_flat
Take the sum over all non-batch dimensions.
OmGPT/motion_mapping/exp/motion_models/architecture.py:393
next →1–100 of 412, ranked by callers