mmseg.structures.sampler.base_pixel_sampler 源代码 # Copyright (c) OpenMMLab. All rights reserved. from abc import ABCMeta, abstractmethod [文档]class BasePixelSampler(metaclass=ABCMeta): """Base class of pixel sampler.""" def __init__(self, **kwargs): pass [文档] @abstractmethod def sample(self, seg_logit, seg_label): """Placeholder for sample function."""