Source code for cvnets.matcher_det.base_matcher

#
# For licensing see accompanying LICENSE file.
# Copyright (C) 2023 Apple Inc. All Rights Reserved.
#

import argparse


[docs]class BaseMatcher(object): """ Base class for matching anchor boxes and labels for the task of object detection """
[docs] def __init__(self, opts, *args, **kwargs) -> None: super(BaseMatcher, self).__init__() self.opts = opts
[docs] @classmethod def add_arguments(cls, parser: argparse.ArgumentParser): """Add class-specific arguments""" return parser
def __call__(self, *args, **kwargs): raise NotImplementedError