import sys, json, time
sys.path.insert(0,"/home/zyw/Downloads/dasiwa-h3-research"); sys.path.insert(0,".")
import v18_pipeline as p
import batch as B

BASE="/home/zyw/Downloads/dl-hub/100-长安Disco-场景图"
for cid in sys.argv[1:]:
    c=B.BY[cid]
    prompt=B.prompt_for(c).replace("The place is otherwise empty around her; any visitors stay far in the background.",
        "There is exactly one person in the frame: her. Do not duplicate her, do not add a second woman, no reflections of a second person.")
    res=p.run_pipeline(image_path=f"{BASE}/{c['plate']}",
        requirement=f"白发少女在长安景点跳舞/运镜（{cid} 修正单人不重复）",
        prompt_override=prompt,
        extra_images=[f"{BASE}/人物参考/白发-面部正面.jpg"],
        width=1152,height=648,duration=5,seed=20261019,steps=8,fps=24.0,
        topic=f"长安20条-{cid}-fix", variant=c["kind"])
    print("FIXED",cid,res["video_local"],flush=True)
