Download scripts/render_config.py from Orangerl/umm: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/Orangerl/umm/resolve/c02477c52ccad456db31ab449a983d4e35a00a4f/scripts/render_config.py
- Command line
-
hf download hf://Orangerl/umm@c02477c52ccad456db31ab449a983d4e35a00a4f/scripts/render_config.py
-
curl -L -o render_config.py https://huggingface.co/Orangerl/umm/resolve/c02477c52ccad456db31ab449a983d4e35a00a4f/scripts/render_config.py
619 Bytes
| #!/usr/bin/env python3 | |
| from __future__ import annotations | |
| import argparse | |
| from pathlib import Path | |
| def main() -> None: | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--root", type=Path, default=Path(__file__).resolve().parents[1]) | |
| args = parser.parse_args() | |
| root = args.root.resolve() | |
| template = root / "configs" / "stage2_covt.template.yaml" | |
| output = root / "configs" / "stage2_covt.yaml" | |
| content = template.read_text(encoding="utf-8").replace("__UMM_ROOT__", str(root)) | |
| output.write_text(content, encoding="utf-8") | |
| print(output) | |
| if __name__ == "__main__": | |
| main() | |