amupd's picture
SpeechT5 upload
62e9ca6
raw
history blame
282 Bytes
import importlib
import os
for file in os.listdir(os.path.dirname(__file__)):
if file.endswith(".py") and not file.startswith("_"):
criterion_name = file[: file.find(".py")]
importlib.import_module(
"speechlm.criterions." + criterion_name
)