MCPcopy Create free account

hub / github.com/GestureGeneration/Speech_driven_gesture_generation_with_autoencoder / functions

Functions119 in github.com/GestureGeneration/Speech_driven_gesture_generation_with_autoencoder

↓ 8 callersFunctioncalculate_mfcc
Calculate MFCC features for the audio in a given file Args: audio_filename: file name of the audio Returns: feature_vect
data_processing/tools.py:90
↓ 8 callersFunctioncalculate_spectrogram
Calculate spectrogram for the audio file Args: audio_filename: audio file name Returns: log spectrogram values
data_processing/tools.py:267
↓ 6 callersMethod_w
(self, n, suffix="")
motion_repr_learning/ae/DAE.py:142
↓ 6 callersFunctionget_average
(feature_name)
evaluation/plot_results.py:94
↓ 6 callersFunctionnormalize
(hist)
evaluation/hellinger_one2one.py:68
↓ 5 callersMethod_b
(self, n, suffix="")
motion_repr_learning/ae/DAE.py:145
↓ 5 callersMethod_feedforward
Traditional feedforward layer: multiply on weight matrix, add bias vector and apply activation function Args: x
motion_repr_learning/ae/DAE.py:149
↓ 5 callersFunctionaverage
Replace every "n" values by their average Args: arr: input array n: number of elements to average on Returns: resul
data_processing/tools.py:78
↓ 4 callersMethod__alpha
(self, cutoff)
helpers/filters/one_euro_filter.py:59
↓ 4 callersFunctionextract_prosodic_features
Extract all 5 prosodic features Args: audio_filename: file name for the audio to be used Returns: pros_feature: ene
data_processing/tools.py:222
↓ 4 callersFunctionnatural_sort
(l, key=natural_sort_key)
evaluation/hellinger_one2one.py:92
↓ 4 callersFunctionnormalize
(hist)
evaluation/hellinger.py:40
↓ 4 callersFunctionread_csv
(filename)
evaluation/plot_results.py:19
↓ 4 callersMethodrun_less_layers
Return result of a net after n layers or n-1 layer (if is_target is true) This function will be used for the layer-wise pretraining of the
motion_repr_learning/ae/DAE.py:310
↓ 4 callersFunctionshorten
(arr1, arr2)
data_processing/tools.py:60
↓ 3 callersFunction_files_to_pandas_dataframe
(extracted_dir, set_name, idx_range)
data_processing/prepare_data.py:131
↓ 3 callersFunctioncreate
Create a dataset Args: name: dataset: 'train' or 'test' or 'dev nodes: markers used in motion caption Returns:
data_processing/create_vector.py:402
↓ 3 callersFunctioncreate_nn
Train or restore a neural network Args: train_data: training dataset normalized to the values [-1,1] dev_data: de
motion_repr_learning/ae/learn_dataset_encoding.py:17
↓ 3 callersFunctionhome_out
(path)
motion_repr_learning/ae/utils/flags.py:11
↓ 3 callersFunctionprepare_motion_data
Read and preprocess the motion dataset Args: data_dir: a directory with the dataset Return: Y_train:
motion_repr_learning/ae/utils/utils.py:153
↓ 3 callersFunctionread_a_folder
(curr_dir)
motion_repr_learning/ae/utils/data.py:104
↓ 3 callersFunctionread_bvh_file
Reads a file from CMU MoCap dataset in BVH format Returns: sequence [sequence_length,frame_size] - local chanells transfor
motion_repr_learning/ae/utils/data.py:67
↓ 3 callersFunctionreshape_dataset
Changing the shape of the dataset array to correspond to the frame dimentionality Args: dataset: an array of the dataset Return:
motion_repr_learning/ae/utils/utils.py:133
↓ 3 callersFunctionsave_positions
Save body keypoint positions into file Args: out_dir: output directory gesture_name: basename of the output file
helpers/apply_filters.py:19
↓ 2 callersMethod__setAlpha
(self, alpha)
helpers/filters/one_euro_filter.py:19
↓ 2 callersFunctioncheck_params
()
motion_repr_learning/ae/learn_dataset_encoding.py:52
↓ 2 callersFunctioncompute_speed
Compute speed between adjacent frames Args: data: array containing joint positions of gesture dim: gesture
evaluation/hellinger_one2one.py:40
↓ 2 callersMethodconstruct_graph
Construct a TensorFlow graph for the AutoEncoding network Args: input_seq_pl: tf placeholder for input data: size [batch_size,
motion_repr_learning/ae/DAE.py:166
↓ 2 callersFunctioncreate_vectors
Extract features from a given pair of audio and motion files Args: audio_filename: file name for an audio file (.wav) gest
data_processing/create_vector.py:126
↓ 2 callersFunctionderivative
Calculate numerical derivative (by FDM) of a 1d array Args: x: input space x f: Function of x Returns: der: numerica
data_processing/tools.py:140
↓ 2 callersFunctionget_directories
(directory)
evaluation/hellinger.py:104
↓ 2 callersFunctionhellinger
Compute Hellinger distance between two histograms Args: hist1: first histogram hist2: second histogram of the
evaluation/hellinger_one2one.py:72
↓ 2 callersFunctionloss_reconstruction
Reconstruction error. Square of the RMSE Args: output: tensor of net output target: tensor of net we are trying to reconstruct
motion_repr_learning/ae/utils/utils.py:80
↓ 2 callersFunctionread_binary_dataset
(dataset_name)
motion_repr_learning/ae/utils/data.py:254
↓ 2 callersFunctionsave_result
Write computed histogram to CSV Args: lines: list of strings to be written out_dir: output directory
evaluation/calc_distance.py:90
↓ 2 callersFunctionsave_result
Write computed measure to CSV Args: lines: list of strings to be written out_dir: output directory me
evaluation/calc_jerk.py:89
↓ 2 callersFunctionsimple_moving_average
Apply simple moving average filter to a gesture Args: pos_array: body keypoint positions to filter winlen: averagi
helpers/filters/ma_filter.py:4
↓ 2 callersFunctionwrite_test_seq_in_binary
Read test sequence in c3d format and write it into the binart file Args: input_file_name: the name of the input file
motion_repr_learning/ae/utils/data.py:322
↓ 1 callersFunction_create_dir
(data_dir)
data_processing/prepare_data.py:104
↓ 1 callersMethod_create_variables
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution.
motion_repr_learning/ae/DAE.py:258
↓ 1 callersFunction_download_datasets
(data_dir)
data_processing/prepare_data.py:30
↓ 1 callersFunction_format_datasets
(extracted_dir)
data_processing/prepare_data.py:123
↓ 1 callersFunction_split_and_format_data
(data_dir)
data_processing/prepare_data.py:23
↓ 1 callersFunctionadd_noise
Add Gaussian noise to the data Args: x - input vector variance_multiplier - coe
motion_repr_learning/ae/utils/utils.py:65
↓ 1 callersFunctionapply_one_euro
Apply one euro filter to a gesture Original implementation can be downloaded from http://cristal.univ-lille.fr/~casiez/1euro/ Ar
helpers/filters/one_euro_filter.py:81
↓ 1 callersFunctioncompute_prosody
(audio_filename, time_step=0.05)
data_processing/alt_prosody.py:13
↓ 1 callersFunctioncreate_hierarchy_nodes
Load bvh hierarchy nodes Args: filename: name of the hierarchy file Returns: nodes: bvh hierarchy nodes
helpers/convert_original.py:17
↓ 1 callersFunctioncreate_hierarchy_nodes
Create hierarchy nodes: an array of markers used in the motion capture Args: hierarchy: bvh file read in a structure Returns:
data_processing/create_vector.py:259
↓ 1 callersFunctioncreate_test_sequences
Create test sequences Args: nodes: markers used in motion caption dataset: dataset name ('train', 'test' or 'dev') R
data_processing/create_vector.py:440
↓ 1 callersFunctionget_directories
(directory)
evaluation/hellinger_one2one.py:146
↓ 1 callersFunctionhellinger
Compute Hellinger distance between two histograms Args: hist1: first histogram hist2: second histogram of the
evaluation/hellinger.py:44
↓ 1 callersMethodlastValue
(self)
helpers/filters/one_euro_filter.py:36
↓ 1 callersFunctionlayerwise_pretrain
Pretrain AutoEncoding neural network in a layer-wise way Args: nn: neural network to be trained trainers: opt
motion_repr_learning/ae/train.py:424
↓ 1 callersFunctionload_bvh
Load bvh motion frames Args: filename: bvh filename Returns: frames: list of bvh frames
helpers/convert_original.py:89
↓ 1 callersFunctionmain
()
helpers/apply_filters.py:32
↓ 1 callersFunctionmain
()
helpers/convert_original.py:194
↓ 1 callersFunctionmain
()
helpers/remove_velocity.py:45
↓ 1 callersFunctionmain
()
evaluation/hellinger.py:68
↓ 1 callersFunctionmain
()
evaluation/hellinger_one2one.py:104
↓ 1 callersFunctionmain
()
evaluation/calc_distance.py:115
↓ 1 callersFunctionmain
()
evaluation/calc_errors.py:104
↓ 1 callersFunctionmain
()
evaluation/calc_jerk.py:114
↓ 1 callersFunctionnatural_sort
(l, key=natural_sort_key)
evaluation/hellinger.py:64
↓ 1 callersFunctionpad_sequence
Pad array of features in order to be able to take context at each time-frame We pad N_CONTEXT / 2 frames before and after the signal by the f
data_processing/create_vector.py:36
↓ 1 callersFunctionpredict
Predict human gesture based on the speech Args: model_name: name of the Keras model to be used input_file: file name of the au
predict.py:12
↓ 1 callersFunctionread_dataset_and_write_in_binary
Reads 3 datasets: "Train","Dev" and "Eval" from the CMU MoCap dataset in bvh format And write them in the binary format.
motion_repr_learning/ae/utils/data.py:212
↓ 1 callersFunctionread_joint_names
Read motion capture's body joint names from file Args: filename: file name to read Returns: joint_names: list o
evaluation/hellinger.py:23
↓ 1 callersFunctionread_joint_names
Read motion capture's body joint names from file Args: filename: file name to read Returns: joint_names: list o
evaluation/hellinger_one2one.py:23
↓ 1 callersFunctionread_joint_names
Read motion capture's body joint names from file Args: filename: file name to read Returns: joint_names: list o
evaluation/calc_distance.py:17
↓ 1 callersFunctionread_joint_names
Read motion capture's body joint names from file Args: filename: file name to read Returns: joint_names: list o
evaluation/calc_errors.py:16
↓ 1 callersFunctionread_joint_names
Read motion capture's body joint names from file Args: filename: file name to read Returns: joint_names: list o
evaluation/calc_jerk.py:16
↓ 1 callersFunctionread_joint_names
(filename)
evaluation/plot_results.py:12
↓ 1 callersFunctionread_unlabeled_data
Reads all 3 datasets from CMU MoCap dataset in C3D format Args: train_dir - address to the train, dev and eval datasets
motion_repr_learning/ae/utils/data.py:127
↓ 1 callersFunctionreject_outliers
(data, m=5.189)
evaluation/hellinger_one2one.py:97
↓ 1 callersFunctionremove_velocity
Remove velocity values from raw prediction data Args: data: array containing both position and velocity values dim:
helpers/remove_velocity.py:29
↓ 1 callersFunctionremove_velocity
Remove velocity values from raw prediction data Args: data: array containing both position and velocity values dim:
evaluation/calc_errors.py:33
↓ 1 callersFunctionrot_vec_to_abs_pos_vec
Transform vectors of the human motion from the joint angles to the absolute positions Args: frames: human motion in the join angles s
data_processing/create_vector.py:321
↓ 1 callersFunctionrotation_to_position
Convert bvh frames to body keypoint positions Args: frames: bvh frames nodes: bvh hierarchy nodes Retur
helpers/convert_original.py:126
↓ 1 callersFunctionsave_positions
Save body keypoint positions into file Args: out_dir: output directory gesture_name: basename of the output file
helpers/remove_velocity.py:16
↓ 1 callersFunctionshorten3
(arr1, arr2, arr3)
data_processing/tools.py:68
↓ 1 callersFunctiontrain
Train a neural network to take speech as input and produce gesture as an output Args: model_file: file to store the model Retur
train.py:48
↓ 1 callersFunctionvisualize
(mocap_seq, test=False)
motion_repr_learning/ae/utils/data.py:362
FunctionAPE
Compute Average Position Error (APE) Args: original: array containing joint positions of original gesture predicted:
evaluation/calc_errors.py:77
FunctionMAE
Compute Mean Absolute Error (MAE) Args: original: array containing joint positions of original gesture predicted: ar
evaluation/calc_errors.py:49
Method__call__
(self, value, timestamp=None, alpha=None)
helpers/filters/one_euro_filter.py:25
Method__call__
(self, x, timestamp=None)
helpers/filters/one_euro_filter.py:64
Method__getitem__
Get AutoEncoder tf variable Returns the specified variable created by this object. Names are weights#, biases#, biases#_out, weights#
motion_repr_learning/ae/DAE.py:231
Method__init__
(self, alpha)
helpers/filters/one_euro_filter.py:15
Method__init__
(self, freq, mincutoff=1.0, beta=0.0, dcutoff=1.0)
helpers/filters/one_euro_filter.py:44
Method__init__
DataInfo initializer Args: data_sigma: variance in the dataset train_shape: dimensionality of the train dataset
motion_repr_learning/ae/train.py:25
Method__init__
DAE initializer Args: shape: list of ints specifying num input, hidden1 units,...hidden_n units,
motion_repr_learning/ae/DAE.py:36
Method__init__
(self, sequences, batch_size)
motion_repr_learning/ae/utils/utils.py:22
Method__init__
(self, sequences, batch_size)
motion_repr_learning/ae/utils/data.py:24
Method__setitem__
Store a TensorFlow variable NOTE: Don't call this explicitly. It should be used only internally when setting up variables.
motion_repr_learning/ae/DAE.py:245
Functionbarplot_annotate_brackets
Annotate barplot with p-values. :param num1: number of left bar to put bracket over :param num2: number of right bar to put bracket over
evaluation/plot_results.py:50
Functioncalculate_pitch
Calculate F0 contour of a given speech file Args: audio_filename: address of a speech file Returns: F0 contour in a log scal
data_processing/tools.py:163
Functioncompute_acceleration
Compute acceleration between adjacent frames Args: data: array containing joint positions of gesture dim:
evaluation/calc_distance.py:62
Functioncompute_acceleration
Compute acceleration between adjacent frames Args: data: array containing joint positions of gesture dim:
evaluation/calc_jerk.py:61
Functioncompute_jerks
Compute jerk between adjacent frames Args: data: array containing joint positions of gesture dim: gesture
evaluation/calc_jerk.py:33
Functioncompute_velocity
Compute velocity between adjacent frames Args: data: array containing joint positions of gesture dim: gest
evaluation/calc_distance.py:34
next →1–100 of 119, ranked by callers