LGTM / lgtm /__init__.py
qnguyen3's picture
LGTM: PyTorch + ONNX weights and inference code
409d4fb verified
Raw History Blame Contribute Delete
533 Bytes
"""LGTM text-to-speech. `LGTMTTS` = PyTorch backend, `LGTMOnnx` = ONNX Runtime backend (no torch needed)."""
def __getattr__(name): # lazy imports: the ONNX backend must not require torch
if name in ("LGTMTTS", "load_voice_style", "save_voice_style"):
from . import inference
return getattr(inference, name)
if name == "LGTM":
from .model import LGTM
return LGTM
if name == "LGTMOnnx":
from .onnx_inference import LGTMOnnx
return LGTMOnnx
raise AttributeError(name)