Image Segmentation
Transformers
PyTorch
upernet
Inference Endpoints
test2 / mmseg /core /seg /builder.py
mccaly's picture
Upload 660 files
b13b124
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)