mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
b617a87ee4
* Init ppg extractor and ppg2mel * add preprocess and training * FIx known issues * Update __init__.py Allow to gen audio * Fix length issue * Fix bug of preparing fid * Fix sample issues * Add UI usage of PPG-vc
24 lines
610 B
Python
24 lines
610 B
Python
from abc import ABC
|
|
from abc import abstractmethod
|
|
|
|
import torch
|
|
|
|
class AbsMelDecoder(torch.nn.Module, ABC):
|
|
"""The abstract PPG-based voice conversion class
|
|
This "model" is one of mediator objects for "Task" class.
|
|
|
|
"""
|
|
|
|
@abstractmethod
|
|
def forward(
|
|
self,
|
|
bottle_neck_features: torch.Tensor,
|
|
feature_lengths: torch.Tensor,
|
|
speech: torch.Tensor,
|
|
speech_lengths: torch.Tensor,
|
|
logf0_uv: torch.Tensor = None,
|
|
spembs: torch.Tensor = None,
|
|
styleembs: torch.Tensor = None,
|
|
) -> torch.Tensor:
|
|
raise NotImplementedError
|