"""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'))