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