from ocrcv.utils import Registry, build_from_cfg
BBOX_SAMPLERS = Registry('bbox_sampler')


def build_sampler(cfg, **default_args):
    """Builder of box sampler."""
    return build_from_cfg(cfg, BBOX_SAMPLERS, default_args)

7172cbd8a3236dfffed87d5f3c865948881dc8af
<mask token>

<mask token>


def build_sampler(cfg, **default_args):
    """Builder of box sampler."""
    return build_from_cfg(cfg, BBOX_SAMPLERS, default_args)

<mask token>
BBOX_SAMPLERS = Registry('bbox_sampler')


def build_sampler(cfg, **default_args):
    """Builder of box sampler."""
    return build_from_cfg(cfg, BBOX_SAMPLERS, default_args)

from ocrcv.utils import Registry, build_from_cfg
BBOX_SAMPLERS = Registry('bbox_sampler')


def build_sampler(cfg, **default_args):
    """Builder of box sampler."""
    return build_from_cfg(cfg, BBOX_SAMPLERS, default_args)
