EasyCV/easycv/models/segmentation/sampler/base_pixel_sampler.py
yhq 26cd12ab42
[features] Support stdc (#284)
* add stdc semantic segmentation algorithm
2023-02-16 14:00:59 +08:00

14 lines
363 B
Python

# Borrowed from https://github.com/open-mmlab/mmsegmentation/blob/master/mmseg
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."""