JEVision / download_base.py
heack's picture
Release verified model, evaluation, usage examples and commercial licensing
7776afe verified
Raw History Blame Contribute Delete
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'))