AnySplat / src /global_cfg.py
alexnasa's picture
Upload 243 files
2568013 verified
raw
history blame contribute delete
279 Bytes
from typing import Optional
from omegaconf import DictConfig
cfg: Optional[DictConfig] = None
def get_cfg() -> DictConfig:
global cfg
return cfg
def set_cfg(new_cfg: DictConfig) -> None:
global cfg
cfg = new_cfg
def get_seed() -> int:
return cfg.seed