Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GestureGeneration/Speech_driven_gesture_generation_with_autoencoder
/ functions
Functions
119 in github.com/GestureGeneration/Speech_driven_gesture_generation_with_autoencoder
⨍
Functions
119
◇
Types & classes
8
↓ 8 callers
Function
calculate_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 callers
Function
calculate_spectrogram
Calculate spectrogram for the audio file Args: audio_filename: audio file name Returns: log spectrogram values
data_processing/tools.py:267
↓ 6 callers
Method
_w
(self, n, suffix="")
motion_repr_learning/ae/DAE.py:142
↓ 6 callers
Function
get_average
(feature_name)
evaluation/plot_results.py:94
↓ 6 callers
Function
normalize
(hist)
evaluation/hellinger_one2one.py:68
↓ 5 callers
Method
_b
(self, n, suffix="")
motion_repr_learning/ae/DAE.py:145
↓ 5 callers
Method
_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 callers
Function
average
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 callers
Method
__alpha
(self, cutoff)
helpers/filters/one_euro_filter.py:59
↓ 4 callers
Function
extract_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 callers
Function
natural_sort
(l, key=natural_sort_key)
evaluation/hellinger_one2one.py:92
↓ 4 callers
Function
normalize
(hist)
evaluation/hellinger.py:40
↓ 4 callers
Function
read_csv
(filename)
evaluation/plot_results.py:19
↓ 4 callers
Method
run_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 callers
Function
shorten
(arr1, arr2)
data_processing/tools.py:60
↓ 3 callers
Function
_files_to_pandas_dataframe
(extracted_dir, set_name, idx_range)
data_processing/prepare_data.py:131
↓ 3 callers
Function
create
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 callers
Function
create_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 callers
Function
home_out
(path)
motion_repr_learning/ae/utils/flags.py:11
↓ 3 callers
Function
prepare_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 callers
Function
read_a_folder
(curr_dir)
motion_repr_learning/ae/utils/data.py:104
↓ 3 callers
Function
read_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 callers
Function
reshape_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 callers
Function
save_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 callers
Method
__setAlpha
(self, alpha)
helpers/filters/one_euro_filter.py:19
↓ 2 callers
Function
check_params
()
motion_repr_learning/ae/learn_dataset_encoding.py:52
↓ 2 callers
Function
compute_speed
Compute speed between adjacent frames Args: data: array containing joint positions of gesture dim: gesture
evaluation/hellinger_one2one.py:40
↓ 2 callers
Method
construct_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 callers
Function
create_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 callers
Function
derivative
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 callers
Function
get_directories
(directory)
evaluation/hellinger.py:104
↓ 2 callers
Function
hellinger
Compute Hellinger distance between two histograms Args: hist1: first histogram hist2: second histogram of the
evaluation/hellinger_one2one.py:72
↓ 2 callers
Function
loss_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 callers
Function
read_binary_dataset
(dataset_name)
motion_repr_learning/ae/utils/data.py:254
↓ 2 callers
Function
save_result
Write computed histogram to CSV Args: lines: list of strings to be written out_dir: output directory
evaluation/calc_distance.py:90
↓ 2 callers
Function
save_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 callers
Function
simple_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 callers
Function
write_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 callers
Function
_create_dir
(data_dir)
data_processing/prepare_data.py:104
↓ 1 callers
Method
_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 callers
Function
_download_datasets
(data_dir)
data_processing/prepare_data.py:30
↓ 1 callers
Function
_format_datasets
(extracted_dir)
data_processing/prepare_data.py:123
↓ 1 callers
Function
_split_and_format_data
(data_dir)
data_processing/prepare_data.py:23
↓ 1 callers
Function
add_noise
Add Gaussian noise to the data Args: x - input vector variance_multiplier - coe
motion_repr_learning/ae/utils/utils.py:65
↓ 1 callers
Function
apply_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 callers
Function
compute_prosody
(audio_filename, time_step=0.05)
data_processing/alt_prosody.py:13
↓ 1 callers
Function
create_hierarchy_nodes
Load bvh hierarchy nodes Args: filename: name of the hierarchy file Returns: nodes: bvh hierarchy nodes
helpers/convert_original.py:17
↓ 1 callers
Function
create_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 callers
Function
create_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 callers
Function
get_directories
(directory)
evaluation/hellinger_one2one.py:146
↓ 1 callers
Function
hellinger
Compute Hellinger distance between two histograms Args: hist1: first histogram hist2: second histogram of the
evaluation/hellinger.py:44
↓ 1 callers
Method
lastValue
(self)
helpers/filters/one_euro_filter.py:36
↓ 1 callers
Function
layerwise_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 callers
Function
load_bvh
Load bvh motion frames Args: filename: bvh filename Returns: frames: list of bvh frames
helpers/convert_original.py:89
↓ 1 callers
Function
main
()
helpers/apply_filters.py:32
↓ 1 callers
Function
main
()
helpers/convert_original.py:194
↓ 1 callers
Function
main
()
helpers/remove_velocity.py:45
↓ 1 callers
Function
main
()
evaluation/hellinger.py:68
↓ 1 callers
Function
main
()
evaluation/hellinger_one2one.py:104
↓ 1 callers
Function
main
()
evaluation/calc_distance.py:115
↓ 1 callers
Function
main
()
evaluation/calc_errors.py:104
↓ 1 callers
Function
main
()
evaluation/calc_jerk.py:114
↓ 1 callers
Function
natural_sort
(l, key=natural_sort_key)
evaluation/hellinger.py:64
↓ 1 callers
Function
pad_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 callers
Function
predict
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 callers
Function
read_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 callers
Function
read_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 callers
Function
read_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 callers
Function
read_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 callers
Function
read_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 callers
Function
read_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 callers
Function
read_joint_names
(filename)
evaluation/plot_results.py:12
↓ 1 callers
Function
read_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 callers
Function
reject_outliers
(data, m=5.189)
evaluation/hellinger_one2one.py:97
↓ 1 callers
Function
remove_velocity
Remove velocity values from raw prediction data Args: data: array containing both position and velocity values dim:
helpers/remove_velocity.py:29
↓ 1 callers
Function
remove_velocity
Remove velocity values from raw prediction data Args: data: array containing both position and velocity values dim:
evaluation/calc_errors.py:33
↓ 1 callers
Function
rot_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 callers
Function
rotation_to_position
Convert bvh frames to body keypoint positions Args: frames: bvh frames nodes: bvh hierarchy nodes Retur
helpers/convert_original.py:126
↓ 1 callers
Function
save_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 callers
Function
shorten3
(arr1, arr2, arr3)
data_processing/tools.py:68
↓ 1 callers
Function
train
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 callers
Function
visualize
(mocap_seq, test=False)
motion_repr_learning/ae/utils/data.py:362
Function
APE
Compute Average Position Error (APE) Args: original: array containing joint positions of original gesture predicted:
evaluation/calc_errors.py:77
Function
MAE
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
Function
barplot_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
Function
calculate_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
Function
compute_acceleration
Compute acceleration between adjacent frames Args: data: array containing joint positions of gesture dim:
evaluation/calc_distance.py:62
Function
compute_acceleration
Compute acceleration between adjacent frames Args: data: array containing joint positions of gesture dim:
evaluation/calc_jerk.py:61
Function
compute_jerks
Compute jerk between adjacent frames Args: data: array containing joint positions of gesture dim: gesture
evaluation/calc_jerk.py:33
Function
compute_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