shaoyz's picture
Organize HOT3D and ARCTIC shared scripts
c91cf46 verified
Raw History Blame
811 Bytes
"""Resume the verified ARCTIC production queue."""
from pathlib import Path
import argparse, os, runpy, sys
q=argparse.ArgumentParser(description='Resume the ARCTIC conversion queue using its existing plan and checkpoints.')
q.add_argument('--mode',choices=['run','migrate'],default='run')
q.add_argument('--sequence',help='advanced: process exactly one source sequence')
a=q.parse_args()
HERE=Path(__file__).resolve().parent
sys.path.insert(0,str(HERE/'internal'))
os.environ['HAND_DATASET_SCOPE']='ARCTIC'
if a.sequence: sys.argv=[sys.argv[0],'worker','--dataset','ARCTIC','--sequence',a.sequence]
elif a.mode=='migrate': sys.argv=[sys.argv[0],'migrate','--dataset','ARCTIC']
else: sys.argv=[sys.argv[0],'run']
runpy.run_path(str(HERE/'internal'/'preprocess_fresh_full.py'),run_name='__main__')