mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
10 lines
301 B
Python
10 lines
301 B
Python
# Copyright (c) OpenMMLab. All rights reserved.
|
|
from 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)
|