MCPcopy Create free account

hub / github.com/chomeyama/wavehax / functions

Functions159 in github.com/chomeyama/wavehax

Method_hinge_fake_loss
Calculate hinge loss for fake samples.
wavehax/losses/adv.py:104
Method_hinge_real_loss
Calculate hinge loss for real samples.
wavehax/losses/adv.py:100
Method_mse_adv_loss
Calculate MSE loss for generator.
wavehax/losses/adv.py:84
Method_mse_fake_loss
Calculate MSE loss for fake samples.
wavehax/losses/adv.py:92
Method_mse_real_loss
Calculate MSE loss for real samples.
wavehax/losses/adv.py:88
Methodanalysis
Decompose the input signal into num_split subscale signals. Args: x (Tensor): Input signal with shape (B, 1, T).
wavehax/modules/decomposer.py:210
Methodanalysis
Decompose the input signal into num_split subscale signals. Args: x (Tensor): Input signal with shape (B, 1, T).
wavehax/modules/decomposer.py:305
Functioncheck_hdf5
Checks if a specified dataset exists in an HDF5 file. Args: hdf5_name (str): HDF5 file path. hdf5_path (str): Dataset path w
wavehax/utils/utils.py:160
Functiondynamic_import
Dynamically imports a Python class from a module using its full module path. Args: module_class (str): Full module path in the forma
wavehax/utils/utils.py:26
Methodextra_repr
(self)
wavehax/modules/drop.py:54
Functionextract_acoustic_features
Extract various acoustic features (F0, mel-spectrogram, spectral envelope, etc.) from a list of WAV files. Args: queue (multiprocess
wavehax/bin/extract_features.py:164
Functionfill_zeros_with_neighbors
Replaces zero values in the input array with the nearest non-zero values from neighboring indices. Args: arr (ndarray): Input array.
wavehax/utils/features.py:43
Methodforward
(self, x: Tensor)
wavehax/modules/drop.py:51
Methodforward
Calculate forward propagation. Args: real (Tensor): Real part of the input tensor with shape (batch, channels, height, w
wavehax/modules/complex.py:248
Methodforward
Applies the activation function to the real and imaginary parts of the input complex tensor. Args: real (Tensor): The re
wavehax/modules/complex.py:280
Methodforward
Apply batch normalization to the input complex-valued tensor. Args: real (Tensor): Real part of the input tensor with sh
wavehax/modules/complex.py:488
Methodforward
Apply layer normalization to the input complex tensor. Args: real (Tensor): The real part of the input tensor with shape
wavehax/modules/complex.py:583
Methodforward
Apply batch normalization to the input complex-valued tensor. Args: real (Tensor): Real part of the input tensor with sh
wavehax/modules/complex.py:647
Methodforward
Apply layer normalization to the input complex-valued tensor. Args: real (Tensor): Real part of the input tensor with sh
wavehax/modules/complex.py:686
Methodforward
Calculate forward propagation. Args: x (Tensor): Input tensor with shape (batch, channels, height, width). Retu
wavehax/modules/resblock.py:90
Methodforward
Calculate forward propagation. Args: real (Tensor): Input real part tensor with shape (batch, channels, height, width).
wavehax/modules/resblock.py:171
Methodforward
(self, f0: torch.Tensor)
wavehax/modules/PchipF0UpsamplerTorch.py:64
Methodforward
Perform the forward Short-Time Fourier Transform (STFT) on the input waveform. Args: x (Tensor): Input waveform with sha
wavehax/modules/stft.py:93
Methodforward
Compute mel-spectrogram from the input waveforms. Args: audio (Tensor): Input waveforms with shape (batch, samples) or (
wavehax/modules/stft.py:198
Methodforward
Apply batch normalization to the input tensor. Args: x (Tensor): Input tensor with shape (batch, channels, height, width
wavehax/modules/norm.py:141
Methodforward
Apply normalization to the input tensor. Args: x (Tensor): Input tensor with shape (batch, channels, height, width).
wavehax/modules/norm.py:209
Methodforward
Apply batch normalization to the input tensor. Args: x (Tensor): Input tensor with shape (batch, channels, height, width
wavehax/modules/norm.py:254
Methodforward
Calculate forward propagation. Args: x (Tensor): Input tensor with shape (batch, in_channels, length). d (Te
wavehax/modules/conv.py:100
Methodforward
Calculate forward propagation. Args: x (Tensor): Input tensor with shape (batch, channels, bins, frames). dh
wavehax/modules/conv.py:225
Methodforward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:102
Methodforward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:155
Methodforward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:237
Methodforward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:308
Methodforward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:371
Methodforward
Calculate forward propagation. Args: cond (Tensor): Conditioning features with shape (batch, in_channels, frames).
wavehax/generators/wavehax.py:132
Methodforward
Calculate forward propagation. Args: cond (Tensor): Conditioning features with shape (batch, in_channels, frames).
wavehax/generators/wavehax.py:295
Methodforward
Calculate forward propagation. Args: cond (Tensor): Conditioning features with shape (batch, in_channels, frames).
wavehax/generators/wavehax.py:441
Methodforward
Calculate the L1 loss between mel-spectrograms of the generated and target waveforms. Args: x (Tensor): Generated audio
wavehax/losses/spectral.py:48
Methodforward
Calculate adversarial loss for both generator and discriminator. Args: p_fakes (List[Tensor]): List of discriminator out
wavehax/losses/adv.py:44
Methodforward
Calculate feature matching loss. Args: fmaps_fake (List[Tensor]): List of discriminator's latent features from generated
wavehax/losses/adv.py:122
Functiongenerate_noise
Generate Gaussian noise waveforms of specified duration based on input F0 sequences. Args: f0 (Tensor): F0 sequences with shape (bat
wavehax/modules/periodic.py:19
Functiongenerate_pcph
Generate pseudo-constant-power harmonic waveforms based on input F0 sequences. The spectral envelope of harmonics is designed to have flat sp
wavehax/modules/periodic.py:132
Functiongenerate_pcph_closed_form
An optimized O(1) generator for Pseudo-Constant-Power Harmonic waveforms. Uses the Dirichlet kernel closed-form identity formula for speed an
wavehax/modules/periodic.py:287
Functiongenerate_pcph_linear_decay
Generate pseudo-constant-power harmonic waveforms based on input F0 sequences. The spectral envelope of harmonics is designed to linearly dec
wavehax/modules/periodic.py:201
Functiongenerate_sawtooth
Generate sawtooth waveforms based on F0 sequences. Args: f0 (Tensor): F0 sequences with shape (batch, 1, frames). hop_length
wavehax/modules/periodic.py:73
Functiongenerate_sine
Generate sine waveforms based on F0 sequences. Args: f0 (Tensor): F0 sequences with shape (batch, 1, frames). hop_length (in
wavehax/modules/periodic.py:35
Functiongriffin_lim
Perform the Griffin-Lim algorithm for phase recovery from a magnitude spectrogram. Args: spectrogram (Tensor): Input complex spectro
wavehax/modules/stft.py:221
Methodinference
(self, cond: Tensor, f0: Tensor)
wavehax/generators/wavehax.py:337
Methodinference
(self, cond: Tensor, f0: Tensor)
wavehax/generators/wavehax.py:500
Methodinit_weights
Initialize weights of the module. Args: m (Any): Module to initialize.
wavehax/generators/wavehax.py:120
Methodinit_weights
Initialize weights of the module. Args: m (Any): Module to initialize.
wavehax/generators/wavehax.py:283
Methodinit_weights
(self, m)
wavehax/generators/wavehax.py:435
Functionnormalize_loudness
Normalizes the loudness of an input monaural audio signal. Args: audio (ndarray): Input audio waveform. sample_rate (int): S
wavehax/utils/features.py:23
Functionremove_weight_norm
Remove weight normalization from the given module if it has weight normalization applied. Args: m (Any): Module to remove weight nor
wavehax/modules/utils.py:46
Functionspectral_norm
Apply spectral normalization to the given module if it is a supported layer type. Args: m (Any): Module to apply spectral normalizat
wavehax/modules/utils.py:32
Functionspk_division
Divide a list of audio files based on the speaker and prepare speaker-specific configurations. Args: file_list (List[str]): List of
wavehax/bin/extract_features.py:100
Methodsynthesis
Reconstruct the full-scale signal from subscale signals. Args: xs (List[Tensor]): List of subscale signals, each with sh
wavehax/modules/decomposer.py:225
Methodsynthesis
Reconstruct the full-scale signal from subscale signals. Args: xs (List[Tensor]): List of subscale signals, each with sh
wavehax/modules/decomposer.py:326
Functionweight_norm
Apply weight normalization to the given module if it is a supported layer type. Args: m (Any): Module to apply weight normalization
wavehax/modules/utils.py:18
← previous101–159 of 159, ranked by callers