Download scripts/deploy/online_psi0_sonic_bridge.sh from Tinghong-Ye22/code-Psi0-yth-v21: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/scripts/deploy/online_psi0_sonic_bridge.sh
- Command line
-
hf download hf://Tinghong-Ye22/code-Psi0-yth-v21/scripts/deploy/online_psi0_sonic_bridge.sh
-
curl -L -o online_psi0_sonic_bridge.sh https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/scripts/deploy/online_psi0_sonic_bridge.sh
1.71 kB
| cd /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth-v18 | |
| source /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth-v15/.venv-psi/bin/activate | |
| export PYTHONPATH=/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth-v18/src | |
| PSI_HOST="localhost" | |
| PSI_PORT="8014" | |
| SONIC_ZMQ_HOST="*" | |
| SONIC_ZMQ_PORT="5556" | |
| PROMPT="jog_ff_start_180_r. start jog forward. jog ff start 180. start right foot, move forward, jog. start jogging forward. start a forward jog. initiate a forward jog. a person standing on the ground steadily jogs in the forward direction and then stands on the ground in an upright position." | |
| RUN_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth-v18/runs/posttrain_v1_trimodal/posttrain.sg.flow1000.cwml.lr1.0e-04.b256.gpus8.2606041447" | |
| START_INDEX="0" | |
| INIT_STATE_NPY="" | |
| # <modify> 真闭环默认读取SONIC/MuJoCo写出的实时state;如果这个文件不存在,bridge会等待而不是退回self-rollout。 | |
| # 原逻辑: | |
| # LIVE_STATE_NPY="" | |
| LIVE_STATE_NPY="/tmp/psi0_sonic_live_state.npy" | |
| MAX_SECONDS="120" | |
| TARGET_FRAMES="6000" | |
| python scripts/deploy/online_psi0_sonic_bridge.py \ | |
| --psi-host "$PSI_HOST" \ | |
| --psi-port "$PSI_PORT" \ | |
| --sonic-zmq-host "$SONIC_ZMQ_HOST" \ | |
| --sonic-zmq-port "$SONIC_ZMQ_PORT" \ | |
| --prompt "$PROMPT" \ | |
| --run-dir "$RUN_DIR" \ | |
| --start-index "$START_INDEX" \ | |
| --init-state-npy "$INIT_STATE_NPY" \ | |
| --live-state-npy "$LIVE_STATE_NPY" \ | |
| --require-live-state \ | |
| --max-seconds "$MAX_SECONDS" \ | |
| --target-frames "$TARGET_FRAMES" | |