adirathor07's picture
added doctr folder
153628e
raw
history blame contribute delete
501 Bytes
# Copyright (C) 2021-2024, Mindee.
# This program is licensed under the Apache License 2.0.
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> 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