File size: 273 Bytes
1cb032f
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from annotator.uniformer.mmcv.utils import Registry, build_from_cfg

PIXEL_SAMPLERS = Registry('pixel sampler')


def build_pixel_sampler(cfg, **default_args):
    """Build pixel sampler for segmentation map."""
    return build_from_cfg(cfg, PIXEL_SAMPLERS, default_args)