Args: vtp_config: Pre-constructed configuration (takes priority). config_path: Path to load YAML from when vtp_config is not provided. cli_overrides: Additional CLI-style configuration overrides, e.g., ["training.lr=1e-4"].
(
self,
vtp_config: Optional[DictConfig] = None,
config_path: Optional[str] = None,
cli_overrides: Optional[Union[Sequence[str], DictConfig]] = None,
)
| 95 | """ |
| 96 | |
| 97 | def __init__( |
| 98 | self, |
| 99 | vtp_config: Optional[DictConfig] = None, |
| 100 | config_path: Optional[str] = None, |
| 101 | cli_overrides: Optional[Union[Sequence[str], DictConfig]] = None, |
| 102 | ): |
| 103 | """ |
| 104 | Args: |
| 105 | vtp_config: Pre-constructed configuration (takes priority). |
| 106 | config_path: Path to load YAML from when vtp_config is not provided. |
| 107 | cli_overrides: Additional CLI-style configuration overrides, e.g., ["training.lr=1e-4"]. |
| 108 | """ |
| 109 | super().__init__() |
| 110 | |
| 111 | self.vtp_config = self._load_vtp_config( |
| 112 | vtp_config=vtp_config, |
| 113 | config_path=config_path, |
| 114 | cli_overrides=cli_overrides, |
| 115 | ) |
| 116 | self._init_vision_components() |
| 117 | self._init_text_components() |
| 118 | |
| 119 | def _load_vtp_config( |
| 120 | self, |
nothing calls this directly
no test coverage detected