File size: 297 Bytes
b13b124 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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
|