espnet2.svs.feats_extract.score_feats_extract.FrameScoreFeats
espnet2.svs.feats_extract.score_feats_extract.FrameScoreFeats
class espnet2.svs.feats_extract.score_feats_extract.FrameScoreFeats(fs: int | str = 22050, n_fft: int = 1024, win_length: int = 512, hop_length: int = 128, window: str = 'hann', center: bool = True)
Bases: AbsFeatsExtract
Initializes internal Module state, shared by both nn.Module and ScriptModule.
extra_repr()
Set the extra representation of the module
To print customized extra information, you should re-implement this method in your own modules. Both single-line and multi-line strings are acceptable.
forward(label: Tensor | None = None, label_lengths: Tensor | None = None, midi: Tensor | None = None, midi_lengths: Tensor | None = None, duration: Tensor | None = None, duration_lengths: Tensor | None = None) → Tuple[Tensor, Tensor, Tensor, Tensor, Tensor, Tensor]
FrameScoreFeats forward function.
- Parameters:
- label – (Batch, Nsamples)
- label_lengths – (Batch)
- midi – (Batch, Nsamples)
- midi_lengths – (Batch)
- duration – (Batch, Nsamples)
- duration_lengths – (Batch)
- Returns: (Batch, Frames)
- Return type: output
get_parameters() → Dict[str, Any]
label_aggregate(input: Tensor, input_lengths: Tensor | None = None) → Tuple[Tensor, Tensor | None]
lage_aggregate function.
- Parameters:
- input – (Batch, Nsamples, Label_dim)
- input_lengths – (Batch)
- Returns: (Batch, Frames, Label_dim)
- Return type: output
output_size() → int