MCPcopy Create free account

hub / github.com/Kuray107/S4ND-U-Net_speech_enhancement / functions

Functions132 in github.com/Kuray107/S4ND-U-Net_speech_enhancement

↓ 10 callersMethod__init__
(self, features)
model/DSSM_modules/components.py:147
↓ 9 callersFunctionLinearActivation
Returns a linear nn.Module with control over axes order, initialization, and activation
model/DSSM_modules/components.py:165
↓ 9 callersMethod__init__
d_state: the dimension of the state, also denoted by N l_max: the maximum kernel length, also denoted by L. Set l_max=None to always
model/DSSM_modules/s4.py:1282
↓ 9 callersMethodregister
Register a tensor with a configurable learning rate and 0 weight decay
model/DSSM_modules/s4.py:479
↓ 4 callersFunctionActivation
(activation=None, size=None, dim=-1)
model/DSSM_modules/components.py:93
↓ 4 callersMethod__init__
d_state: the dimension of the state, also denoted by N l_max: the maximum sequence length, also denoted by L if this is not
model/DSSM_modules/s4nd.py:51
↓ 3 callersFunction_broadcast_dims
(*tensors)
model/DSSM_modules/s4.py:55
↓ 3 callersMethod_forward
(self, noisy_wav)
model/S4ND-U-Net.py:171
↓ 3 callersMethod_resynthesis_from_phase
(self, mag_spec, org_wav)
model/base_SE_model.py:200
↓ 3 callersMethod_setup_state
Construct dA and dB for discretized state equation
model/DSSM_modules/s4.py:840
↓ 3 callersMethod_step_state_linear
Version of the step function that has time O(N) instead of O(N^2) per step, which takes advantage of the DPLR form and bilinear discretizatio
model/DSSM_modules/s4.py:802
↓ 3 callersMethodistft
Args. complex_spec: torch.Tensor, shape = [B, D, T] length: int Return: wav: torch.Tensor, shape
model/base_SE_model.py:76
↓ 3 callersFunctionpower
Compute A^L and the scan sum_i A^i v_i A: (..., N, N) v: (..., N, L)
model/DSSM_modules/s4.py:183
↓ 3 callersMethodstft
Args. wav: torch.Tensor, shape = [B, T] Return: complex_spec: torch.Tensor, shape = [B, D, T]
model/base_SE_model.py:56
↓ 2 callersMethod_A
(self)
model/DSSM_modules/s4.py:1009
↓ 2 callersMethod_setup_C
Construct C~ from C Two modes are supported: go directly to length L if self.L is 1, or length is doubled
model/DSSM_modules/s4.py:498
↓ 2 callersMethod_w
(self)
model/DSSM_modules/s4.py:625
↓ 2 callersFunctionconvert_to_different_features
(complex_spec: torch.ComplexType)
util/dsp.py:13
↓ 2 callersFunctiondplr
(scaling, N, rank=1, H=1, dtype=torch.float, real_scale=1.0, imag_scale=1.0, random_real=False, random_imag=Fa
model/DSSM_modules/s4.py:379
↓ 2 callersFunctionhz_to_mel
(f)
util/dsp.py:23
↓ 2 callersFunctionis_list
(x)
util/utils.py:9
↓ 2 callersFunctionlog_vandermonde
(v, x, L)
model/DSSM_modules/s4.py:84
↓ 2 callersFunctionnplr
Return w, p, q, V, B such that (w - p q^*, B) is unitarily equivalent to the original HiPPO A, B by the matrix V i.e. A = V[w - p q^*]V^*, B
model/DSSM_modules/s4.py:318
↓ 1 callersMethod_A_init
(self, A_real)
model/DSSM_modules/s4.py:995
↓ 1 callersMethod__init__
( self, d_model=32, d_state=16, n_blocks=2, n_layers_per_block=4,
model/S4ND-U-Net.py:19
↓ 1 callersMethod_compute_loss
(self, outputs, clean_wav, is_complex)
model/base_SE_model.py:161
↓ 1 callersMethod_omega
Calculate (and cache) FFT nodes and their "unprocessed" version with the bilinear transform This should be called everytime the internal leng
model/DSSM_modules/s4.py:525
↓ 1 callersMethod_setup_linear
Create parameters that allow fast linear stepping of state
model/DSSM_modules/s4.py:769
↓ 1 callersMethod_setup_step
(self)
model/DSSM_modules/s4.py:1102
↓ 1 callersMethod_setup_step
(self, **kwargs)
model/DSSM_modules/s4.py:1266
↓ 1 callersMethod_step_state
Must be called after self.default_state() is used to construct an initial state!
model/DSSM_modules/s4.py:857
↓ 1 callersMethod_w_init
(self, w_real)
model/DSSM_modules/s4.py:611
↓ 1 callersMethodapply_masking
Args. outputs: torch.Tensor [B, C, D, T] noisy_features: Dict Return. torch.Tensor [B, C, D, T]
model/base_SE_model.py:134
↓ 1 callersFunctioncauchy_conj
Pykeops version
model/DSSM_modules/s4.py:60
↓ 1 callersFunctioncauchy_naive
v, w: (..., N) z: (..., L) returns: (..., L)
model/DSSM_modules/s4.py:144
↓ 1 callersFunctioncombination
(measures, N, R, S, **ssm_args)
model/DSSM_modules/s4.py:461
↓ 1 callersMethoddefault_state
(self, *batch_shape, device=None)
model/DSSM_modules/s4.py:1483
↓ 1 callersMethodforward
(self, x)
model/DSSM_modules/components.py:308
↓ 1 callersMethodforward_state
Forward the state through a sequence, i.e. computes the state after passing chunk through SSM state: (B, H, N) u: (B, H, L) R
model/DSSM_modules/s4.py:1242
↓ 1 callersFunctionget_TF_domain_loss_function
(loss_fn_name)
model/loss.py:3
↓ 1 callersFunctionget_initializer
(name, activation=None)
model/DSSM_modules/components.py:121
↓ 1 callersFunctionget_logger
Initializes multi-GPU-friendly python logger.
model/DSSM_modules/s4.py:24
↓ 1 callersMethodinference
(self, noisy_wav)
model/S4ND-U-Net.py:199
↓ 1 callersFunctionlaplace
(x, mu=0.707107, sigma=0.282095)
model/DSSM_modules/components.py:205
↓ 1 callersFunctionlog_vandermonde_transpose
u: ... H L v: ... H N x: ... H N Returns: ... H N V = Vandermonde(a, L) : (H N L) contract_L(V * u *
model/DSSM_modules/s4.py:106
↓ 1 callersFunctionmel_to_hz
(m)
util/dsp.py:27
↓ 1 callersFunctionmultiple_axis_slice
x: (..., L1, L2, .., Lk) L: list of length k [l1, l2, .., lk] returns: x[..., :l1, :l2, .., :lk]
model/DSSM_modules/s4nd.py:29
↓ 1 callersFunctionrank_correction
Return low-rank matrix L such that A + L is normal
model/DSSM_modules/s4.py:289
↓ 1 callersMethodreset_parameters
(self)
model/DSSM_modules/components.py:154
↓ 1 callersMethodspec_backward
Args. complex_spec: torch.Tensor, shape = [B, D, T] Return: complex_spec: torch.Tensor, shape = [B, D, T]
model/base_SE_model.py:115
↓ 1 callersMethodspec_forward
Args. complex_spec: torch.Tensor, shape = [B, D, T] Return: complex_spec: torch.Tensor, shape = [B, D, T]
model/base_SE_model.py:95
↓ 1 callersFunctionssm
Dispatcher to create single SSM initialization N: state size R: rank (for DPLR parameterization) H: number of independent SSM copies
model/DSSM_modules/s4.py:433
↓ 1 callersMethodstep
Step one time step as a recurrent model. Intended to be used during validation. u: (B H) state: (B H N) Returns: output (B H)
model/DSSM_modules/s4.py:1465
↓ 1 callersFunctionstochastic_depth
Implements the Stochastic Depth from `"Deep Networks with Stochastic Depth" <https://arxiv.org/abs/1603.09382>`_ used for randomly dropping r
model/DSSM_modules/components.py:15
↓ 1 callersFunctiontransition
A, B transition matrices for different measures
model/DSSM_modules/s4.py:227
Method__init__
( self, base_args, d_model=32, d_state=16, n_blocks=2, n_layer
model/S4ND-U-Net.py:133
Method__init__
( self, n_fft=512, win_length=512, hop_length=256, spec_factor=0.15,
model/base_SE_model.py:34
Method__init__
L: Maximum length; this module computes an SSM kernel of length L A is represented by diag(w) - PP^* w: (S, N) diagonal part
model/DSSM_modules/s4.py:545
Method__init__
( self, A, B, C, log_dt, L=None, disc='bilinear', real_type='exp',
model/DSSM_modules/s4.py:958
Method__init__
State Space Kernel which computes the convolution kernel $\\bar{K}$ H: Number of independent SSM copies; controls the size of the model. Also
model/DSSM_modules/s4.py:1149
Method__init__
(self, in_channels, out_channels, kernel_size=3, dilation=1)
model/DSSM_modules/s4.py:1498
Method__init__
(self, in_channel, out_channel)
model/DSSM_modules/s4.py:1514
Method__init__
(self, d_input, expand, pool)
model/DSSM_modules/s4.py:1525
Method__init__
(self, d_input, expand, pool)
model/DSSM_modules/s4.py:1543
Method__init__
Feed-forward block. Args: d_model: dimension of input expand: expansion factor for inverted bottleneck
model/DSSM_modules/s4.py:1566
Method__init__
Residual S4 block. Args: d_model: dimension of the model layer: a layer config dropout: dropout r
model/DSSM_modules/s4.py:1604
Method__init__
(self, in_channels, time_resample_factor)
model/DSSM_modules/s4nd.py:350
Method__init__
(self, in_channels, time_resample_factor)
model/DSSM_modules/s4nd.py:363
Method__init__
Feed-forward block. Args: d_model: dimension of input ff_expand_factor: expansion factor for inverted bottlen
model/DSSM_modules/s4nd.py:377
Method__init__
Residual S4 block. Args: d_model: dimension of the model layer: a layer config dropout: dropout r
model/DSSM_modules/s4nd.py:404
Method__init__
(self, p: float, mode: str)
model/DSSM_modules/components.py:51
Method__init__
tie: tie dropout mask across sequence lengths (Dropout1d/2d/3d)
model/DSSM_modules/components.py:69
Method__init__
(self, mu=0.707107, sigma=0.282095)
model/DSSM_modules/components.py:210
Method__init__
(self, d_input, d_output, bias=True)
model/DSSM_modules/components.py:224
Method__init__
(self, d, scalar=True)
model/DSSM_modules/components.py:250
Method__init__
( self, d, transposed=False, # Length dimension is -1 or -2 _name_='layer',
model/DSSM_modules/components.py:273
Method__init__
(self, method, horizon)
model/DSSM_modules/components.py:337
Method__init__
(self, method, normalizer)
model/DSSM_modules/components.py:356
Method__init__
(self, d, transposed=False)
model/DSSM_modules/components.py:368
Method__init__
(self, norm_input)
model/DSSM_modules/components.py:391
Method__init__
(self, cutoffs: list, width: int = None)
util/dsp.py:52
Method__repr__
(self)
model/DSSM_modules/components.py:61
Method__repr__
(self)
util/dsp.py:72
Method_reinit
Sets time kernel to custom value
model/DSSM_modules/s4nd.py:182
Method_setup_step
Set up dA, dB, dC discretized parameters for stepping
model/DSSM_modules/s4.py:862
Methodd_output
(self)
model/DSSM_modules/s4.py:1489
Methodd_output
(self)
model/DSSM_modules/s4nd.py:340
Methodd_state
(self)
model/DSSM_modules/s4nd.py:336
Methoddefault_state
(self, *batch_shape)
model/DSSM_modules/s4.py:905
Methoddefault_state
(self, *batch_shape)
model/DSSM_modules/s4.py:1120
Methoddefault_state
(self, *args, **kwargs)
model/DSSM_modules/s4.py:1278
Methoddefault_state
(self, *batch_shape, device=None)
model/DSSM_modules/s4nd.py:332
Methodff_block
(dim)
model/S4ND-U-Net.py:46
Methodforward
input: (batch, d_model, freq, length) output: (batch, d_model, freq, length)
model/S4ND-U-Net.py:99
Methodforward
(self, noisy_wav, clean_wav)
model/S4ND-U-Net.py:193
Methodforward
state: (B, H, N) initial state rate: sampling rate factor L: target length returns: (C, H, L) convolution ker
model/DSSM_modules/s4.py:641
Methodforward
state: (B, H, N) initial state rate: sampling rate factor L: target length returns: (C, H, L) convolution ker
model/DSSM_modules/s4.py:1026
Methodforward
(self, state=None, L=None, rate=None)
model/DSSM_modules/s4.py:1238
Methodforward
u: (B H L) if self.transposed else (B L H) state: (H N) never needed unless you know what you're doing Returns: same shape as
model/DSSM_modules/s4.py:1391
Methodforward
(self, x)
model/DSSM_modules/s4.py:1505
next →1–100 of 132, ranked by callers