init
This commit is contained in:
13
finetune/mmseg/structures/sampler/base_pixel_sampler.py
Normal file
13
finetune/mmseg/structures/sampler/base_pixel_sampler.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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."""
|
||||
Reference in New Issue
Block a user