#!/bin/bash # teaser · 同一世界组的串行流水线(等 build 进程结束 → 首帧 → 锚首帧外观编辑 → rollout 任务)。 # usage: nohup bash scripts/teaser/edit_sameworld_chain.sh > outputs/teaser/logs/edit/app_sw_chain.log 2>&1 & M=/opt/dlami/nvme/zhiyangdeng/maliang cd $M export DIFFSYNTH_SKIP_DOWNLOAD=True PYTHONPATH=$M/code/gc25d:$M/code/arope HF_HOME=/opt/dlami/nvme/zhiyangdeng/.cache/huggingface \ TMPDIR=$M/.tmp HF_HUB_OFFLINE=1 PID=${1:-0} if [ "$PID" != "0" ]; then while kill -0 $PID 2>/dev/null; do sleep 10; done; fi echo "$(date +%T) build 结束" .venv/bin/python scripts/teaser/edit_sameworld.py f0jobs CUDA_VISIBLE_DEVICES=6 $M/envs/img/bin/python scripts/teaser/f0gen.py --backend qwen21 --jobs outputs/teaser/edit/app/sameworld/f0/jobs.jsonl .venv/bin/python scripts/teaser/edit_sameworld.py rolljobs .venv/bin/python scripts/teaser/edit_sameworld.py f0edits CUDA_VISIBLE_DEVICES=6 $M/envs/img/bin/python scripts/teaser/edit_app_f0.py --jobs outputs/teaser/edit/app/sameworld/f0/edits.jsonl .venv/bin/python scripts/teaser/edit_sameworld.py rolljobs echo "$(date +%T) chain 完成"