File size: 602 Bytes
3a2e5f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Configuration package — Pydantic schemas and YAML loaders.

Why a dedicated package? Configs are the project's *type system*. Every other
module accepts an `AppConfig` (or a sub-config) instead of pulling globals,
which makes them testable in isolation and trivially overridable in CI / serve.
"""

from captioning.config.loader import load_config
from captioning.config.schema import (
    AppConfig,
    DataConfig,
    ModelConfig,
    ServeConfig,
    TrainConfig,
)

__all__ = [
    "AppConfig",
    "DataConfig",
    "ModelConfig",
    "ServeConfig",
    "TrainConfig",
    "load_config",
]