MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / synthesis

Method synthesis

modules/parallel_wavegan/layers/pqmf.py:118–129  ·  view source on GitHub ↗

Synthesis with PQMF. Args: x (Tensor): Input tensor (B, subbands, T // subbands). Returns: Tensor: Output tensor (B, 1, T).

(self, x)

Source from the content-addressed store, hash-verified

116 return F.conv1d(x, self.updown_filter, stride=self.subbands)
117
118 def synthesis(self, x):
119 """Synthesis with PQMF.
120
121 Args:
122 x (Tensor): Input tensor (B, subbands, T // subbands).
123
124 Returns:
125 Tensor: Output tensor (B, 1, T).
126
127 """
128 x = F.conv_transpose1d(x, self.updown_filter * self.subbands, stride=self.subbands)
129 return F.conv1d(self.pad_fn(x), self.synthesis_filter)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected