Spaces:
Running
on
Zero
Running
on
Zero
File size: 670 Bytes
faadabf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from .estimator_dit import DiT
from .upsample_encoder import UpsampleConformerEncoder
from .flow import CausalFmWithSpkCtx, DualEmbedding
class FlowToken2Mel(CausalFmWithSpkCtx):
def __init__(self, config):
token_emb = DualEmbedding(**config['token_emb'])
encoder = UpsampleConformerEncoder(**config['encoder'])
estimator = DiT(**config['estimator'])
super().__init__(
spk_channels=config['spk_channels'],
spk_enc_channels=config['spk_enc_channels'],
infer_cfg_rate=config['infer_cfg_rate'],
token_emb=token_emb,
encoder=encoder,
estimator=estimator,
) |