Download src/global_cfg.py from unity4ar/AnySplat: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/spaces/unity4ar/AnySplat/resolve/main/src/global_cfg.py
- Command line
-
hf download hf://spaces/unity4ar/AnySplat/src/global_cfg.py
-
curl -L -o global_cfg.py https://huggingface.co/spaces/unity4ar/AnySplat/resolve/main/src/global_cfg.py
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 | |