Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chomeyama/wavehax
/ functions
Functions
159 in github.com/chomeyama/wavehax
⨍
Functions
159
◇
Types & classes
39
↳
Endpoints
1
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
Method
analysis
Decompose the input signal into num_split subscale signals. Args: x (Tensor): Input signal with shape (B, 1, T).
wavehax/modules/decomposer.py:210
Method
analysis
Decompose the input signal into num_split subscale signals. Args: x (Tensor): Input signal with shape (B, 1, T).
wavehax/modules/decomposer.py:305
Function
check_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
Function
dynamic_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
Method
extra_repr
(self)
wavehax/modules/drop.py:54
Function
extract_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
Function
fill_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
Method
forward
(self, x: Tensor)
wavehax/modules/drop.py:51
Method
forward
Calculate forward propagation. Args: real (Tensor): Real part of the input tensor with shape (batch, channels, height, w
wavehax/modules/complex.py:248
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor with shape (batch, channels, height, width). Retu
wavehax/modules/resblock.py:90
Method
forward
Calculate forward propagation. Args: real (Tensor): Input real part tensor with shape (batch, channels, height, width).
wavehax/modules/resblock.py:171
Method
forward
(self, f0: torch.Tensor)
wavehax/modules/PchipF0UpsamplerTorch.py:64
Method
forward
Perform the forward Short-Time Fourier Transform (STFT) on the input waveform. Args: x (Tensor): Input waveform with sha
wavehax/modules/stft.py:93
Method
forward
Compute mel-spectrogram from the input waveforms. Args: audio (Tensor): Input waveforms with shape (batch, samples) or (
wavehax/modules/stft.py:198
Method
forward
Apply batch normalization to the input tensor. Args: x (Tensor): Input tensor with shape (batch, channels, height, width
wavehax/modules/norm.py:141
Method
forward
Apply normalization to the input tensor. Args: x (Tensor): Input tensor with shape (batch, channels, height, width).
wavehax/modules/norm.py:209
Method
forward
Apply batch normalization to the input tensor. Args: x (Tensor): Input tensor with shape (batch, channels, height, width
wavehax/modules/norm.py:254
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor with shape (batch, in_channels, length). d (Te
wavehax/modules/conv.py:100
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor with shape (batch, channels, bins, frames). dh
wavehax/modules/conv.py:225
Method
forward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:102
Method
forward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:155
Method
forward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:237
Method
forward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:308
Method
forward
Calculate forward propagation. Args: x (Tensor): Input waveforms with shape (batch, 1, length). Returns:
wavehax/discriminators/univnet.py:371
Method
forward
Calculate forward propagation. Args: cond (Tensor): Conditioning features with shape (batch, in_channels, frames).
wavehax/generators/wavehax.py:132
Method
forward
Calculate forward propagation. Args: cond (Tensor): Conditioning features with shape (batch, in_channels, frames).
wavehax/generators/wavehax.py:295
Method
forward
Calculate forward propagation. Args: cond (Tensor): Conditioning features with shape (batch, in_channels, frames).
wavehax/generators/wavehax.py:441
Method
forward
Calculate the L1 loss between mel-spectrograms of the generated and target waveforms. Args: x (Tensor): Generated audio
wavehax/losses/spectral.py:48
Method
forward
Calculate adversarial loss for both generator and discriminator. Args: p_fakes (List[Tensor]): List of discriminator out
wavehax/losses/adv.py:44
Method
forward
Calculate feature matching loss. Args: fmaps_fake (List[Tensor]): List of discriminator's latent features from generated
wavehax/losses/adv.py:122
Function
generate_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
Function
generate_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
Function
generate_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
Function
generate_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
Function
generate_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
Function
generate_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
Function
griffin_lim
Perform the Griffin-Lim algorithm for phase recovery from a magnitude spectrogram. Args: spectrogram (Tensor): Input complex spectro
wavehax/modules/stft.py:221
Method
inference
(self, cond: Tensor, f0: Tensor)
wavehax/generators/wavehax.py:337
Method
inference
(self, cond: Tensor, f0: Tensor)
wavehax/generators/wavehax.py:500
Method
init_weights
Initialize weights of the module. Args: m (Any): Module to initialize.
wavehax/generators/wavehax.py:120
Method
init_weights
Initialize weights of the module. Args: m (Any): Module to initialize.
wavehax/generators/wavehax.py:283
Method
init_weights
(self, m)
wavehax/generators/wavehax.py:435
Function
normalize_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
Function
remove_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
Function
spectral_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
Function
spk_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
Method
synthesis
Reconstruct the full-scale signal from subscale signals. Args: xs (List[Tensor]): List of subscale signals, each with sh
wavehax/modules/decomposer.py:225
Method
synthesis
Reconstruct the full-scale signal from subscale signals. Args: xs (List[Tensor]): List of subscale signals, each with sh
wavehax/modules/decomposer.py:326
Function
weight_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
← previous
101–159 of 159, ranked by callers