MCPcopy Create free account

hub / github.com/SonyCSLParis/cae-invar / functions

Functions149 in github.com/SonyCSLParis/cae-invar

↓ 50 callersFunctionto_numpy
(variable)
complex_auto/util.py:71
↓ 23 callersFunctionmake_tiles
Plots tiles in a grid (performs a normalization!). Useful for plotting the weights of a neural network or data instances. :param tiles_i
complex_auto/plot.py:132
↓ 23 callersFunctionplot_hist
Save a histogram of values titled with title in file filename.
complex_auto/plot.py:252
↓ 13 callersFunctioncuda_variable
(tensor, volatile=False)
complex_auto/util.py:58
↓ 9 callersMethodbackward
(self, amplitudes, phases)
complex_auto/complex.py:39
↓ 6 callersFunctionplot_audiobatch
(batch: torch.Tensor, fn, num_example: int=30, verbose: bool=False)
complex_auto/plotting.py:187
↓ 3 callersFunctionload_pyc_bz
Loads data from file (bz2 compressed) :param fn: file name of dumped data :return: loaded data
complex_auto/util.py:98
↓ 3 callersFunctionread_file
(fn)
complex_auto/util.py:31
↓ 3 callersFunctionsave_pyc_bz
Saves data to file (bz2 compressed) :param data: data to save :param fn: file name of dumped data
complex_auto/util.py:88
↓ 2 callersFunctioncolor_iterator
(cmap, n)
complex_auto/plot.py:323
↓ 2 callersFunctionconfig_to_args
(config, args)
complex_auto/config.py:87
↓ 2 callersFunctionfreq2bin
(f, N, fs)
complex_auto/motives_extractor/utils.py:508
↓ 2 callersFunctionget_bpm
Gets the correct bpm based on the wav_file name. If the wav_file is not contained in the JKU dataset, raises error. Parameters ----------
complex_auto/motives_extractor/extractor.py:53
↓ 2 callersFunctionget_config
Loads one or more configuration files and validates it against a specification. Parameters ---------- files : string or
complex_auto/config.py:25
↓ 2 callersFunctionget_input_repr
(file)
convert.py:177
↓ 2 callersMethodget_ngram_by_idx
(self, index)
complex_auto/dataloader.py:193
↓ 2 callersFunctionget_offset
Returns the offset (pick up measure), if any, from the score.
complex_auto/motives_extractor/utils.py:203
↓ 2 callersFunctionmedian_filter
Applies a median filter of size L to the matrix of row observations X.
complex_auto/motives_extractor/utils.py:239
↓ 2 callersFunctionpatterns_to_csv
Formats the patterns into the csv format. Parameters ---------- pattersn : list List of patterns with its occurrences. midi_s
complex_auto/motives_extractor/extractor.py:133
↓ 2 callersMethodpca_expvar
Percentage of variance explained by each component Returns ------- expvar: numpy array Explained varian
complex_auto/transform.py:63
↓ 2 callersMethodpca_transform
Project the data in the M dimensional space Returns ------- transform: numpy array Transformed data
complex_auto/transform.py:75
↓ 2 callersFunctionplot_fs_2d
Plot a given dataset and utilizes labels. Plots a given 2d dataset and uses different colors for datapoints belonging to different labels
complex_auto/plot.py:276
↓ 2 callersFunctionplot_train_state_2d
(loss_curve_eval, loss_curve_train, model, x, y, epoch, out_dir, length_ngram)
complex_auto/plotting.py:21
↓ 2 callersFunctionprepare_audio_inputs
(input_files)
complex_auto/util.py:46
↓ 2 callersFunctionread_wav
Reads the wav file and downsamples to 11025 Hz.
complex_auto/motives_extractor/utils.py:472
↓ 2 callersFunctionrun_experiment
(model, start_epoch)
train.py:247
↓ 2 callersMethodset_to_norm_graph
(self, val)
complex_auto/complex.py:62
↓ 2 callersFunctionstandardize
Performs contrast normalization (zero mean, unit variance) along the given axis. :param x: array to normalize :param axis: normalize
complex_auto/cqt.py:24
↓ 2 callersMethodstandardize
(self, ngram)
complex_auto/dataloader.py:261
↓ 2 callersMethodstandardize
(self, signal)
complex_auto/dataloader.py:356
↓ 2 callersFunctionstandardize_
(ngram)
complex_auto/dataloader.py:28
↓ 2 callersFunctionto_amp_phase
(input, step_size)
convert.py:123
↓ 1 callersFunctioncached
If `cache_fn` exists, return the unpickled contents of that file (the cache file is treated as a bzipped pickle file). If this fails, com
complex_auto/util.py:111
↓ 1 callersFunctioncheck_audio_files
(filelist)
complex_auto/util.py:40
↓ 1 callersMethodcheck_lengths
(self)
complex_auto/dataloader.py:85
↓ 1 callersFunctioncompute_CQT_filters
Computes the CQT filters.
complex_auto/motives_extractor/utils.py:512
↓ 1 callersFunctioncompute_segment_score_omega
Computes the score for a given segment. The score is computed by taking a look at the trace of the block of the ssm.
complex_auto/motives_extractor/utils.py:370
↓ 1 callersFunctioncompute_spectrogram
Computes a spectrogram.
complex_auto/motives_extractor/utils.py:486
↓ 1 callersFunctioncompute_ssm
Computes the self similarity matrix from an audio file. Parameters ---------- wav_file: str Path to the wav file to be read.
complex_auto/motives_extractor/extractor.py:226
↓ 1 callersFunctioncreate_data_loaders
(data, data_eval, data_test, length_ngram, \ samples_epoch, batch_size, transform, emp
train.py:47
↓ 1 callersFunctioncreate_data_mnist
(data, data_eval, batch_size)
train.py:110
↓ 1 callersFunctioncreate_data_sig
(block_size=5000, refresh_cache=True)
train.py:86
↓ 1 callersFunctioncreate_matrices
(dir_results, files, step_size=1, mode='cosine')
convert.py:139
↓ 1 callersFunctioncreate_ss_matrix
(ampls, mode='cosine')
convert.py:117
↓ 1 callersFunctioncuda_tensor
(data, tocuda=True)
complex_auto/util.py:51
↓ 1 callersFunctionensure_dir
Makes sure that the directory dir exists. Parameters ---------- dir: str Path to the directory to be created if needed.
complex_auto/motives_extractor/utils.py:43
↓ 1 callersFunctionequal_norm_loss
(x)
complex_auto/regularize.py:43
↓ 1 callersFunctioneval
(eval_loader)
train.py:170
↓ 1 callersFunctionget_cqts
(files, cache_key='train', rebuild=False, use_nr_samples=-1, processes=10, sr=-1, args=None)
complex_auto/cqt.py:89
↓ 1 callersFunctionget_gt_patterns
Obtains the set of files containing the patterns and its occcurrences given the annotator directories. Parameters ---------- annotato
complex_auto/motives_extractor/parse_gt.py:79
↓ 1 callersMethodget_ngram_count
(self)
complex_auto/dataloader.py:183
↓ 1 callersFunctionget_out_file
Given a set of patterns corresponding to a single musical piece and the output directory, get the output file path. Parameters ----------
complex_auto/motives_extractor/parse_gt.py:26
↓ 1 callersMethodget_pairs_same_song
(self)
complex_auto/dataloader.py:218
↓ 1 callersMethodget_random_ngram
(self)
complex_auto/dataloader.py:209
↓ 1 callersFunctionget_signal
(fn, use_nr_samples=-1, rand_midpoint=False, sr=-1)
complex_auto/cqt.py:52
↓ 1 callersFunctionget_smaller_dur_csv
Gets the smaller duration of a csv formatted score.
complex_auto/motives_extractor/utils.py:169
↓ 1 callersFunctionget_total_dur_csv
Computes the total duration of a csv formatted score.
complex_auto/motives_extractor/utils.py:178
↓ 1 callersFunctionload_audio
(fn, sr=-1)
complex_auto/cqt.py:39
↓ 1 callersFunctionmain
Main function.
extract_motives_eval.py:83
↓ 1 callersFunctionmain
Main function.
extract_motives.py:82
↓ 1 callersFunctionmain
Main function to run the audio polyphonic version of patterns finding.
complex_auto/motives_extractor/extractor.py:428
↓ 1 callersFunctionmain
Main function to parse the ground truth.
complex_auto/motives_extractor/parse_gt.py:157
↓ 1 callersFunctionmake_tile
This function could do a simple hstack, if it weren't for the separation lines that we want between viewpoints. Furthermore, we need to r
complex_auto/plot.py:179
↓ 1 callersFunctionmidi_to_chroma
Given a midi pitch (e.g. 60 == C), returns its corresponding chroma class value. A == 0, A# == 1, ..., G# == 11
complex_auto/motives_extractor/utils.py:208
↓ 1 callersFunctionnorm_loss
(x)
complex_auto/regularize.py:39
↓ 1 callersFunctionnormalize
(x)
complex_auto/util.py:25
↓ 1 callersFunctionobtain_patterns
Given a set of segments, find its occurrences and thus obtain the possible patterns. Parameters ---------- segments : list Li
complex_auto/motives_extractor/extractor.py:176
↓ 1 callersFunctionoccurrence_to_csv
Given an occurrence, return the csv formatted one into a list (onset,midi). Parameters ---------- start : float Start ind
complex_auto/motives_extractor/extractor.py:100
↓ 1 callersFunctiononsets_to_raw
(csv_occ, h, offset, correct)
complex_auto/motives_extractor/extractor.py:167
↓ 1 callersFunctionparse_patterns
Parses the set of patterns and saves the results into the output file. Parameters ---------- patterns: list of list of strings (files)
complex_auto/motives_extractor/parse_gt.py:49
↓ 1 callersMethodpca_eigvec
Principal components Returns ------- components: numpy array M Principal components
complex_auto/transform.py:52
↓ 1 callersFunctionplot_pca
(loader, fn="pca_trans.png")
train.py:123
↓ 1 callersFunctionplot_train_state
(loss_curve_eval, loss_curve_train, model, x, y, epoch)
train.py:35
↓ 1 callersFunctionplot_train_state_1d
(loss_curve_eval, loss_curve_train, model, x, y, epoch, out_dir, length_ngram)
complex_auto/plotting.py:110
↓ 1 callersFunctionprepro
(X)
complex_auto/motives_extractor/extractor.py:298
↓ 1 callersFunctionprocess
(refdir, estdir)
extract_motives_eval.py:47
↓ 1 callersFunctionprocess
Main process to find the patterns in a polyphonic audio file. Parameters ---------- wav_file : str Path to the wav file to be ana
complex_auto/motives_extractor/extractor.py:303
↓ 1 callersFunctionprocess
Main process to parse the ground truth csv files. Parameters ---------- jku_dir: string Directory where the JKU Dataset is locate
complex_auto/motives_extractor/parse_gt.py:109
↓ 1 callersFunctionprocess_audio_poly
(files, outdir, domain, tol, ssm_read_pk, read_pk, rho, n_jobs=5, csv_files=None,
extract_motives.py:70
↓ 1 callersFunctionsave_hist
Save a histogram of values titled with title in file filename.
complex_auto/motives_extractor/extractor.py:281
↓ 1 callersFunctionsave_repres
(dir_results, files, step_size=1)
convert.py:189
↓ 1 callersFunctionscale_to_unit_interval
Scales all values in the ndarray ndar to be between 0 and 1
complex_auto/plot.py:241
↓ 1 callersMethodset_to_norm
Sets the norms of all convolutional kernels of the C-GAE to a specific value. :param val: norms of kernels are set to this v
complex_auto/complex.py:46
↓ 1 callersFunctionto_cqt_repr
(fn, n_bins, bins_per_oct, fmin, hop_length, use_nr_samples, rand_midpoint=False, standard=Fal
complex_auto/cqt.py:70
↓ 1 callersFunctionto_mono
(signal)
complex_auto/cqt.py:46
↓ 1 callersFunctiontrain
Trains the C-GAE for one epoch :param epoch: the current training epoch
train.py:194
↓ 1 callersMethodtrans_pitch_shift
(self, ngram, shifty)
complex_auto/dataloader.py:255
↓ 1 callersMethodtrans_speed_change
(self, ngram, scale_x)
complex_auto/dataloader.py:232
↓ 1 callersMethodtrans_time_shift
(self, end, song_id, start, shiftx)
complex_auto/dataloader.py:258
↓ 1 callersMethodtransp0
Transposes axis 0 (zero-based) of x by [shift] steps. Missing information is padded with zeros. :param x: the array to transp
complex_auto/dataloader.py:267
↓ 1 callersFunctionuniquifier
(seq)
complex_auto/plot.py:30
↓ 1 callersFunctionvalid
(config)
complex_auto/config.py:102
↓ 1 callersMethodx_mean
Mean vector of the observed data Returns ------- x_bar: numpy_array The mean vector of the observed dat
complex_auto/transform.py:87
Method__getitem__
(self, index)
complex_auto/dataloader.py:41
Method__getitem__
(self, index)
complex_auto/dataloader.py:102
Method__getitem__
(self, index)
complex_auto/dataloader.py:332
Method__init__
(self, n_in, n_out, dropout=.5, learn_norm=False)
complex_auto/complex.py:17
Method__init__
(self, data_x, data_y, standardize=False)
complex_auto/dataloader.py:37
Method__init__
Returns random ngrams from data, can shift and scale data in two dimensions :param data_x: data (2d) :param length_n
complex_auto/dataloader.py:51
Method__init__
Constructor for 1D signal dataset :param filelist: list of audio file names (str) :param sr: desired sam
complex_auto/dataloader.py:304
next →1–100 of 149, ranked by callers