Download download_base.py from heack/JEVision: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/heack/JEVision/resolve/main/download_base.py
- Command line
-
hf download hf://heack/JEVision/download_base.py
-
curl -L -o download_base.py https://huggingface.co/heack/JEVision/resolve/main/download_base.py
442 Bytes
| """Download the exact upstream base revision required by JEVision.""" | |
| import argparse, json | |
| from pathlib import Path | |
| from huggingface_hub import snapshot_download | |
| p=argparse.ArgumentParser(); p.add_argument('--root',default='./data'); a=p.parse_args() | |
| c=json.loads((Path(__file__).parent/'training/judge/config.json').read_text()) | |
| print(snapshot_download(c['base'],revision=c['base_revision'],cache_dir=Path(a.root)/'cache/huggingface/hub')) | |