# Copyright (C) 2021-2024, Mindee. # This program is licensed under the Apache License 2.0. # See LICENSE or go to for full license details. from typing import Any, Dict, Optional from doctr.utils.repr import NestedObject __all__ = ["BaseModel"] class BaseModel(NestedObject): """Implements abstract DetectionModel class""" def __init__(self, cfg: Optional[Dict[str, Any]] = None) -> None: super().__init__() self.cfg = cfg