Spaces:
Runtime error
Runtime error
Download fireredtts/modules/flowmatching/__init__.py from FireRedTeam/FireRedTTS-1S: direct link, hf CLI and curl.
- Browser
- Download file 670 Bytes
-
https://huggingface.co/spaces/FireRedTeam/FireRedTTS-1S/resolve/main/fireredtts/modules/flowmatching/__init__.py
- Command line
-
hf download hf://spaces/FireRedTeam/FireRedTTS-1S/fireredtts/modules/flowmatching/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/FireRedTeam/FireRedTTS-1S/resolve/main/fireredtts/modules/flowmatching/__init__.py
670 Bytes
| 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, | |
| ) |