Spaces:
Runtime error
Runtime error
File size: 353 Bytes
2366e36 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.utils import Registry, build_from_cfg
LOADERS = Registry('loader')
PARSERS = Registry('parser')
def build_loader(cfg):
"""Build anno file loader."""
return build_from_cfg(cfg, LOADERS)
def build_parser(cfg):
"""Build anno file parser."""
return build_from_cfg(cfg, PARSERS)
|