espnet2.enh.layers.ncsnpp.NCSNpp
espnet2.enh.layers.ncsnpp.NCSNpp
class espnet2.enh.layers.ncsnpp.NCSNpp(scale_by_sigma=True, nonlinearity='swish', nf=128, ch_mult=(1, 1, 2, 2, 2, 2, 2), num_res_blocks=2, attn_resolutions=(16,), resamp_with_conv=True, conditional=True, fir=True, fir_kernel=[1, 3, 3, 1], skip_rescale=True, resblock_type='biggan', progressive='output_skip', progressive_input='input_skip', progressive_combine='sum', init_scale=0.0, fourier_scale=16, image_size=256, embedding_type='fourier', dropout=0.0, centered=True, **unused_kwargs)
Bases: Module
NCSN++ model, adapted from https://github.com/yang-song/score_sde and
https://github.com/sp-uhh/sgmse repository
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(x, time_cond)
Defines the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
pad_spec(Y)