Spaces:
Runtime error
Runtime error
File size: 459 Bytes
d1b91e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import utils.commons.single_thread_env # NOQA
from utils.commons.hparams import hparams, set_hparams
import importlib
def preprocess():
assert hparams['preprocess_cls'] != ''
pkg = ".".join(hparams["preprocess_cls"].split(".")[:-1])
cls_name = hparams["preprocess_cls"].split(".")[-1]
process_cls = getattr(importlib.import_module(pkg), cls_name)
process_cls().process()
if __name__ == '__main__':
set_hparams()
preprocess()
|